]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/osqaadmin/djstyle_base.html
Adds a new function in the profile menu for admins to suspend users, indefinetly...
[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     <link rel="stylesheet" type="text/css" media="screen" href="{% media "/media/style/djstyle_admin.css" %}"/>
13     <script src="http://www.google.com/jsapi" type="text/javascript"></script>
14     <script type="text/javascript">
15     //<!--
16         google.load("jquery", "1.3");
17     //-->
18     </script>
19     <script type="text/javascript" src="{% media "/media/js/osqa.admin.js" %}"></script>
20     {% block adminjs %}{% endblock %}
21     <title>{% trans "OSQA administration area" %} - {% block subtitle %}{% endblock %}</title>
22 </head>
23 <body>
24 <div id="container">
25         <div id="header">
26             {% block header %}
27             <div id="branding">
28                 <h1 id="site-name"><a href="{% url admin_index %}">{{ settings.APP_SHORT_NAME }} - {% trans "Administration Area" %}</a> </h1>
29             </div>
30             {% endblock %}
31             <div id="user-tools">
32                 {% trans "Welcome," %}
33                 <strong>{{ request.user.username }}</strong>.
34                 <a href="{% url admin_switch_interface %}?to=default">{% trans "To standard interface" %}</a>
35                 / <a href="{% url index %}">{% trans "Back to home page" %}</a>
36                 / <a href="{% url logout %}">{% trans "Log out" %}</a>
37             </div>
38         </div>
39         <div class="breadcrumbs">
40             <a href="{% url index %}">{% trans "Home" %}</a> &gt;
41             <a href="{% url admin_index %}">{% trans "Dashboard" %}</a> &gt;
42             {% block pagename %}{% endblock %} - 
43             {% block description %}{% endblock %}
44         </div>
45         <div id="content" class="colMS">
46             <div id="content-main">
47             {% autoescape off %}
48                 {% for message in user_messages %}
49                     <p class="admin_message">{{ message }}</p>
50                 {% endfor %}
51             {% endautoescape %}
52                 {% block admincontent %}{% endblock %}
53             </div>
54             <div id="content-related">
55                 {% if unsaved %}
56                 <div id="changes-box" class="module">
57                     <h2>{% trans "Unpublished changes" %}</h2>
58                     <p>
59                         <img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_alert.gif" />
60                         {% trans "Items marked with this icon have unpublished changes." %}
61                     </p>
62                 </div>
63                 {% endif %}
64                 <div id="basic-sets-menu" class="module">
65                     <h2>{% trans "Basic settings" %}</h2>
66                     <ul>
67                         <li><a href="{% url admin_set allsets.basic.name %}">{{ allsets.basic.title }}</a></li>
68                         <li><a href="{% url admin_set allsets.users.name %}">{{ allsets.users.title }}</a></li>
69                         <li><a href="{% url admin_set allsets.email.name %}">{{ allsets.email.title }}</a></li>
70                         <li><a href="{% url admin_set allsets.paths.name %}">{{ allsets.paths.title }}</a></li>
71                         <li><a href="{% url admin_set allsets.extkeys.name %}">{{ allsets.extkeys.title }}</a></li>
72                     </ul>
73                 </div>
74                 <div id="workflow-sets-menu" class="module">
75                     <h2>{% trans "Workflow settings" %}</h2>
76                     <ul>
77                         <li><a href="{% url admin_set allsets.repgain.name %}">{{ allsets.repgain.title }}</a></li>
78                         <li><a href="{% url admin_set allsets.minrep.name %}">{{ allsets.minrep.title }}</a></li>
79                         <li><a href="{% url admin_set allsets.voting.name %}">{{ allsets.voting.title }}</a></li>
80                         <li><a href="{% url admin_set allsets.badges.name %}">{{ allsets.badges.title }}</a></li>
81                     </ul>
82                 </div>
83                 <div id="forum-sets-menu" class="module">
84                     <h2>{% trans "Forum settings" %}</h2>
85                     <ul>
86                         <li><a href="{% url admin_set allsets.form.name %}">{{ allsets.form.title }}</a></li>
87                         <li><a href="{% url admin_set allsets.moderation.name %}">{{ allsets.moderation.title }}</a></li>
88                     </ul>
89                 </div>
90                 <div id="pages-sets-menu" class="module">
91                     <h2>{% trans "Static content" %}</h2>
92                     <ul>
93                         <li><a href="{% url admin_static_pages %}">{% trans "Custom Pages" %}</a></li>
94                         <li><a href="{% url admin_set allsets.about.name %}">{{ allsets.about.title }}</a></li>
95                         <li><a href="{% url admin_set allsets.faq.name %}">{{ allsets.faq.title }}</a></li>
96                         <li><a href="{% url admin_set allsets.sidebar.name %}">{{ allsets.sidebar.title }}</a></li>
97                         <li>
98                             <a href="{% url admin_set allsets.css.name %}">{{ allsets.css.title }}</a>
99                             {% 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 %}
100                         </li>
101                         <li>
102                             <a href="{% url admin_set allsets.headandfoot.name %}">{{ allsets.headandfoot.title }}</a>
103                             {% 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 %}
104                         </li>
105                         <li>
106                             <a href="{% url admin_set allsets.head.name %}">{{ allsets.head.title }}</a>
107                             {% 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 %}
108                         </li>
109                     </ul>
110                 </div>
111                 <div id="other-sets-menu" class="module">
112                     <h2>{% trans "Other settings" %}</h2>
113                     <ul>
114                     {% for set in othersets %}
115                         <li>
116                             <a href="{% url admin_set set.name %}">{{ set.title }}</a>
117                             {% 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 %}
118                         </li>
119                     {% endfor %}
120                     </ul>
121                 </div>
122                 <div id="tools-menu" class="module">
123                     <h2>{% trans "Tools" %}</h2>
124                     <ul>
125                         <li><a href="{% url admin_maintenance %}">{% trans "Maintenance mode" %}</a></li>
126                         <li><a href="{% url admin_flagged_posts %}">{% trans "Flagged Posts" %}</a></li>
127                         {% comment %}<li><a href="{% url admin_moderation %}">{% trans "Moderation" %}</a></li>{% endcomment %}
128                     </ul>
129                 </div>
130             </div>
131         </div>
132         <div id="footer" class="breadcumbs">
133             <a href="http://www.osqa.net">OSQA</a> <span class="version">{{ settings.OSQA_VERSION }} ({{ settings.SVN_REVISION }})</span>
134         </div>
135     </div>
136 </body>