add tag seq nav
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
<section id="pool-nav">
|
||||
<div id="pool-nav" class="ui-corner-all nav-notice">
|
||||
<%= @post.presenter.pool_html(self) %>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
9
app/views/posts/partials/show/_tag_seq.html.erb
Normal file
9
app/views/posts/partials/show/_tag_seq.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<div id="tag-seq-nav" class="ui-corner-all nav-notice">
|
||||
<ul>
|
||||
<li>
|
||||
<%= link_to "«prev".html_safe, show_seq_post_path(post, :tags => params[:tags], :seq => "prev"), :rel => "prev" %>
|
||||
<span class="tag-name">Search: <%= params[:tags] %></span>
|
||||
<%= link_to "next»".html_safe, show_seq_post_path(post, :tags => params[:tags], :seq => "next"), :rel => "next" %>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -39,10 +39,14 @@
|
||||
<%= @post.presenter.image_html(self) %>
|
||||
</section>
|
||||
|
||||
<% if params[:tags] %>
|
||||
<%= render "posts/partials/show/tag_seq", :post => @post %>
|
||||
<% end %>
|
||||
|
||||
<% if @post.pools.active.any? %>
|
||||
<%= render "posts/partials/show/pools", :post => @post %>
|
||||
<% end %>
|
||||
|
||||
|
||||
<menu id="post-sections">
|
||||
<li><a href="#comments">Comments</a></li>
|
||||
<li><a href="#edit" id="post-edit-link">Edit</a></li>
|
||||
|
||||
Reference in New Issue
Block a user