diff options
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 %}
|
