move desktop mode to user pref

This commit is contained in:
r888888888
2017-12-15 13:52:25 -08:00
parent 4dabbde05d
commit a95af95eae
8 changed files with 25 additions and 34 deletions

View File

@@ -8,8 +8,10 @@
<% if CurrentUser.user.enable_post_navigation %>
&ndash; <%= link_to "Keyboard shortcuts available", keyboard_shortcuts_path %>
<% end %>
<span id="desktop-version-link">
&ndash;
<%= link_to "Desktop version", site_map_path(:dm => "1"), :rel => "nofollow" %>
</span>
<% if CurrentUser.is_member? %>
<span id="desktop-version-link">
&ndash;
<%= link_to "Disable responsive mode", edit_user_path(CurrentUser.id), :rel => "nofollow" %>
</span>
<% end %>
</footer>