From: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl> Date: Wed, 26 Oct 2011 10:48:31 +0000 (+0200) Subject: add admin links X-Git-Url: https://git.mdrn.pl/audio.git/commitdiff_plain/1afbdde3f6504b6e0505fd31a27c028ddc402f02?ds=inline;hp=d4ae69daba9be2dc07e2ec064cffde51b82a9937 add admin links --- diff --git a/apps/archive/locale/pl/LC_MESSAGES/django.mo b/apps/archive/locale/pl/LC_MESSAGES/django.mo index 7248dac..aacb099 100644 Binary files a/apps/archive/locale/pl/LC_MESSAGES/django.mo and b/apps/archive/locale/pl/LC_MESSAGES/django.mo differ diff --git a/apps/archive/locale/pl/LC_MESSAGES/django.po b/apps/archive/locale/pl/LC_MESSAGES/django.po index 3cdd29f..e47b150 100644 --- a/apps/archive/locale/pl/LC_MESSAGES/django.po +++ b/apps/archive/locale/pl/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-10-26 12:43+0200\n" -"PO-Revision-Date: 2011-10-26 12:44+0100\n" +"POT-Creation-Date: 2011-10-26 12:47+0200\n" +"PO-Revision-Date: 2011-10-26 12:47+0100\n" "Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "Language: \n" @@ -107,14 +107,18 @@ msgstr "Opublikowane" msgid "Archive" msgstr "Archiwum" -#: templates/archive/base.html:10 -msgid "Logout" -msgstr "Wyloguj" - #: templates/archive/base.html:11 msgid "Projects" msgstr "Projekty" +#: templates/archive/base.html:13 +msgid "Logout" +msgstr "Wyloguj" + +#: templates/archive/base.html:15 +msgid "Administration" +msgstr "Administracja" + #: templates/archive/file_managed.html:15 msgid "Publishing pending" msgstr "Czeka na publikacjÄ" diff --git a/apps/archive/templates/archive/base.html b/apps/archive/templates/archive/base.html index 4a82e68..5d28312 100644 --- a/apps/archive/templates/archive/base.html +++ b/apps/archive/templates/archive/base.html @@ -7,8 +7,13 @@ <a {% if division = "publishing" %}class="active" {% endif %}href="{% url list_publishing %}">{% trans "Publishing" %}</a> <a {% if division = "published" %}class="active" {% endif %}href="{% url list_published %}">{% trans "Published" %}</a> <a {% if division = "unmanaged" %}class="active" {% endif %}href="{% url list_unmanaged %}">{% trans "Archive" %}</a> + {% if user.is_staff %} + <a href='{% url admin:archive_project_changelist %}'>{% trans "Projects" %}</a> + {% endif %} <a href="{% url logout %}" style='float: right;'>{% trans "Logout" %}</a> - <a target='_blank' href='{% url admin:archive_project_changelist %}' style='float: right;'>{% trans "Projects" %}</a> + {% if user.is_staff %} + <a href='{% url admin:index %}' style='float: right;'>{% trans "Administration" %}</a> + {% endif %} <span style='float: right;'>{{ user }}</span> <div class='clr' ></div> {% endblock %}