footer: only show keyboard shortcuts link on desktop.

This commit is contained in:
evazion
2019-08-19 00:46:31 -05:00
parent dab43d96c9
commit 13f4dee59f
2 changed files with 7 additions and 1 deletions

View File

@@ -9,6 +9,10 @@
}
@media screen and (max-width: 660px) {
#keyboard-shortcuts-link {
display: none;
}
#desktop-version-link {
display: inline;
}

View File

@@ -6,7 +6,9 @@
&ndash; <%= link_to "Rules", terms_of_service_path %>
&ndash; <%= link_to "Contact", contact_path %>
<% if CurrentUser.user.enable_post_navigation %>
&ndash; <%= link_to "Keyboard shortcuts available", keyboard_shortcuts_path %>
<span id="keyboard-shortcuts-link">
&ndash; <%= link_to "Keyboard shortcuts", keyboard_shortcuts_path %>
</span>
<% end %>
<% if CurrentUser.is_member? %>
<span id="desktop-version-link">