X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=6de800b94fb57d94b4aabf3148f9b1f111c49aae;hb=63e40f2d7c4074aff0be587c828eb511a6b7c878;hp=b45552f2df8a00a79e90f04b11e425535b01b3a4;hpb=f506da40e2573a98cd84159b2ee36621220a2771;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 b45552f2..6de800b9 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,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 %} + @@ -58,29 +91,62 @@ {% endfor %} + +
    + {% 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.language) }} +
    +
    @@ -93,7 +159,7 @@
    -
    +
    {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com'} }) }}