add nav help for posts
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
<%= render "posts/partials/index/edit" %>
|
||||
<%= render "wiki_pages/excerpt", :post_set => @post_set %>
|
||||
<%= render "posts/partials/index/posts", :post_set => @post_set %>
|
||||
|
||||
<%= render "posts/partials/index/nav_help" %>
|
||||
|
||||
<%= render_rss_advertisement("short", @post_set.has_explicit?) %>
|
||||
</section>
|
||||
|
||||
5
app/views/posts/partials/index/_nav_help.html.erb
Normal file
5
app/views/posts/partials/index/_nav_help.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div id="nav-help" class="ui-corner-all nav-notice">
|
||||
<p class="hint">Press <span class="key">←</span> or <span class="key">→</span> to navigate pages [<%= link_to "close", "#", :id => "close-nav-help-link" %>]</p>
|
||||
</div>
|
||||
3
app/views/posts/partials/show/_nav_help.html.erb
Normal file
3
app/views/posts/partials/show/_nav_help.html.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
<div id="nav-help" class="ui-corner-all nav-notice">
|
||||
<p class="hint">Press <span class="key">←</span> or <span class="key">→</span> to navigate posts and <span class="key">space</span> to scroll [<%= link_to "close", "#", :id => "close-nav-help-link" %>]</p>
|
||||
</div>
|
||||
@@ -1,8 +1,8 @@
|
||||
<div id="tag-seq-nav" class="ui-corner-all nav-notice">
|
||||
<div id="search-seq-nav" class="ui-corner-all nav-notice">
|
||||
<ul>
|
||||
<li>
|
||||
<li class="active">
|
||||
<%= 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>
|
||||
<span class="search-name">Search: <%= params[:tags] %></span>
|
||||
<%= link_to "next»".html_safe, show_seq_post_path(post, :tags => params[:tags], :seq => "next"), :rel => "next" %>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -39,8 +39,12 @@
|
||||
<%= @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/tag_seq", :post => @post %>
|
||||
<%= render "posts/partials/show/search_seq", :post => @post %>
|
||||
<% end %>
|
||||
|
||||
<% if @post.pools.active.any? %>
|
||||
|
||||
Reference in New Issue
Block a user