From: Radek Czajka Date: Fri, 5 Jun 2020 22:32:07 +0000 (+0200) Subject: Badges on audiobook list. X-Git-Url: https://git.mdrn.pl/audio.git/commitdiff_plain/69fe4abd2389432ba3f9b017b55d4b8d500c92a0 Badges on audiobook list. --- diff --git a/src/archive/locale/pl/LC_MESSAGES/django.mo b/src/archive/locale/pl/LC_MESSAGES/django.mo index a1c333d..666b791 100644 Binary files a/src/archive/locale/pl/LC_MESSAGES/django.mo and b/src/archive/locale/pl/LC_MESSAGES/django.mo differ diff --git a/src/archive/locale/pl/LC_MESSAGES/django.po b/src/archive/locale/pl/LC_MESSAGES/django.po index 2aa34bf..6fb331d 100644 --- a/src/archive/locale/pl/LC_MESSAGES/django.po +++ b/src/archive/locale/pl/LC_MESSAGES/django.po @@ -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 \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" diff --git a/src/archive/templates/archive/audiobook_list.html b/src/archive/templates/archive/audiobook_list.html index 1521b42..f4a49a9 100644 --- a/src/archive/templates/archive/audiobook_list.html +++ b/src/archive/templates/archive/audiobook_list.html @@ -1,6 +1,7 @@ {% extends "archive/list.html" %} {% load i18n %} {% load pagination_tags %} +{% load tags %} {% block menu-active-audiobooks %}active{% endblock %} @@ -45,28 +46,13 @@ {{ audiobook.youtube_volume }} - {% if audiobook.mp3_status %} - - MP3: - {{ audiobook.get_mp3_status_display }} - - {% endif %} + {% status audiobook "mp3" %} - {% if audiobooks.ogg_status_display %} - - Ogg: - {{ audiobook.get_ogg_status_display }} - - {% endif %} + {% status audiobook "ogg" %} - {% if audiobooks.youtube_status %} - - YT: - {{ audiobook.get_youtube_status_display }} - - {% endif %} + {% status audiobook "youtube" %} {% endfor %}