move nav link help

This commit is contained in:
albert
2013-03-08 13:25:31 -05:00
parent 80f3bb5e47
commit 41f7e2a804
5 changed files with 7 additions and 11 deletions

View File

@@ -234,12 +234,6 @@ div#c-posts {
#nav-links {
margin: 1em 0;
padding: 1em 0.5em;
#keyboard-shortcuts-link {
margin-top: 1em;
font-size: 80%;
font-style: italic;
}
}
#pool-nav, #search-seq-nav, #nav-help {

View File

@@ -86,7 +86,7 @@ class PostPresenter < Presenter
end
def has_nav_links?(template)
template.params[:tags].present? || @post.pools.active.any?
(template.params[:tags].present? && template.params[:tags] !~ /order:/) || @post.pools.active.any?
end
def post_footer_for_pool_html(template)

View File

@@ -7,7 +7,5 @@
<% 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 %>

View File

@@ -1,3 +1,7 @@
<footer id="page-footer">
Running Danbooru v<%= Danbooru.config.version %> &mdash; <%= link_to "Contact", contact_path %>
Running Danbooru v<%= Danbooru.config.version %>
&ndash; <%= link_to "Contact", contact_path %>
<% if CurrentUser.user.enable_post_navigation %>
&ndash; <%= link_to "Keyboard shortcuts available", keyboard_shortcuts_path %>
<% end %>
</footer>

View File

@@ -3,7 +3,7 @@
<h1>Keyboard Shortcuts</h1>
<section>
<h1>Post Listing</h1>
<h1>Listing</h1>
<ul>
<li><span class="key">&larr;</span> Previous page</li>
<li><span class="key">&rarr;</span> Next page</li>