FEATURE: More improvements to crawler and old browsers view

Related to c85018cdfd.
This commit is contained in:
Dan Ungureanu 2020-04-30 12:07:51 +03:00
parent 238cbff46f
commit fe51f7a863
No known key found for this signature in database
GPG Key ID: 0AA2A00D6ACC8B84
6 changed files with 12 additions and 16 deletions

View File

@ -1,6 +1,6 @@
/* eslint-disable */
// Any IE only polyfill should be moved in discourse-internet-explorer plugin
// Any IE only polyfill should be moved in discourse-unsupported-browser plugin
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/flags#Polyfill
// IE and EDGE

View File

@ -142,12 +142,6 @@
}
}
.link-bottom-line {
.category-name {
margin-right: 12px;
}
}
.unread-indicator {
&.read {
display: none;

View File

@ -11,6 +11,10 @@ body.crawler {
box-sizing: border-box;
}
.header-buttons {
display: none;
}
div#main-outlet {
div.post {
word-break: break-word;
@ -29,10 +33,6 @@ body.crawler {
margin-top: 4em;
}
.category-title {
color: $primary;
}
.discourse-tags {
color: $primary-medium;
}

View File

@ -69,7 +69,9 @@
<% if (!@category || @category.has_children?) && t.category %>
<a href='<%= t.category.url %>' class='badge-wrapper bullet'>
<span class='badge-category-bg' style='background-color: #<%= t.category.color %>'></span>
<span class='category-title'><%= t.category.name %></span>
<span class='badge-category clear-badge'>
<span class='category-name'><%= t.category.name %></span>
</span>
</a>
<% end %>
<% if t.tags %>
@ -99,10 +101,10 @@
<% end %>
</td>
<td>
<span class='views' title='<%= t 'views' %>'><%= t.views %></span>
<span class='posts' title='<%= t 'posts' %>'><%= t.posts_count %></span>
</td>
<td>
<span class='posts' title='<%= t 'posts' %>'><%= t.posts_count %></span>
<span class='views' title='<%= t 'views' %>'><%= t.views %></span>
</td>
<td>
<%= I18n.l(t.last_posted_at || t.created_at, format: :date_only) %>

View File

@ -11,7 +11,7 @@
<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a href="<%= Discourse.base_url %><%= c[:url] %>" class="badge-wrapper bullet" itemprop="item">
<span class="badge-category-bg" style='background-color: #<%= c[:color] %>'></span>
<span class="category-title" itemprop="name"><%= c[:name] %></span>
<span class="category-name" itemprop="name"><%= c[:name] %></span>
</a>
<meta itemprop="position" content="<%= i + 1 %>" />
</span>

View File

@ -3052,7 +3052,7 @@ en:
today: "Today"
other_periods: "see top"
browser_update: 'Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is too old to work on this site</a>. Please <a href="https://browsehappy.com">upgrade your browser</a>.'
browser_update: 'Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is too old to work on this site</a>. Please <a href="https://browsehappy.com">upgrade your browser</a> to view rich content, login, and reply.'
permission_types:
full: "Create / Reply / See"