add admin links
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Wed, 26 Oct 2011 10:48:31 +0000 (12:48 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Wed, 26 Oct 2011 10:48:31 +0000 (12:48 +0200)
apps/archive/locale/pl/LC_MESSAGES/django.mo
apps/archive/locale/pl/LC_MESSAGES/django.po
apps/archive/templates/archive/base.html

index 7248dac..aacb099 100644 (file)
Binary files a/apps/archive/locale/pl/LC_MESSAGES/django.mo and b/apps/archive/locale/pl/LC_MESSAGES/django.mo differ
index 3cdd29f..e47b150 100644 (file)
@@ -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Ä™"
index 4a82e68..5d28312 100644 (file)
@@ -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 %}