diff options
| author | czaks <marcin@6irc.net> | 2014-04-29 21:35:50 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-04-29 21:35:50 +0200 |
| commit | bb5446a93d05185cc78cc4b61edc99d3035e295e (patch) | |
| tree | 9bd8e9cc87fa564f3e0cf4aa84c3c042690029a1 /templates/mod | |
| parent | c1aaf78cbb126c51aa95afcac98f530512cb67f5 (diff) | |
| parent | bfc4df8276f1f3577e8d40f300ed0f3f02613cd0 (diff) | |
Merge remote-tracking branch 'origin/br-integration' into staging
Diffstat (limited to 'templates/mod')
| -rw-r--r-- | templates/mod/dashboard.html | 3 | ||||
| -rw-r--r-- | templates/mod/recent_posts.html | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html index 7b907533..2c370a11 100644 --- a/templates/mod/dashboard.html +++ b/templates/mod/dashboard.html @@ -100,6 +100,9 @@ {% if mod|hasPermission(config.mod.modlog) %} <li><a href="?/log">{% trans 'Moderation log' %}</a></li> {% endif %} + {% if mod|hasPermission(config.mod.recent) %} + <li><a href="?/recent/25">{% trans 'Recent posts' %}</a></li> + {% endif %} {% if mod|hasPermission(config.mod.rebuild) %} <li><a href="?/rebuild">{% trans 'Rebuild' %}</a></li> {% endif %} diff --git a/templates/mod/recent_posts.html b/templates/mod/recent_posts.html new file mode 100644 index 00000000..4a2f9baa --- /dev/null +++ b/templates/mod/recent_posts.html @@ -0,0 +1,6 @@ +<script src="{{ config.additional_javascript_url }}js/mod/recent_posts.js"></script>
+{% if posts|count %}
+ <p style="text-align:center" class="unimportant">({% trans 'There are no active posts.' %})</p>
+{% else %}
+
+{% endif %}
|
