summaryrefslogtreecommitdiff
path: root/chimere/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/actions.py')
-rw-r--r--chimere/actions.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/chimere/actions.py b/chimere/actions.py
index 1425e14..f965e9b 100644
--- a/chimere/actions.py
+++ b/chimere/actions.py
@@ -53,10 +53,6 @@ default_actions = [
Action('edit-polygon', 'chimere:editpolygon', _('Add a new polygon'))),
)]
-if hasattr(settings, 'CHIMERE_DIRECTORY') and settings.CHIMERE_DIRECTORY:
- default_actions.append((Action('categories', 'chimere:category-directory',
- _('Directory')), []))
-
if settings.CHIMERE_FEEDS:
default_actions.append((Action('rss', 'chimere:feeds-form',
_('RSS feeds')), []))
@@ -77,6 +73,12 @@ def actions(area_name=''):
q = Area.objects.filter(default=True)
if q.count():
area = q.all()[0]
+ if area.show_directory:
+ acts.insert(
+ len(acts) - 3,
+ (Action('categories', 'chimere:category-directory',
+ _('Directory')), [])
+ )
real_acts = []
for act, childs in acts: