changeset 2910:86df79fae350 fix-205

Add download link to modify view (fixes #205)
author Aviral Dasgupta <me@aviraldg.com>
date Mon, 16 Mar 2015 17:00:30 +0530
parents ac10a2e3eaf6
children df1ea9450914 0e8333c8c829
files MoinMoin/templates/modify.html MoinMoin/themes/basic/templates/modify.html
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/modify.html	Fri Feb 13 21:14:01 2015 +0100
+++ b/MoinMoin/templates/modify.html	Mon Mar 16 17:00:30 2015 +0530
@@ -31,6 +31,9 @@
 {% block content %}
     <h1>{{ title }}</h1>
     <div id="moin-modify" class="moin-form">
+        <a class="btn btn-success" style="float: right" href="{{ url_for('.download_item', item_name=item_name, mimetype='application/x.moin.download') }}">
+        <span class="fa fa-download"></span> {{ _('Download') }}
+        </a>
         {{ gen.form.open(form, method='post', enctype='multipart/form-data') }}
             {{ forms.render_errors(form) }}
             {#
--- a/MoinMoin/themes/basic/templates/modify.html	Fri Feb 13 21:14:01 2015 +0100
+++ b/MoinMoin/themes/basic/templates/modify.html	Mon Mar 16 17:00:30 2015 +0530
@@ -26,6 +26,9 @@
 {% block content %}
     <h1>{{ title }}</h1>
     <div id="moin-modify" class="moin-form">
+        <a class="btn btn-success" style="float: right" href="{{ url_for('.download_item', item_name=item_name, mimetype='application/x.moin.download') }}">
+        <span class="fa fa-download"></span> {{ _('Download') }}
+        </a>
         {{ gen.form.open(form, method='post', enctype='multipart/form-data') }}
             {{ forms.render_errors(form) }}
             {{ forms.render_errors(form['meta_form']['acl']) }}