added REDMINE_URL to document_details_* context
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 3 Aug 2010 10:44:58 +0000 (12:44 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 3 Aug 2010 10:44:58 +0000 (12:44 +0200)
apps/wiki/views.py

index b78959f..48e05c5 100644 (file)
@@ -84,6 +84,7 @@ def editor(request, name, template_name='wiki/document_details.html'):
             "text_save": DocumentTextSaveForm(prefix="textsave"),
             "add_tag": DocumentTagForm(prefix="addtag"),
         },
+        'REDMINE_URL': settings.REDMINE_URL,
     })
 
 
@@ -113,6 +114,7 @@ def editor_readonly(request, name, template_name='wiki/document_details_readonly
         'document_name': document.name,
         'document_info': dict(document.info(), readonly=True),
         'document_meta': document.meta,
+        'REDMINE_URL': settings.REDMINE_URL,
     })