Adds some styling for crawler view

This commit is contained in:
Rafael dos Santos Silva
2016-11-14 18:32:59 -02:00
parent 0d295cc7b9
commit 24227af9e8
4 changed files with 32 additions and 8 deletions

View File

@@ -5,18 +5,23 @@
<title><%= content_for?(:title) ? yield(:title) + ' - ' + SiteSetting.title : SiteSetting.title %></title>
<meta name="description" content="<%= @description_meta || SiteSetting.site_description %>">
<%= render partial: "layouts/head" %>
<%- if rtl? %>
<%= DiscourseStylesheets.stylesheet_link_tag(mobile_view? ? :mobile_rtl : :desktop_rtl) %>
<%- else %>
<%= DiscourseStylesheets.stylesheet_link_tag(mobile_view? ? :mobile : :desktop) %>
<%- end %>
<%- unless customization_disabled? %>
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
<%- end %>
<%= render_google_universal_analytics_code %>
<%= yield :head %>
</head>
<body>
<body class="crawler">
<%- unless customization_disabled? %>
<%= SiteCustomization.custom_header(session[:preview_style], mobile_view? ? :mobile : :desktop) %>
<%- end %>
<header>
<a href="<%= path "/" %>"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo" style="max-width: 400px;"></a>
<a href="<%= path "/" %>"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo" style="max-width: 150px;"></a>
</header>
<div id="main-outlet" class="wrap">
<%= yield %>

View File

@@ -33,7 +33,7 @@
<a href='<%= t.relative_url %>' itemprop='item'>
<span itemprop='name'><%= t.title %></span>
</a>
<%= page_links(t) %>
<span class="page-links"><%= page_links(t) %></span>
<% if (!@category || @category.has_children?) && t.category %>
<span class='category'>[<a href='<%= t.category.url %>'><%= t.category.name %></a>]</span>
<% end %>

View File

@@ -69,11 +69,6 @@
<% if @topic_view.print %>
<% content_for :after_body do %>
<%- if rtl? %>
<%= DiscourseStylesheets.stylesheet_link_tag(mobile_view? ? :mobile_rtl : :desktop_rtl, 'print') %>
<%- else %>
<%= DiscourseStylesheets.stylesheet_link_tag(mobile_view? ? :mobile : :desktop, 'print') %>
<%- end %>
<style media="print">
/* For readability */
a, a:visited {