Skip to content

Commit

Permalink
Use post navigation only in posts, not wiki pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
bomberstudios committed Dec 25, 2008
1 parent 285df44 commit 5347da2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions themes/default/view.erb
Expand Up @@ -5,6 +5,7 @@
<%= @post.content %>
</div>
<%= disqus if Sinatra.options.use_comments %>
<% if @post.is_a? Post %>
<div id="navigation">
<% if @post.prev %>
<span class="left"><%= link_to "«" + @post.prev_by_created_at.title, @post.prev_by_created_at.link %></span>
Expand All @@ -13,6 +14,7 @@
<span class="right"><%= link_to @post.next_by_created_at.title + "»", @post.next_by_created_at.link %></span>
<% end %>
</div>
<% end %>
</div>
<div class="admin"><a href="<%= @post.edit_link %>" accesskey="e">edit</a></div>
<div class="admin"><a href="/new" accesskey="n">new</a></div>

0 comments on commit 5347da2

Please sign in to comment.