add new options for moving nav links
This commit is contained in:
13
app/views/posts/partials/show/_nav_links.html.erb
Normal file
13
app/views/posts/partials/show/_nav_links.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<% if (position == "bottom" && CurrentUser.user.new_post_navigation_layout) || (position == "top" && !CurrentUser.user.new_post_navigation_layout) %>
|
||||
<div id="nav-links" class="ui-corner-all nav-notice">
|
||||
<% if params[:tags].present? && CurrentUser.user.enable_post_navigation && params[:tags] !~ /order:/ %>
|
||||
<%= render "posts/partials/show/search_seq", :post => post %>
|
||||
<% end %>
|
||||
|
||||
<% if post.pools.active.any? %>
|
||||
<%= render "posts/partials/show/pools", :post => post %>
|
||||
<% end %>
|
||||
|
||||
<p id="keyboard-shortcuts-link"><%= link_to "Keyboard shortcuts available", keyboard_shortcuts_path %></p>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -1,3 +1,3 @@
|
||||
<div id="pool-nav" class="ui-corner-all nav-notice">
|
||||
<div id="pool-nav">
|
||||
<%= @post.presenter.pool_html(self) %>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="search-seq-nav" class="ui-corner-all nav-notice">
|
||||
<div id="search-seq-nav">
|
||||
<ul>
|
||||
<li class="active">
|
||||
<%= link_to "«prev".html_safe, show_seq_post_path(post, :tags => params[:tags], :seq => "prev"), :rel => "prev", :class => "prev" %>
|
||||
@@ -6,6 +6,4 @@
|
||||
<%= link_to "next»".html_safe, show_seq_post_path(post, :tags => params[:tags], :seq => "next"), :rel => "next", :class => "next" %>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<span class="close-button ui-icon ui-icon-closethick" id="close-search-seq-nav"></span>
|
||||
</div>
|
||||
|
||||
@@ -30,6 +30,10 @@
|
||||
</aside>
|
||||
|
||||
<section id="content">
|
||||
<% if @post.presenter.has_nav_links?(self) %>
|
||||
<%= render "posts/partials/show/nav_links", :post => @post, :position => "top" %>
|
||||
<% end %>
|
||||
|
||||
<%= render "posts/partials/show/notices", :post => @post %>
|
||||
|
||||
<%= render_advertisement("horizontal") %>
|
||||
@@ -39,16 +43,8 @@
|
||||
<%= @post.presenter.image_html(self) %>
|
||||
</section>
|
||||
|
||||
<% if params[:tags] || @post.pools.active.any? %>
|
||||
<%= render "posts/partials/show/nav_help" %>
|
||||
<% end %>
|
||||
|
||||
<% if params[:tags] %>
|
||||
<%= render "posts/partials/show/search_seq", :post => @post %>
|
||||
<% end %>
|
||||
|
||||
<% if @post.pools.active.any? %>
|
||||
<%= render "posts/partials/show/pools", :post => @post %>
|
||||
<% if @post.presenter.has_nav_links?(self) %>
|
||||
<%= render "posts/partials/show/nav_links", :post => @post, :position => "bottom" %>
|
||||
<% end %>
|
||||
|
||||
<menu id="post-sections">
|
||||
|
||||
Reference in New Issue
Block a user