X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=a1d4746e218dd3df9e4069df458040d5e4acb811;hb=4aafa7f0df1302dc0984ad942fef3c3be7bffd0d;hp=b46d8f11fd5a1071954ff4406fd54721d47f8c96;hpb=4d5fd9be812825c480589cdcfcec281ffb5aa66a;p=github%2Fwallabag%2Fwallabag.git 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 b46d8f11..a1d4746e 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 @@ -4,13 +4,13 @@ {% set currentRoute = app.request.attributes.get('_route') %} {% if currentRoute == 'starred' %} - {% trans %}Starred{% endtrans %} + {% trans %}starred{% endtrans %} {% elseif currentRoute == 'archive' %} - {% trans %}Archive{% endtrans %} + {% trans %}archive{% endtrans %} {% elseif currentRoute == 'all' %} {% trans %}Filtered{% endtrans %} {% else %} - {% trans %}Unread{% endtrans %} + {% trans %}unread{% endtrans %} {% endif %} {% endblock %} @@ -33,21 +33,50 @@ {% for entry in entries %}
  • -
    - {{ entry.title|raw }} - {% if entry.readingTime > 0 %} -
    {% trans %}estimated reading time: {% endtrans %} {{ entry.readingTime }} min
    - {% else %} -
    {% trans %}estimated reading time: {% endtrans %} < 1 min
    - {% endif %} - {% if entry.previewPicture is null %} -

    {{ entry.content|striptags|slice(0, 300) }}…

    - {% else %} - {{ entry.title|raw }} + +
    + {% if not entry.previewPicture is null %} +
    +
    +
    {% endif %} + +
    + {% if not entry.previewPicture is null %} + + {% endif %} + + {{ entry.title|raw|striptags|slice(0, 42) }} + + {% if entry.readingTime > 0 %} +
    {% trans %}estimated reading time{% endtrans %}: {{ entry.readingTime }} min
    + {% else %} +
    {% trans %}estimated reading time{% endtrans %}: < 1 min
    + {% endif %} + + {% if entry.previewPicture is null %} +

    {{ entry.content|striptags|slice(0, 300) }}…

    + {% endif %} +
    + + {% if not entry.previewPicture is null %} +
    + + {{ entry.title|raw }} + + {% if entry.readingTime > 0 %} +
    {% trans %}estimated reading time{% endtrans %}: {{ entry.readingTime }} min
    + {% else %} +
    {% trans %}estimated reading time{% endtrans %}: < 1 min
    + {% endif %} + +

    {{ entry.content|striptags|slice(0, 300) }}…

    +
    + {% endif %} +
    - {{ entry.domainName | truncate(18) }} + {{ entry.domainName|removeWww|truncate(18) }}