A platform for community discussion. Free, open, simple.
UX: don't show crawler navigation in print view (#6551)
Joe42340583582c
diff --git a/app/views/layouts/crawler.html.erb b/app/views/layouts/crawler.html.erbindex 85495538c0f..8a485633cc9 100644--- a/app/views/layouts/crawler.html.erb+++ b/app/views/layouts/crawler.html.erb@@ -28,14 +28,14 @@<%= yield %></div><footer class="container">- <nav itemscope itemtype='http://schema.org/SiteNavigationElement'>+ <nav class='crawler-nav' itemscope itemtype='http://schema.org/SiteNavigationElement'><a href='<%= path "/" %>'><%= t 'home_title' %></a><%= link_to t('js.filters.categories.title'), path("/categories") %><%= link_to t('guidelines_topic.title'), path("/guidelines") %><%= link_to t('tos_topic.title'), path("/tos") %><%= link_to t('privacy_topic.title'), path("/privacy") %></nav>- <p><%= t 'powered_by_html' %></p>+ <p class='powered-by-link'><%= t 'powered_by_html' %></p></footer><%= theme_lookup("body_tag") %></body>diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erbindex f0d02c9d8db..15b72d539f1 100644--- a/app/views/topics/show.html.erb+++ b/app/views/topics/show.html.erb@@ -106,9 +106,15 @@<% content_for :after_body do %><style media="print">/* For readability */- a, a:visited {+ a,+ a:visited {color: #0088cc !important;}+ /* hide crawler nav in print view */+ .crawler-nav,+ .powered-by-link {+ display: none;+ }</style><%= preload_script('print-page') %><% end %>