mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +00:00
Improve display of articles with annotations
This commit is contained in:
parent
fcdcd5dfe3
commit
ba550268c5
5 changed files with 22 additions and 12 deletions
|
@ -183,6 +183,12 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
blockquote.annotations {
|
||||||
|
margin-top: 5px;
|
||||||
|
padding-left: 1rem;
|
||||||
|
border-left: 5px solid #00acc1;
|
||||||
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
&.page-footer {
|
&.page-footer {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
{{ entry.title|striptags|default('entry.default_title'|trans)|raw }}
|
{{ entry.title|striptags|default('entry.default_title'|trans)|raw }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if currentRoute == 'annotated' %}
|
||||||
|
<blockquote class="annotations">{{ entry.annotations[0].text|u.truncate(80, '...') }}</blockquote>
|
||||||
|
{% else %}
|
||||||
<div class="{{ subClass|default('original grey-text') }}">
|
<div class="{{ subClass|default('original grey-text') }}">
|
||||||
<a href="{{ entry.url|e }}" target="_blank" title="{{ entry.domainName|removeWww }}" class="tool grey-text">{{ entry.domainName|removeWww }}</a>
|
<a href="{{ entry.url|e }}" target="_blank" title="{{ entry.domainName|removeWww }}" class="tool grey-text">{{ entry.domainName|removeWww }}</a>
|
||||||
{% if withMetadata is defined %}
|
{% if withMetadata is defined %}
|
||||||
|
@ -19,4 +22,5 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% include "Entry/Card/_content.html.twig" with {'entry': entry} only %}
|
{% include "Entry/Card/_content.html.twig" with {'entry': entry, 'currentRoute': currentRoute} only %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include "Entry/_card_actions.html.twig" with {'entry': entry} only %}
|
{% include "Entry/_card_actions.html.twig" with {'entry': entry} only %}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include "Entry/Card/_content.html.twig" with {'entry': entry, 'withMetadata': true, 'subClass': 'metadata'} only %}
|
{% include "Entry/Card/_content.html.twig" with {'entry': entry, 'withMetadata': true, 'subClass': 'metadata', 'currentRoute': currentRoute} only %}
|
||||||
|
|
||||||
{% set current_path = app.request.requesturi %}
|
{% set current_path = app.request.requesturi %}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% include "Entry/Card/_content.html.twig" with {'entry': entry, 'withPreview': true} only %}
|
{% include "Entry/Card/_content.html.twig" with {'entry': entry, 'withPreview': true, 'currentRoute': currentRoute} only %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-reveal">
|
<div class="card-reveal">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue