X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=e9925e3d60999096dad2d15b4fc917ba4b264f01;hb=365a38984e32d152ec0170991a61bf704756cf1e;hp=9a2442a08596e1363d9c73e447fce2964dc274aa;hpb=a3bcd60a378946a68e67a3b609d7ef126b014ee6;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 9a2442a0..e9925e3d 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,17 +33,52 @@ {% 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
    + +
    + {% if not entry.previewPicture is null %} +
    +
    +
    {% endif %} -

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

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

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

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

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

    +
    + {% endif %} +
    - {{ entry.domainName | truncate(18) }} + {{ entry.domainName|removeWww|truncate(18) }} + +
    + {% set currentRoute = app.request.attributes.get('_route') %} + {% if currentRoute == 'homepage' %} + {% set currentRoute = 'unread' %} + {% endif %} +

    {% trans %}Export{% endtrans %}

    + +
    -

    {% trans %}Filters{% endtrans %}

    +

    {% trans %}Filters{% endtrans %}

    +
    + +
    +
    + {{ form_widget(form.isArchived) }} + +
    + +
    + {{ form_widget(form.isStarred) }} + +
    - +
    -
    +
    {{ form_widget(form.previewPicture) }}
    -
    - {{ form_widget(form.isArchived) }} - +
    +
    -
    - {{ form_widget(form.isStarred) }} - +
    + {{ form_widget(form.language) }}