From 69fe4abd2389432ba3f9b017b55d4b8d500c92a0 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Sat, 6 Jun 2020 00:32:07 +0200 Subject: [PATCH 1/1] Badges on audiobook list. --- src/archive/locale/pl/LC_MESSAGES/django.mo | Bin 5020 -> 5020 bytes src/archive/locale/pl/LC_MESSAGES/django.po | 4 ++-- .../templates/archive/audiobook_list.html | 22 ++++-------------- 3 files changed, 6 insertions(+), 20 deletions(-) diff --git a/src/archive/locale/pl/LC_MESSAGES/django.mo b/src/archive/locale/pl/LC_MESSAGES/django.mo index a1c333d3931976705579d658df54cb1ac55ae249..666b791f72faca6d33c76258618258e938b92eb8 100644 GIT binary patch delta 22 dcmbQEK1Y3n2M?36!DcU>D~ybeo8|dxSpiW!266xZ delta 22 dcmbQEK1Y3n2M?2x#bz&_D~ybZo8|dxSpia42AKc= 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 %} -- 2.20.1