add navigation link

This commit is contained in:
Christopher Schmidt 2008-04-20 21:44:05 +00:00
parent 35c8871354
commit 4ca38904dc
5 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,13 @@
<div style="float:right; text-align:center; width: 250px;">
<% if @prev %>
<
<%= link_to @prev.id.to_s, :action => type, :id => @prev.id %>
<% end %>
<% if @prev and @next %>
|
<% end %>
<% if @next %>
<%= link_to @next.id.to_s, :action => type, :id => @next.id %>
>
<% end %>
</div>