diff options
author | Nicolas Lœuillet <nicolas@loeuillet.org> | 2020-04-22 15:12:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 15:12:37 +0200 |
commit | 6bd8f626e4a87a500e7d7904916dc593052d49c9 (patch) | |
tree | 6faafc4516d7b984659968f5cdbf3f88f01dca94 /src/Wallabag/CoreBundle | |
parent | b367534991cffe583b227aed1bad2de607266f8f (diff) | |
parent | 01f8a776a49882dc1d1bb612b7f396d66400fa4b (diff) | |
download | wallabag-6bd8f626e4a87a500e7d7904916dc593052d49c9.tar.gz wallabag-6bd8f626e4a87a500e7d7904916dc593052d49c9.tar.zst wallabag-6bd8f626e4a87a500e7d7904916dc593052d49c9.zip |
Merge pull request #4347 from wallabag/article-stats-grey
🎨 Changed visibility for article stats
Diffstat (limited to 'src/Wallabag/CoreBundle')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_reading_time.html.twig | 2 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_reading_time.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_reading_time.html.twig index b7167e95..18b2fd3d 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_reading_time.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_reading_time.html.twig | |||
@@ -1,5 +1,5 @@ | |||
1 | {% set readingTime = entry.readingTime / app.user.config.readingSpeed * 200 %} | 1 | {% set readingTime = entry.readingTime / app.user.config.readingSpeed * 200 %} |
2 | <i class="material-icons">timer</i> | 2 | <i class="material-icons grey-text">timer</i> |
3 | {% if readingTime > 0 %} | 3 | {% if readingTime > 0 %} |
4 | <span>{{ 'entry.list.reading_time_minutes_short'|trans({'%readingTime%': readingTime|round}) }}</span> | 4 | <span>{{ 'entry.list.reading_time_minutes_short'|trans({'%readingTime%': readingTime|round}) }}</span> |
5 | {% else %} | 5 | {% else %} |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig index e23fa0e1..527b1afc 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig | |||
@@ -223,46 +223,46 @@ | |||
223 | {% block content %} | 223 | {% block content %} |
224 | <div id="article"> | 224 | <div id="article"> |
225 | <header class="mbm"> | 225 | <header class="mbm"> |
226 | <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> | 226 | <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> |
227 | </header> | 227 | </header> |
228 | <aside> | 228 | <aside> |
229 | <div class="tools"> | 229 | <div class="tools grey-text"> |
230 | <ul class="stats"> | 230 | <ul class="stats"> |
231 | <li> | 231 | <li> |
232 | {% include "@WallabagCore/themes/material/Entry/_reading_time.html.twig" with {'entry': entry} only %} | 232 | {% include "@WallabagCore/themes/material/Entry/_reading_time.html.twig" with {'entry': entry} only %} |
233 | </li> | 233 | </li> |
234 | <li> | 234 | <li> |
235 | <i class="material-icons" title="{{ 'entry.view.created_at'|trans }}">today</i> | 235 | <i class="material-icons grey-text" title="{{ 'entry.view.created_at'|trans }}">today</i> |
236 | {{ entry.createdAt|date('Y-m-d H:i') }} | 236 | {{ entry.createdAt|date('Y-m-d H:i') }} |
237 | </li> | 237 | </li> |
238 | {% if entry.publishedAt is not null %} | 238 | {% if entry.publishedAt is not null %} |
239 | <li> | 239 | <li> |
240 | <i class="material-icons" title="{{ 'entry.view.published_at'|trans }}">create</i> | 240 | <i class="material-icons grey-text" title="{{ 'entry.view.published_at'|trans }}">create</i> |
241 | {{ entry.publishedAt|date('Y-m-d H:i') }} | 241 | {{ entry.publishedAt|date('Y-m-d H:i') }} |
242 | </li> | 242 | </li> |
243 | {% endif %} | 243 | {% endif %} |
244 | {% if entry.publishedBy is not empty %} | 244 | {% if entry.publishedBy is not empty %} |
245 | <li> | 245 | <li> |
246 | <i class="material-icons" title="{{ 'entry.view.published_by'|trans }}">person</i> | 246 | <i class="material-icons grey-text" title="{{ 'entry.view.published_by'|trans }}">person</i> |
247 | {% for author in entry.publishedBy %} | 247 | {% for author in entry.publishedBy %} |
248 | {{ author|raw }}{% if not loop.last %}, {% endif %} | 248 | {{ author|raw }}{% if not loop.last %}, {% endif %} |
249 | {% endfor %} | 249 | {% endfor %} |
250 | </li> | 250 | </li> |
251 | {% endif %} | 251 | {% endif %} |
252 | <li> | 252 | <li> |
253 | <i class="material-icons">link</i> | 253 | <i class="material-icons grey-text">link</i> |
254 | <a href="{{ entry.url|e }}" target="_blank" rel="noopener" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|striptags }}" class="tool"> | 254 | <a href="{{ entry.url|e }}" target="_blank" rel="noopener" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|striptags }}" class="tool grey-text"> |
255 | {{ entry.domainName|removeWww }} | 255 | {{ entry.domainName|removeWww }} |
256 | </a> | 256 | </a> |
257 | </li> | 257 | </li> |
258 | <li> | 258 | <li> |
259 | <i class="material-icons">comment</i> | 259 | <i class="material-icons grey-text">comment</i> |
260 | {{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations | length) }} | 260 | {{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations | length) }} |
261 | </li> | 261 | </li> |
262 | {% if entry.originUrl is not empty %} | 262 | {% if entry.originUrl is not empty %} |
263 | <li> | 263 | <li> |
264 | <i class="material-icons" title="{{ 'entry.view.provided_by'|trans }}">launch</i> | 264 | <i class="material-icons grey-text" title="{{ 'entry.view.provided_by'|trans }}">launch</i> |
265 | <a href="{{ entry.originUrl|e }}" target="_blank" rel="noopener" class="tool"> | 265 | <a href="{{ entry.originUrl|e }}" target="_blank" rel="noopener" class="tool grey-text"> |
266 | {{ entry.originUrl|striptags|removeSchemeAndWww|truncate(32) }} | 266 | {{ entry.originUrl|striptags|removeSchemeAndWww|truncate(32) }} |
267 | </a> | 267 | </a> |
268 | </li> | 268 | </li> |