link to prev/next info page in bottom

This commit is contained in:
jomo
2014-10-02 23:02:52 +02:00
parent a4338154ba
commit 8f8c1daa1e
3 changed files with 44 additions and 4 deletions
+11 -4
View File
@@ -1,9 +1,16 @@
<% title @info.title %>
<%= link_to "Info", info_index_path %><%= @info.title %>
<% if mod? %>
<%= link_to "Edit Info", edit_info_path(@info), class: "btn blue right" %>
<% end %>
<div class="clear"></div>
<h1 class="info-title"><%= @info.title %></h1>
<div class="post"><%= render_trusted_md(@info.content).html_safe %></div>
<h1 class="info-title"><%= title @info.title %></h1>
<div class="post">
<%= render_trusted_md(@info.content).html_safe %>
</div>
<div class="info-suggestions center">
<%= link_to #{@prev}", @prev %>
<%= link_to "#{@next} »", @next %>
</div>