From fb2b66e2dd67ceefc94d8e64eedd9300f64d695f Mon Sep 17 00:00:00 2001
From: sinuca <55vitaminado@gmail.com>
Date: Mon, 17 Mar 2014 19:11:16 -0300
Subject: Recent posts functionality
Conflicts:
inc/config.php
inc/mod/pages.php
mod.php
---
templates/mod/recent_posts.html | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 templates/mod/recent_posts.html
(limited to 'templates/mod')
diff --git a/templates/mod/recent_posts.html b/templates/mod/recent_posts.html
new file mode 100644
index 00000000..c106b4e8
--- /dev/null
+++ b/templates/mod/recent_posts.html
@@ -0,0 +1,5 @@
+{% if posts|count %}
+
({% trans 'There are no active posts.' %})
+{% else %}
+
+{% endif %}
\ No newline at end of file
--
cgit v1.3
From fe95b3302208d6b60e13a9a9399b08c5e43a3972 Mon Sep 17 00:00:00 2001
From: czaks
Date: Tue, 25 Mar 2014 12:05:07 +0100
Subject: recent posts link
---
templates/mod/dashboard.html | 3 +++
1 file changed, 3 insertions(+)
(limited to 'templates/mod')
diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html
index 7b907533..f83edafc 100644
--- a/templates/mod/dashboard.html
+++ b/templates/mod/dashboard.html
@@ -100,6 +100,9 @@
{% if mod|hasPermission(config.mod.modlog) %}
{% trans 'Moderation log' %}
{% endif %}
+ {% if mod|hasPermission(config.mod.recent_posts) %}
+ {% trans 'Recent posts' %}
+ {% endif %}
{% if mod|hasPermission(config.mod.rebuild) %}
{% trans 'Rebuild' %}
{% endif %}
--
cgit v1.3
From 1e92e678a61ea588197604a3acb51be35e393f66 Mon Sep 17 00:00:00 2001
From: czaks
Date: Tue, 25 Mar 2014 12:09:12 +0100
Subject: add a javascript
---
templates/mod/recent_posts.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'templates/mod')
diff --git a/templates/mod/recent_posts.html b/templates/mod/recent_posts.html
index c106b4e8..4a2f9baa 100644
--- a/templates/mod/recent_posts.html
+++ b/templates/mod/recent_posts.html
@@ -1,5 +1,6 @@
+
{% if posts|count %}
({% trans 'There are no active posts.' %})
{% else %}
-{% endif %}
\ No newline at end of file
+{% endif %}
--
cgit v1.3
From 15810c9bedb5b7d18baec0f845bb3177f867471e Mon Sep 17 00:00:00 2001
From: czaks
Date: Tue, 25 Mar 2014 12:15:40 +0100
Subject: fix permission name
---
templates/mod/dashboard.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'templates/mod')
diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html
index f83edafc..2c370a11 100644
--- a/templates/mod/dashboard.html
+++ b/templates/mod/dashboard.html
@@ -100,7 +100,7 @@
{% if mod|hasPermission(config.mod.modlog) %}
{% trans 'Moderation log' %}
{% endif %}
- {% if mod|hasPermission(config.mod.recent_posts) %}
+ {% if mod|hasPermission(config.mod.recent) %}
{% trans 'Recent posts' %}
{% endif %}
{% if mod|hasPermission(config.mod.rebuild) %}
--
cgit v1.3