Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2747)

Side by Side Diff: MoinMoin/templates/modify.html

Issue 242460043: Automation + Global History
Patch Set: Made changes as suggested by mentors Created 8 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 {% import "forms.html" as forms %} 1 {% import "forms.html" as forms %}
2 {% import "utils.html" as utils %} 2 {% import "utils.html" as utils %}
3 {% extends theme("show.html") %} 3 {% extends theme("show.html") %}
4 4
5 {% from form.meta_template import meta_editor %} 5 {% from form.meta_template import meta_editor %}
6 {# Import macros data_editor and extra_head from content_form's template. 6 {# Import macros data_editor and extra_head from content_form's template.
7 extra_head is optional, so instead of a simple "import from" we need to do 7 extra_head is optional, so instead of a simple "import from" we need to do
8 this manually #} 8 this manually #}
9 {% import form['content_form'].template as content_template %} 9 {% import form['content_form'].template as content_template %}
10 {% set extra_head = content_template.extra_head %} 10 {% set extra_head = content_template.extra_head %}
11 {% set data_editor = content_template.data_editor %} 11 {% set data_editor = content_template.data_editor %}
12 12
13 {% set title = _("Modifying '%(item_name)s'", item_name=fqname.value) %} 13 {% set title = _("Modifying '%(item_name)s'", item_name=fqname.value) %}
14 14
15 {% block head %} 15 {% block head %}
16 {{ super() }} 16 {{ super() }}
17 {% if extra_head %} 17 {% if extra_head %}
18 {{ extra_head() }} 18 {{ extra_head() }}
19 {% endif %} 19 {% endif %}
20 {% endblock %} 20 {% endblock %}
21 21
22 {% block subitem_navigation %} 22 {% block subitem_navigation %}
23 {% call(fullname, shortname, contenttype, has_children) utils.render_subitem _navigation(fqname, True) %} 23 {% call(fullname, shortname, contenttype, has_children) utils.render_subitem _navigation(fqname, True) %}
24 {% set shortname = shortname|json_dumps %} 24 {% set shortname = shortname|json_dumps %}
25 <button class="moin-insertname-action" data-name="{{ fullname }}" 25 <button class="moin-insertname-action" data-name="{{ fullname }}"
26 title="{{ _('Insert Name') }}">{{ _('Insert Name') }}</button> 26 title="{{ _('Insert Name') }}">{{ _('Insert Name') }}</button>
27 {% endcall %} 27 {% endcall %}
28 {% endblock %} 28 {% endblock %}
29
30
31 {% block content %} 29 {% block content %}
32 <h1>{{ title }}</h1> 30 <h1>{{ title }}</h1>
33 <div id="moin-modify" class="moin-form"> 31 <div id="moin-modify" class="moin-form">
34 <a class="btn btn-success" style="float: right" href="{{ url_for('.downl oad_item', item_name=item_name, mimetype='application/x.moin.download') }}"> 32 <a class="btn btn-success" style="float: right" href="{{ url_for('.downl oad_item', item_name=item_name, mimetype='application/x.moin.download') }}">
35 <span class="fa fa-download"></span> {{ _('Download') }} 33 <span class="fa fa-download"></span> {{ _('Download') }}</a>
RogerHaase 2015/06/22 16:08:29 indent and put </a> on next line for clarity
yask123 2015/06/24 00:38:58 done
36 </a>
37 {{ gen.form.open(form, method='post', enctype='multipart/form-data') }} 34 {{ gen.form.open(form, method='post', enctype='multipart/form-data') }}
38 {{ forms.render_errors(form) }} 35 {{ forms.render_errors(form) }}
39 {# 36 {#
40 Workaround: 37 Workaround:
41 For *Draw content, hide submit button and form['comment'], since *Draw 38 For *Draw content, hide submit button and form['comment'], since *Draw
42 POSTs originate from their respective applets. 39 POSTs originate from their respective applets.
43 #} 40 #}
44 {% if not form['content_form'].is_draw %} 41 {% if not form['content_form'].is_draw %}
45 {{ forms.render_submit(form, id='moin-save-text-button') }} 42 {{ forms.render_submit(form, id='moin-save-text-button') }}
46 <dl> 43 <dl>
(...skipping 15 matching lines...) Expand all
62 #} 59 #}
63 {{ gen.form.close() }} 60 {{ gen.form.close() }}
64 </div> 61 </div>
65 {% endblock %} 62 {% endblock %}
66 63
67 {% block options_for_javascript %} 64 {% block options_for_javascript %}
68 {%- if user.scroll_page_after_edit -%} 65 {%- if user.scroll_page_after_edit -%}
69 <br id="moin-scroll-page-after-edit" /> 66 <br id="moin-scroll-page-after-edit" />
70 {%- endif %} 67 {%- endif %}
71 {% endblock %} 68 {% endblock %}
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b