]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/osqaadmin/djstyle_base.html
Adds custom <head> elements and mimetype to the custom pages.
[osqa.git] / forum / skins / default / templates / osqaadmin / djstyle_base.html
index 2d74adf1de217e0db053b950ada16d4628800a4a..3f09125bc3f9ae8649ca06574b31ae9482999d8c 100644 (file)
@@ -38,7 +38,7 @@
             </div>
         </div>
         <div class="breadcrumbs">
-            <a href="{% url index %}">{% trans "Home" %}</a> &gt
+            <a href="{% url index %}">{% trans "Home" %}</a> &gt;
             <a href="{% url admin_index %}">{% trans "Dashboard" %}</a> &gt;
             {% block pagename %}{% endblock %} - 
             {% block description %}{% endblock %}
                 {% block admincontent %}{% endblock %}
             </div>
             <div id="content-related">
+                {% if unsaved %}
+                <div id="changes-box" class="module">
+                    <h2>{% trans "Unpublished changes" %}</h2>
+                    <p>
+                        <img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" />
+                        {% trans "Items marked with this icon have unpublished changes." %}
+                    </p>
+                </div>
+                {% endif %}
                 <div id="basic-sets-menu" class="module">
                     <h2>{% trans "Basic settings" %}</h2>
                     <ul>
                 <div id="pages-sets-menu" class="module">
                     <h2>{% trans "Static content" %}</h2>
                     <ul>
+                        <li><a href="{% url admin_static_pages %}">{% trans "Custom Pages" %}</a></li>
                         <li><a href="{% url admin_set allsets.about.name %}">{{ allsets.about.title }}</a></li>
                         <li><a href="{% url admin_set allsets.faq.name %}">{{ allsets.faq.title }}</a></li>
                         <li><a href="{% url admin_set allsets.sidebar.name %}">{{ allsets.sidebar.title }}</a></li>
+                        <li>
+                            <a href="{% url admin_set allsets.css.name %}">{{ allsets.css.title }}</a>
+                            {% if "css" in unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
+                        </li>
+                        <li>
+                            <a href="{% url admin_set allsets.headandfoot.name %}">{{ allsets.headandfoot.title }}</a>
+                            {% if "headandfoot" in unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
+                        </li>
+                        <li>
+                            <a href="{% url admin_set allsets.head.name %}">{{ allsets.head.title }}</a>
+                            {% if "head" in unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
+                        </li>
                     </ul>
                 </div>
                 <div id="other-sets-menu" class="module">
                     <h2>{% trans "Other settings" %}</h2>
                     <ul>
                     {% for set in othersets %}
-                        <li><a href="{% url admin_set set.name %}">{{ set.title }}</a></li>
+                        <li>
+                            <a href="{% url admin_set set.name %}">{{ set.title }}</a>
+                            {% if set.name in unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
+                        </li>
                     {% endfor %}
                     </ul>
                 </div>