add nav help for posts

This commit is contained in:
albert
2013-02-25 20:41:08 -05:00
parent c6d03f2d3a
commit cea05698af
9 changed files with 66 additions and 29 deletions

View File

@@ -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>

View 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">&larr;</span> or <span class="key">&rarr;</span> to navigate pages [<%= link_to "close", "#", :id => "close-nav-help-link" %>]</p>
</div>

View File

@@ -0,0 +1,3 @@
<div id="nav-help" class="ui-corner-all nav-notice">
<p class="hint">Press <span class="key">&larr;</span> or <span class="key">&rarr;</span> to navigate posts and <span class="key">space</span> to scroll [<%= link_to "close", "#", :id => "close-nav-help-link" %>]</p>
</div>

View File

@@ -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 "&laquo;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&raquo;".html_safe, show_seq_post_path(post, :tags => params[:tags], :seq => "next"), :rel => "next" %>
</li>
</ul>

View File

@@ -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? %>