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=813e80cb4e105b9db67e60c2b3cfc0904ceae842;hpb=2e02b504095b40f7117ce737449f13d7fdda683a;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..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,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,62 @@ {% 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 %} + @@ -56,14 +97,61 @@ {% endfor %} + +
    + {% 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) }} +
    @@ -77,8 +165,13 @@
    +
    + {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com' | trans} }) }} + +
    +
    - +