X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=668824bc0bbed56eabf9f8c7c6e96fdd44c57ae8;hb=16dabc326311f084d671be188c7941bbb3c341c9;hp=813e80cb4e105b9db67e60c2b3cfc0904ceae842;hpb=a3b4e8a2c07d26ecb6196ac8b0be9764fd30cb93;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 813e80cb..668824bc 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,11 +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 %} @@ -23,7 +25,7 @@ {{ p }} {% endfor %} - + {% endblock %}
@@ -31,23 +33,56 @@ {% 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|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 %} + @@ -56,14 +91,43 @@ {% endfor %} -
    -
    + -

    {% trans %}Filters{% endtrans %}

    +

    {% trans %}Filters{% endtrans %}

    +
    + +
    + +
    + {{ form_widget(form.isArchived) }} + +
    + +
    + {{ form_widget(form.isStarred) }} + +
    + +
    + +
    + +
    + {{ form_widget(form.previewPicture) }} + +
    + +
    + +
    + +
    + {{ form_widget(form.language) }} +
    @@ -77,8 +141,13 @@
    +
    + {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com'} }) }} + +
    +
    - +