X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=371992df41aad59aea17aebf337e06f475c52559;hb=bca5485946a72942c76dbb65c29e40818dca4976;hp=3711f6e561dd49a52193ac8c4a6ea4c3f87a9892;hpb=49e564ec159371d9fa751ba75f9f1c555d108179;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 3711f6e5..371992df 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,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|striptags|slice(0, 42)|raw }} + +
    + + {% set readingTime = entry.readingTime / app.user.config.readingSpeed %} + {% if readingTime > 0 %} + {% trans with {'%readingTime%': readingTime } %}estimated reading time: %readingTime% min{% endtrans %} + {% else %} + {% trans with {'%inferior%': '<'} %}estimated reading time: %inferior% 1 min{% endtrans %} + {% endif %} + +
    + + {% 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 %}

    +
      + {% if craue_setting('export_epub') %}
    • EPUB
    • {% endif %} + {% if craue_setting('export_mobi') %}
    • MOBI
    • {% endif %} + {% if craue_setting('export_pdf') %}
    • PDF
    • {% endif %} + {% if craue_setting('export_csv') %}
    • JSON
    • {% endif %} + {% if craue_setting('export_json') %}
    • CSV
    • {% endif %} + {% if craue_setting('export_txt') %}
    • TXT
    • {% endif %} + {% if craue_setting('export_xml') %}
    • XML
    • {% endif %} +
    +
    -

    {% trans %}Filters{% endtrans %}

    +

    {% trans %}Filters{% endtrans %}

    - -
    -
    + +
    {{ form_widget(form.isArchived) }}
    -
    +
    {{ form_widget(form.isStarred) }}
    +
    + +
    + +
    + {{ form_widget(form.previewPicture) }} + +
    + +
    + +
    + +
    + {{ form_widget(form.language) }} +
    +
    @@ -94,7 +166,7 @@
    - {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com'} }) }} + {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com' | trans} }) }}