diff options
Diffstat (limited to 'chimere/main')
| -rw-r--r-- | chimere/main/actions.py | 4 | ||||
| -rw-r--r-- | chimere/main/views.py | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/chimere/main/actions.py b/chimere/main/actions.py index b383bb4..3711234 100644 --- a/chimere/main/actions.py +++ b/chimere/main/actions.py @@ -32,12 +32,14 @@ class Action: 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('edit_route', 'edit_route', _('Add a new route'))), ),] if 'chimere.rss' in INSTALLED_APPS: actions.append((Action('rss', 'rss', _('RSS feeds')), [])) +actions.append((Action('charte', 'charte', _('Charte')), [])) + if EMAIL_HOST: actions.append((Action('contact', 'contact', _('Contact us')), []),) diff --git a/chimere/main/views.py b/chimere/main/views.py index db31e92..cb4f595 100644 --- a/chimere/main/views.py +++ b/chimere/main/views.py @@ -211,6 +211,14 @@ def submited(request, area_name="", action=""): response_dct.update({'actions':actions, 'action_selected':action,}) return render_to_response('submited.html', response_dct) +def charte(request, area_name=""): + """ + Affichage de la charte + """ + response_dct = get_base_response(area_name) + response_dct.update({'actions':actions, 'action_selected':('charte',)}) + return render_to_response('charte.html', response_dct) + def contactus(request, area_name=""): """ Contact page |
