Skip to content

Commit

Permalink
Changed visibility for article stats
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosomb committed Apr 22, 2020
1 parent b367534 commit a6b5b8f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
11 changes: 7 additions & 4 deletions app/Resources/static/themes/material/css/article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
flex-flow: row wrap;

.stats {
font-size: 0.8em;
font-size: 0.7em;
margin: 8px 5px 5px;

li {
Expand All @@ -122,6 +122,7 @@
i.material-icons {
color: #3e3e3e;
margin-right: 3px;
font-size: 18px;
}
}

Expand All @@ -138,10 +139,12 @@
}

.chip {
background-color: $blueAccentColor;
background-color: #9e9e9e;
padding: 0 15px 0 10px;
margin: auto 2px;
border-radius: 6px;
height: 18px;
line-height: 18px;

a,
i {
Expand All @@ -150,8 +153,8 @@

i.material-icons {
float: right;
font-size: 20px;
line-height: 32px;
font-size: 16px;
line-height: 18px;
padding-left: 8px;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set readingTime = entry.readingTime / app.user.config.readingSpeed * 200 %}
<i class="material-icons">timer</i>
<i class="material-icons grey-text">timer</i>
{% if readingTime > 0 %}
<span>{{ 'entry.list.reading_time_minutes_short'|trans({'%readingTime%': readingTime|round}) }}</span>
{% else %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,46 +223,46 @@
{% block content %}
<div id="article">
<header class="mbm">
<h1><span{% if entry.language is defined and entry.language is not null %} lang="{{ entry.getHTMLLanguage() }}"{% endif %}>{{ entry.title|striptags|default('entry.default_title'|trans)|raw }}</span> <a href="{{ path('edit', { 'id': entry.id }) }}" title="{{ 'entry.view.edit_title'|trans }}"></a></h1>
<h1><span{% if entry.language is defined and entry.language is not null %} lang="{{ entry.getHTMLLanguage() }}"{% endif %}>{{ entry.title|striptags|default('entry.default_title'|trans)|raw }}</span> <a href="{{ path('edit', { 'id': entry.id }) }}" title="{{ 'entry.view.edit_title'|trans }}"><i class="material-icons grey-text">create</i></a></h1>
</header>
<aside>
<div class="tools">
<div class="tools grey-text">
<ul class="stats">
<li>
{% include "@WallabagCore/themes/material/Entry/_reading_time.html.twig" with {'entry': entry} only %}
</li>
<li>
<i class="material-icons" title="{{ 'entry.view.created_at'|trans }}">today</i>
<i class="material-icons grey-text" title="{{ 'entry.view.created_at'|trans }}">today</i>
{{ entry.createdAt|date('Y-m-d H:i') }}
</li>
{% if entry.publishedAt is not null %}
<li>
<i class="material-icons" title="{{ 'entry.view.published_at'|trans }}">create</i>
<i class="material-icons grey-text" title="{{ 'entry.view.published_at'|trans }}">create</i>
{{ entry.publishedAt|date('Y-m-d H:i') }}
</li>
{% endif %}
{% if entry.publishedBy is not empty %}
<li>
<i class="material-icons" title="{{ 'entry.view.published_by'|trans }}">person</i>
<i class="material-icons grey-text" title="{{ 'entry.view.published_by'|trans }}">person</i>
{% for author in entry.publishedBy %}
{{ author|raw }}{% if not loop.last %}, {% endif %}
{% endfor %}
</li>
{% endif %}
<li>
<i class="material-icons">link</i>
<a href="{{ entry.url|e }}" target="_blank" rel="noopener" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|striptags }}" class="tool">
<i class="material-icons grey-text">link</i>
<a href="{{ entry.url|e }}" target="_blank" rel="noopener" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|striptags }}" class="tool grey-text">
{{ entry.domainName|removeWww }}
</a>
</li>
<li>
<i class="material-icons">comment</i>
<i class="material-icons grey-text">comment</i>
{{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations | length) }}
</li>
{% if entry.originUrl is not empty %}
<li>
<i class="material-icons" title="{{ 'entry.view.provided_by'|trans }}">launch</i>
<a href="{{ entry.originUrl|e }}" target="_blank" rel="noopener" class="tool">
<i class="material-icons grey-text" title="{{ 'entry.view.provided_by'|trans }}">launch</i>
<a href="{{ entry.originUrl|e }}" target="_blank" rel="noopener" class="tool grey-text">
{{ entry.originUrl|striptags|removeSchemeAndWww|truncate(32) }}
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion web/wallassets/material.css

Large diffs are not rendered by default.

0 comments on commit a6b5b8f

Please sign in to comment.