summaryrefslogtreecommitdiff
path: root/chimere/main/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/main/actions.py')
-rw-r--r--chimere/main/actions.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/chimere/main/actions.py b/chimere/main/actions.py
index 4857005..f86e954 100644
--- a/chimere/main/actions.py
+++ b/chimere/main/actions.py
@@ -23,16 +23,16 @@ Actions available in the main interface
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth import models
-from chimere.settings import EXTRA_URL
+from chimere.settings import EXTRA_URL, EMAIL_HOST
class Action:
def __init__(self, id, path, label):
self.id, self.path, self.label = id, path, label
-actions = ((Action('view', '', _('View')), []),
+actions = [(Action('view', '', _('View')), []),
(Action('contribute', 'edit', _('Contribute')),
(Action('edit', 'edit', _('Add a new point of interest')),
Action('edit_route', 'edit_route', _('Add a new route')))
- ),
- (Action('contact', 'contact', _('Contact us')), []),
- )
+ ),]
+if EMAIL_HOST:
+ actions.append((Action('contact', 'contact', _('Contact us')), []),)