]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #1286 from wallabag/v2-issue-1283
authorDanilow Alexandr <yandex@modos189.ru>
Thu, 6 Aug 2015 01:38:04 +0000 (04:38 +0300)
committerDanilow Alexandr <yandex@modos189.ru>
Thu, 6 Aug 2015 01:38:04 +0000 (04:38 +0300)
fix #1283: display the good title for each category

1  2 
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig

index 5ef5125f1d35772ff279430291af2077be0781ff,a2202431e67b0b7b6820a2f14f09fe462e4e46ce..fbdc1ffdff78a22504ad19add61143cfbe272d97
@@@ -1,6 -1,17 +1,17 @@@
  {% extends "WallabagCoreBundle::layout.html.twig" %}
  
- {% block title "Unread" %}
+ {% block title %}
+   {% set currentRoute = app.request.attributes.get('_route') %}
+   {% if currentRoute == 'starred' %}
+     {% trans %}Starred{% endtrans %}
+   {% elseif currentRoute == 'archive' %}
+     {% trans %}Archive{% endtrans %}
+   {% else %}
+     {% trans %}Unread{% endtrans %}
+   {% endif %}
+ {% endblock %}
  
  {% block content %}
      {% block pager %}
@@@ -21,7 -32,7 +32,7 @@@
      {% if entries is empty %}
          <div class="messages warning"><p>{% trans %}No articles found.{% endtrans %}</p></div>
      {% else %}
 -        <ul class="row">
 +        <ul class="row data">
              {% for entry in entries %}
                  <li id="entry-{{ entry.id|e }}" class="col l4 m6 s12">
                      <div class="card">