Badges on audiobook list.
authorRadek Czajka <rczajka@rczajka.pl>
Fri, 5 Jun 2020 22:32:07 +0000 (00:32 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Fri, 5 Jun 2020 22:32:07 +0000 (00:32 +0200)
src/archive/locale/pl/LC_MESSAGES/django.mo
src/archive/locale/pl/LC_MESSAGES/django.po
src/archive/templates/archive/audiobook_list.html

index a1c333d..666b791 100644 (file)
Binary files a/src/archive/locale/pl/LC_MESSAGES/django.mo and b/src/archive/locale/pl/LC_MESSAGES/django.mo differ
index 2aa34bf..6fb331d 100644 (file)
@@ -8,7 +8,7 @@ msgstr ""
 "Project-Id-Version: \n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2020-06-06 00:25+0200\n"
-"PO-Revision-Date: 2020-06-06 00:28+0200\n"
+"PO-Revision-Date: 2020-06-06 00:30+0200\n"
 "Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
 "Language-Team: \n"
 "Language: pl\n"
@@ -145,7 +145,7 @@ msgstr "audiobooki"
 
 #: templates/archive/audiobook_list.html:10 templates/archive/base.html:6
 msgid "Audiobooks"
-msgstr "audiobooki"
+msgstr "Audiobooki"
 
 #: templates/archive/audiobook_list.html:28 templates/archive/book.html:19
 msgid "Title"
index 1521b42..f4a49a9 100644 (file)
@@ -1,6 +1,7 @@
 {% extends "archive/list.html" %}
 {% load i18n %}
 {% load pagination_tags %}
+{% load tags %}
 
 
 {% block menu-active-audiobooks %}active{% endblock %}
           {{ audiobook.youtube_volume }}
         </td>
         <td>
-          {% if audiobook.mp3_status %}
-            <span class="badge badge-info">
-              MP3:
-              {{ audiobook.get_mp3_status_display }}
-            </span>
-          {% endif %}
+          {% status audiobook "mp3" %}
         </td>
         <td>
-          {% if audiobooks.ogg_status_display %}
-            <span class="badge badge-info">
-              Ogg:
-              {{ audiobook.get_ogg_status_display }}
-            </span>
-          {% endif %}
+          {% status audiobook "ogg" %}
         </td>
         <td>
-          {% if audiobooks.youtube_status %}
-            <span class="badge badge-info">
-              YT:
-              {{ audiobook.get_youtube_status_display }}
-            </span>
-          {% endif %}
+          {% status audiobook "youtube" %}
         </td>
     </tr>
   {% endfor %}