]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/osqaadmin/djstyle_base.html
Merge pull request #11 from udacity/make_faq_settings_translatable
[osqa.git] / forum / skins / default / templates / osqaadmin / djstyle_base.html
1 {% load extra_tags extra_filters i18n %}
2
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
4         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5
6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <head>
8     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
9     <link rel="stylesheet" href="{{ settings.ADMIN_MEDIA_PREFIX }}css/base.css" type="text/css"/>
10     <link rel="stylesheet" href="{{ settings.ADMIN_MEDIA_PREFIX }}css/forms.css" type="text/css"/>
11     <link rel="stylesheet" href="{{ settings.ADMIN_MEDIA_PREFIX }}css/changelists.css" type="text/css"/>
12     <!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{{ settings.ADMIN_MEDIA_PREFIX }}css/ie.css" /><![endif]-->
13     <link rel="stylesheet" type="text/css" media="screen" href="{% media "/media/style/djstyle_admin.css" %}"/>
14     <script src="http://www.google.com/jsapi" type="text/javascript"></script>
15     <script type="text/javascript">
16     //<!--
17         google.load("jquery", "1.3");
18     //-->
19     </script>
20     <script type="text/javascript" src="{% media "/media/js/osqa.admin.js" %}"></script>
21     {% block adminjs %}{% endblock %}
22     <title>{% trans "OSQA administration area" %} - {% block subtitle %}{% endblock %}</title>
23 </head>
24 <body>
25 <div id="container" class="change-list">
26         <div id="header">
27             {% block header %}
28             <div id="branding">
29                 <h1 id="site-name">{{ settings.APP_SHORT_NAME }} - {% trans "Administration Area" %} </h1>
30             </div>
31             {% endblock %}
32             <div id="user-tools">
33                 {% trans "Welcome," %}
34                 <strong>{{ request.user.username }}</strong>.
35                 <a href="{% url admin_switch_interface %}?to=default">{% trans "To standard interface" %}</a>
36                 / <a href="{% url index %}">{% trans "Back to home page" %}</a>
37                 / <a href="{% url logout %}">{% trans "Log out" %}</a>
38             </div>
39         </div>
40         <div class="breadcrumbs">
41             <a href="{% url index %}">{% trans "Home" %}</a> &gt;
42             <a href="{% url admin_index %}">{% trans "Dashboard" %}</a> &gt;
43             {% block pagename %}{% endblock %} - 
44             {% block description %}{% endblock %}
45         </div>
46         <div id="content" class="{% if hide_navigation %}flex{% else %}colMS{% endif %}">
47             <div id="content-main">
48             {% autoescape off %}
49                 {% for message in user_messages %}
50                     <p class="admin_message">{{ message }}</p>
51                 {% endfor %}
52             {% endautoescape %}
53                 {% block admincontent %}{% endblock %}
54             </div>
55             {% if hide_navigation %}
56
57             {% else %}
58             <div id="content-related">
59                 {% if unsaved %}
60                 <div id="changes-box" class="module">
61                     <h2>{% trans "Unpublished changes" %}</h2>
62                     <p>
63                         <img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" />
64                         {% trans "Items marked with this icon have unpublished changes." %}
65                     </p>
66                 </div>
67                 {% endif %}
68                 <div id="basic-sets-menu" class="module">
69                     <h2>{% trans "Basic settings" %}</h2>
70                     <ul>
71                         <li><a href="{% url admin_set allsets.basic.name %}">{{ allsets.basic.title }}</a></li>
72                         <li><a href="{% url admin_set allsets.users.name %}">{{ allsets.users.title }}</a></li>
73                         <li><a href="{% url admin_set allsets.email.name %}">{{ allsets.email.title }}</a></li>
74                         <li><a href="{% url admin_set allsets.paths.name %}">{{ allsets.paths.title }}</a></li>
75                         <li><a href="{% url admin_set allsets.urls.name %}">{{ allsets.urls.title }}</a></li>
76                         <li><a href="{% url admin_set allsets.extkeys.name %}">{{ allsets.extkeys.title }}</a></li>
77                     </ul>
78                 </div>
79                 <div id="workflow-sets-menu" class="module">
80                     <h2>{% trans "Workflow settings" %}</h2>
81                     <ul>
82                         <li><a href="{% url admin_set allsets.repgain.name %}">{{ allsets.repgain.title }}</a></li>
83                         <li><a href="{% url admin_set allsets.minrep.name %}">{{ allsets.minrep.title }}</a></li>
84                         <li><a href="{% url admin_set allsets.voting.name %}">{{ allsets.voting.title }}</a></li>
85                         <li><a href="{% url admin_set allsets.accept.name %}">{{ allsets.accept.title }}</a></li>
86                         <li><a href="{% url admin_set allsets.badges.name %}">{{ allsets.badges.title }}</a></li>
87                     </ul>
88                 </div>
89                 <div id="forum-sets-menu" class="module">
90                     <h2>{% trans "Forum settings" %}</h2>
91                     <ul>
92                         <li><a href="{% url admin_set allsets.form.name %}">{{ allsets.form.title }}</a></li>
93                         <li><a href="{% url admin_set allsets.view.name %}">{{ allsets.view.title }}</a></li>
94                         <li><a href="{% url admin_set allsets.moderation.name %}">{{ allsets.moderation.title }}</a></li>
95                     </ul>
96                 </div>
97                 <div id="pages-sets-menu" class="module">
98                     <h2>{% trans "Static content" %}</h2>
99                     <ul>
100                         <li><a href="{% url admin_static_pages %}">{% trans "Custom Pages" %}</a></li>
101                         <li><a href="{% url admin_set allsets.about.name %}">{{ allsets.about.title }}</a></li>
102                         <li><a href="{% url admin_set allsets.faq.name %}">{{ allsets.faq.title }}</a></li>
103                         <li><a href="{% url admin_set allsets.sidebar.name %}">{{ allsets.sidebar.title }}</a></li>
104                         <li>
105                             <a href="{% url admin_set allsets.css.name %}">{{ allsets.css.title }}</a>
106                             {% if "css"|contained_in:unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
107                         </li>
108                         <li>
109                             <a href="{% url admin_set allsets.headandfoot.name %}">{{ allsets.headandfoot.title }}</a>
110                             {% if "headandfoot"|contained_in:unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
111                         </li>
112                         <li>
113                             <a href="{% url admin_set allsets.head.name %}">{{ allsets.head.title }}</a>
114                             {% if "head"|contained_in:unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
115                         </li>
116                     </ul>
117                 </div>
118                 <div id="other-sets-menu" class="module">
119                     <h2>{% trans "Other settings" %}</h2>
120                     <ul>
121                     {% for set in othersets %}
122                         <li>
123                             <a href="{% url admin_set set.name %}">{{ set.title }}</a>
124                             {% if set.name|contained_in:unsaved %}<img width="12" height="12" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" alt="{% trans "Unsaved changes" %}" />{% endif %}
125                         </li>
126                     {% endfor %}
127                     </ul>
128                 </div>
129                 <div id="tools-menu" class="module">
130                     <h2>{% trans "Tools" %}</h2>
131                     <ul>
132                         <li><a href="{% url admin_maintenance %}">{% trans "Maintenance mode" %}</a></li>
133                         <li><a href="{% url admin_flagged_posts %}">{% trans "Flagged Posts" %}</a></li>
134                         {% for name,tool in tools %}
135                             <li><a href="{% url admin_tools name %}">{{ tool }}</a></li>
136                         {% endfor %}
137                     </ul>
138                 </div>
139             </div>
140             {% endif %}
141         </div>
142         <div id="footer" class="breadcumbs">
143             <a href="http://www.osqa.net">OSQA</a> <span class="version">{{ settings.OSQA_VERSION }} ({{ settings.SVN_REVISION }})</span>
144         </div>
145     </div>
146 </body>