diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-07-01 13:59:30 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2016-07-01 13:59:30 +0200 |
commit | 1d4d9aaf2971e5b4d00a28f935c815e88bcf1487 (patch) | |
tree | 2f7f541c4af9882d60534742290ab4e1024a534a /src/Wallabag | |
parent | 9dbd3e93028630ca808042387e88304020c80c73 (diff) | |
download | wallabag-1d4d9aaf2971e5b4d00a28f935c815e88bcf1487.tar.gz wallabag-1d4d9aaf2971e5b4d00a28f935c815e88bcf1487.tar.zst wallabag-1d4d9aaf2971e5b4d00a28f935c815e88bcf1487.zip |
Bring tags on entries view to baggy
Also, a couple of UI improvement and CSS fixing
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig | 10 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig index 8636e3be..92eecb9b 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig | |||
@@ -28,7 +28,17 @@ | |||
28 | </ul> | 28 | </ul> |
29 | {% if entry.previewPicture is null %} | 29 | {% if entry.previewPicture is null %} |
30 | <p>{{ entry.content|striptags|slice(0, 300) }}…</p> | 30 | <p>{{ entry.content|striptags|slice(0, 300) }}…</p> |
31 | <ul class="card-entry-tags"> | ||
32 | {% for tag in entry.tags %} | ||
33 | <li>{{ tag.label }}</li> | ||
34 | {% endfor %} | ||
35 | </ul> | ||
31 | {% else %} | 36 | {% else %} |
37 | <ul class="card-entry-labels"> | ||
38 | {% for tag in entry.tags | slice(0, 3) %} | ||
39 | <li>{{ tag.label }}</li> | ||
40 | {% endfor %} | ||
41 | </ul> | ||
32 | <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" /> | 42 | <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" /> |
33 | {% endif %} | 43 | {% endif %} |
34 | </div> | 44 | </div> |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index d1cadea9..e9a2b183 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | |||
@@ -77,7 +77,7 @@ | |||
77 | 77 | ||
78 | <p>{{ entry.content|striptags|slice(0, 300)|raw }}…</p> | 78 | <p>{{ entry.content|striptags|slice(0, 300)|raw }}…</p> |
79 | 79 | ||
80 | <ul class="card-entry-labels-hidden"> | 80 | <ul class="card-entry-tags"> |
81 | {% for tag in entry.tags %} | 81 | {% for tag in entry.tags %} |
82 | <li>{{ tag.label }}</li> | 82 | <li>{{ tag.label }}</li> |
83 | {% endfor %} | 83 | {% endfor %} |