]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Added tag label in the page title
authorNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 26 Oct 2016 11:53:23 +0000 (13:53 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 26 Oct 2016 11:53:23 +0000 (13:53 +0200)
Fix #2472

16 files changed:
src/Wallabag/CoreBundle/Controller/TagController.php
src/Wallabag/CoreBundle/Resources/translations/messages.da.yml
src/Wallabag/CoreBundle/Resources/translations/messages.de.yml
src/Wallabag/CoreBundle/Resources/translations/messages.en.yml
src/Wallabag/CoreBundle/Resources/translations/messages.es.yml
src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml
src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
src/Wallabag/CoreBundle/Resources/translations/messages.it.yml
src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml
src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml
src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml
src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml
src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml
src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig

index 5acc685281a205a57cf88b92e72125cc040abc0b..707f3bbe3ea152a45964189baaf5f5ba313fbbfb 100644 (file)
@@ -143,6 +143,7 @@ class TagController extends Controller
             'form' => null,
             'entries' => $entries,
             'currentPage' => $page,
+            'tag' => $tag->getLabel(),
         ]);
     }
 }
index 714ced14d1a42566a5fdfd933100e75725aadcd8..6ca7e459c7a6ffaca14f1676de5e501481c0d2ef 100644 (file)
@@ -137,7 +137,7 @@ entry:
         # starred: 'Starred entries'
         # archived: 'Archived entries'
         # filtered: 'Filtered entries'
-        # filtered_tags: 'Filtered by tags'
+        # filtered_tags: 'Filtered by tags:'
         # untagged: 'Untagged entries'
     list:
         # number_on_the_page: '{0} There is no entry.|{1} There is one entry.|]1,Inf[ There are %count% entries.'
index 57e49f84ec61330d7ea6087ab8836219fba8c483..8fd1d82a2f59e95308d667fe2a068fe48452ec08 100644 (file)
@@ -137,7 +137,7 @@ entry:
         starred: 'Favorisierte Einträge'
         archived: 'Archivierte Einträge'
         filtered: 'Gefilterte Einträge'
-        filtered_tags: 'Gefiltert nach Tags'
+        filtered_tags: 'Gefiltert nach Tags:'
         untagged: 'Nicht getaggte Einträge'
     list:
         number_on_the_page: '{0} Es gibt keine Einträge.|{1} Es gibt einen Eintrag.|]1,Inf[ Es gibt %count% Einträge.'
index 4a59c75eb3c568a786b94c2b09b53e82599f7903..02f56535cc4980dee2e206f2bc16a95eb62b7e41 100644 (file)
@@ -137,7 +137,7 @@ entry:
         starred: 'Starred entries'
         archived: 'Archived entries'
         filtered: 'Filtered entries'
-        filtered_tags: 'Filtered by tags'
+        filtered_tags: 'Filtered by tags:'
         untagged: 'Untagged entries'
     list:
         number_on_the_page: '{0} There are no entries.|{1} There is one entry.|]1,Inf[ There are %count% entries.'
index 1b1e0cb1056318d536717774776db5782330b062..42ec8183fdab25fcc76075bc4e8f9b9375df5467 100644 (file)
@@ -137,7 +137,7 @@ entry:
         starred: 'Artículos favoritos'
         archived: 'Artículos archivados'
         filtered: 'Artículos filtrados'
-        # filtered_tags: 'Filtered by tags'
+        # filtered_tags: 'Filtered by tags:'
         # untagged: 'Untagged entries'
     list:
         number_on_the_page: '{0} No hay artículos.|{1} Hay un artículo.|]1,Inf[ Hay %count% artículos.'
index 41dc8acf41c9ad963d9e3ca212aaf9f4f8d3636b..f82167df9ebf8b7583506cdc7e10d9c323445251 100644 (file)
@@ -137,7 +137,7 @@ entry:
         starred: 'مقاله‌های برگزیده'
         archived: 'مقاله‌های بایگانی‌شده'
         filtered: 'مقاله‌های فیلترشده'
-        # filtered_tags: 'Filtered by tags'
+        # filtered_tags: 'Filtered by tags:'
         # untagged: 'Untagged entries'
     list:
         number_on_the_page: '{0} هیج مقاله‌ای نیست.|{1} یک مقاله هست.|]1,Inf[ %count% مقاله هست.'
index 7fb9681d97ed75141bd34400098c5878818f1831..574cc1a747b5084355e32e137e7273e794b122a3 100644 (file)
@@ -137,7 +137,7 @@ entry:
         starred: 'Articles favoris'
         archived: 'Articles lus'
         filtered: 'Articles filtrés'
-        filtered_tags: 'Articles filtrés par tags'
+        filtered_tags: 'Articles filtrés par tags :'
         untagged: 'Article sans tag'
     list:
         number_on_the_page: "{0} Il n'y a pas d'articles.|{1} Il y a un article.|]1,Inf[ Il y a %count% articles."
index b279ae40e056195a38409fc28721c840dd6b5d0c..d679ef003240aa9a043d9e9f97ab94646fbc4692 100644 (file)
@@ -137,7 +137,7 @@ entry:
         starred: 'Contenuti preferiti'
         archived: 'Contenuti archiviati'
         filtered: 'Contenuti filtrati'
-        # filtered_tags: 'Filtered by tags'
+        # filtered_tags: 'Filtered by tags:'
         # untagged: 'Untagged entries'
     list:
         number_on_the_page: "{0} Non ci sono contenuti.|{1} C'è un contenuto.|]1,Inf[ Ci sono %count% contenuti."
index a4659620b31c78a9728419fa3c72145a4daf76bf..af0fba0dc409dac909604cf992cc39a7ce9e94ce 100644 (file)
@@ -137,7 +137,7 @@ entry:
         starred: 'Articles favorits'
         archived: 'Articles legits'
         filtered: 'Articles filtrats'
-        filtered_tags: 'Filtats per etiquetas'
+        filtered_tags: 'Filtats per etiquetas:'
         untagged: 'Articles sens etiqueta'
     list:
         number_on_the_page: "{0} I a pas cap d'article.|{1} I a un article.|]1,Inf[ I a %count% articles."
index 798b39c22ca761f1fdad09fe3edc3555a75e08b8..bf47b58a72e3ad602ea92f350917f2581fee9933 100644 (file)
@@ -137,7 +137,7 @@ entry:
         starred: 'Wpisy oznaczone gwiazdką'
         archived: 'Zarchiwizowane wpisy'
         filtered: 'Odfiltrowane wpisy'
-        filtered_tags: 'Filtrowane po tagach'
+        filtered_tags: 'Filtrowane po tagach:'
         untagged: 'Odtaguj wpisy'
     list:
         number_on_the_page: '{0} Nie ma wpisów.|{1} Jest jeden wpis.|]1,Inf[ Są %count% wpisy.'
index 45dc52c9e76a3b7304af220dc36bbb76e79c1c15..f10dc9aa20cfc1b8a2493db8c7e737f52821cc35 100644 (file)
@@ -137,7 +137,7 @@ entry:
         starred: 'Entradas destacadas'
         archived: 'Entradas arquivadas'
         filtered: 'Entradas filtradas'
-        filtered_tags: 'Filtrar por tags'
+        filtered_tags: 'Filtrar por tags:'
         untagged: 'Entradas sem tags'
     list:
         number_on_the_page: '{0} Não existem entradas.|{1} Existe uma entrada.|]1,Inf[ Existem %count% entradas.'
index 21f27e0880f4e14ed973bb57ac609abd55121a36..875c82e8372b29b5bc3195e20b592821fcb5b014 100644 (file)
@@ -137,7 +137,7 @@ entry:
         # starred: 'Starred entries'
         # archived: 'Archived entries'
         # filtered: 'Filtered entries'
-        # filtered_tags: 'Filtered by tags'
+        # filtered_tags: 'Filtered by tags:'
         # untagged: 'Untagged entries'
     list:
         # number_on_the_page: '{0} There is no entry.|{1} There is one entry.|]1,Inf[ There are %count% entries.'
index f137ec996c321474687dd7e2af40f986fc9cb97a..f50f629a0224261c3eff8f81917874de9bb7d404 100644 (file)
@@ -136,7 +136,7 @@ entry:
         # starred: 'Starred entries'
         # archived: 'Archived entries'
         # filtered: 'Filtered entries'
-        # filtered_tags: 'Filtered by tags'
+        # filtered_tags: 'Filtered by tags:'
         # untagged: 'Untagged entries'
     list:
         number_on_the_page: '{0} Herhangi bir makale yok.|{1} Burada bir adet makale var.|]1,Inf[ Burada %count% adet makale var.'
index 3af88b2378dfd81e58c9b138686b220056c64f27..f7c9392d690903db4c7070884fe36e703f4f261b 100644 (file)
@@ -1,7 +1,11 @@
 {% extends "WallabagCoreBundle::layout.html.twig" %}
 
 {% block title %}
-    {% include "@WallabagCore/themes/common/Entry/_title.html.twig" %}
+    {% set params = {} %}
+    {% if tag is defined %}
+        {% set params = {'label': tag} %}
+    {% endif %}
+    {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'params': params} %}
 {% endblock %}
 
 {% block content %}
index d1c2f20379f19182b0a4a312604e07f37f1f1519..42dfee5831ffb12f13388c4033baebedfe3c5ae3 100644 (file)
@@ -7,7 +7,7 @@
 {% elseif currentRoute == 'all' %}
     {{ 'entry.page_titles.filtered'|trans }}
 {% elseif currentRoute == 'tag_entries' %}
-    {{ 'entry.page_titles.filtered_tags'|trans }}
+    {{ 'entry.page_titles.filtered_tags'|trans }} {{ params['label'] }}
 {% elseif currentRoute == 'untagged' %}
     {{ 'entry.page_titles.untagged'|trans }}
 {% else %}
index 919f94ecad7b898c799f5607ab1a8f9cf41854ba..3e678a3260f039a85f57ac27c92fadee72e1a297 100644 (file)
@@ -1,7 +1,11 @@
 {% extends "WallabagCoreBundle::layout.html.twig" %}
 
 {% block title %}
-  {% include "@WallabagCore/themes/common/Entry/_title.html.twig" %}
+  {% set params = {} %}
+  {% if tag is defined %}
+    {% set params = {'label': tag} %}
+  {% endif %}
+  {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'params': params} %}
 {% endblock %}
 
 {% block content %}