1. Roger Haase
  2. moin-2.0

Commits

Roger Haase  committed 31628ac

mass correction of indentation on many templates

  • Participants
  • Parent commits 2d71892
  • Branches default

Comments (0)

Files changed (79)

File MoinMoin/apps/admin/templates/admin/index.html

View file
  • Ignore whitespace
 {% extends theme("layout.html") %}
 {% block content %}
-<h1>{{ _("Admin Menu") }}</h1>
-<ul>
-    <li><a href="{{ url_for('admin.userbrowser') }}">{{ _("Users") }}</a></li>
-    <li><a href="{{ url_for('admin.groupbrowser') }}">{{ _("Groups") }}</a></li>
-    <li><a href="{{ url_for('admin.item_acl_report') }}">{{ _("Item ACL Report") }}</a></li>
-    <li><a href="{{ url_for('admin.trash', namespace='all') }}">{{ _("Trash") }}</a></li>
-    <li><a href="{{ url_for('admin.wikiconfig') }}">{{ _("Show Wiki Configuration") }}</a></li>
-    <li><a href="{{ url_for('admin.wikiconfighelp') }}">{{ _("Wiki Configuration Help") }}</a></li>
-</ul>
+    <h1>{{ _("Admin Menu") }}</h1>
+    <ul>
+        <li><a href="{{ url_for('admin.userbrowser') }}">{{ _("Users") }}</a></li>
+        <li><a href="{{ url_for('admin.groupbrowser') }}">{{ _("Groups") }}</a></li>
+        <li><a href="{{ url_for('admin.item_acl_report') }}">{{ _("Item ACL Report") }}</a></li>
+        <li><a href="{{ url_for('admin.trash', namespace='all') }}">{{ _("Trash") }}</a></li>
+        <li><a href="{{ url_for('admin.wikiconfig') }}">{{ _("Show Wiki Configuration") }}</a></li>
+        <li><a href="{{ url_for('admin.wikiconfighelp') }}">{{ _("Wiki Configuration Help") }}</a></li>
+    </ul>
 {% endblock %}

File MoinMoin/apps/admin/templates/admin/trash.html

View file
  • Ignore whitespace
 {% extends theme("layout.html") %}
 {% import "utils.html" as utils %}
 {% block content %}
-{% if headline %}
-<h1>{{ headline }}</h1>
-{% endif %}
-Total: {{ results|count }}
+    {% if headline %}
+        <h1>{{ headline }}</h1>
+    {% endif %}
+    Total: {{ results|count }}
     {% if results %}
         <table class="zebra">
             <thead>
             </thead>
             <tbody>
                 {% for result in results| sort(attribute='mtime', reverse=True)%}
-                <tr>
-                    <td class="moin-wordbreak">{{ result.oldname|join(' | ') }}</td>
-                    <td>{{ result.revid | shorten_id }}</td>
-                    <td>{{ result.mtime|datetimeformat }}</td>
-                    <td class="moin-wordbreak">{{ utils.show_editor_info(result.editor)  }}</td>
-                    <td class="moin-wordbreak">{{ result.comment }}</td>
-                    <td><a href="{{ url_for('frontend.show_item', item_name=result.fqname) }}">{{ _('show') }}</a></td>
-                    {% if user.may.write(result.fqname) -%}
-                    <td><a href="{{ url_for('frontend.history', item_name=result.fqname) }}">{{ _('History') }}</a></td>
-                    <td><a href="{{ url_for('frontend.destroy_item', item_name=result.fqname) }}">{{ _('Destroy') }}</a></td>
-                    {%- endif %}
-                </tr>
+                    <tr>
+                        <td class="moin-wordbreak">{{ result.oldname|join(' | ') }}</td>
+                        <td>{{ result.revid | shorten_id }}</td>
+                        <td>{{ result.mtime|datetimeformat }}</td>
+                        <td class="moin-wordbreak">{{ utils.show_editor_info(result.editor)  }}</td>
+                        <td class="moin-wordbreak">{{ result.comment }}</td>
+                        <td><a href="{{ url_for('frontend.show_item', item_name=result.fqname) }}">{{ _('show') }}</a></td>
+                        {% if user.may.write(result.fqname) -%}
+                            <td><a href="{{ url_for('frontend.history', item_name=result.fqname) }}">{{ _('History') }}</a></td>
+                            <td><a href="{{ url_for('frontend.destroy_item', item_name=result.fqname) }}">{{ _('Destroy') }}</a></td>
+                        {%- endif %}
+                    </tr>
                 {% endfor %}
             </tbody>
         </table>

File MoinMoin/apps/admin/templates/admin/wikiconfig.html

View file
  • Ignore whitespace
 {% extends theme("layout.html") %}
 {% block content %}
-<h1>{{ _("Show Wiki Configuration") }}</h1>
-<p>
-{{ _("This table shows all settings in this wiki that do not have default values. "
-     "Settings that the configuration system doesn't know about are shown in italic, "
-     "those may be due to third-party extensions needing configuration or settings that "
-     "were removed from Moin.")
-}}
-</p>
-<table class="zebra">
-<thead>
-<tr>
-<th>{{ _('Variable Name') }}</th>
-<th>{{ _('Setting') }}</th>
-</tr>
-</thead>
-<tbody>
-{% for name, value in found %}
-<tr>
-<td>
-    {% if name in settings %}
-        {{ name }}
-    {% else %}
-        <em>{{ name }}</em>
-    {% endif %}
-</td>
-<td>
-    <code>{{ "%r" % (value, ) }}</code>
-</td>
-</tr>
-{% endfor %}
-</tbody>
-</table>
+    <h1>{{ _("Show Wiki Configuration") }}</h1>
+    <p>
+        {{ _("This table shows all settings in this wiki that do not have default values. "
+             "Settings that the configuration system doesn't know about are shown in italic, "
+             "those may be due to third-party extensions needing configuration or settings that "
+             "were removed from Moin.")
+        }}
+    </p>
+    <table class="zebra">
+        <thead>
+            <tr>
+                <th>{{ _('Variable Name') }}</th>
+                <th>{{ _('Setting') }}</th>
+            </tr>
+        </thead>
+        <tbody>
+            {% for name, value in found %}
+                <tr>
+                    <td>
+                        {% if name in settings %}
+                            {{ name }}
+                        {% else %}
+                            <em>{{ name }}</em>
+                        {% endif %}
+                    </td>
+                    <td>
+                        <code>{{ "%r" % (value, ) }}</code>
+                    </td>
+                </tr>
+            {% endfor %}
+        </tbody>
+    </table>
 {% endblock %}

File MoinMoin/apps/admin/templates/admin/wikiconfighelp.html

View file
  • Ignore whitespace
 {% extends theme("layout.html") %}
 {% block content %}
-<h1>{{ _("Wiki Configuration Help") }}</h1>
-{% for heading, desc, opts in groups %}
-    <h2>{{ heading }}</h2>
-    {% if desc %}
-        <p>{{ desc }}</p>
-    {% endif %}
-    <table class="zebra">
-    <thead>
-    <tr>
-        <th>{{ _('Variable Name') }}</th>
-        <th>{{ _('Default') }}</th>
-        <th>{{ _('Description') }}</th>
-    </tr>
-    </thead>
-    <tbody>
-    {% for name, default, description in opts %}
-        <tr>
-            <td>{{ name }}</td>
-            <td><code>{{ default }}</code></td>
-            <td>{{ description }}</td>
-        </tr>
+    <h1>{{ _("Wiki Configuration Help") }}</h1>
+    {% for heading, desc, opts in groups %}
+        <h2>{{ heading }}</h2>
+        {% if desc %}
+            <p>{{ desc }}</p>
+        {% endif %}
+        <table class="zebra">
+            <thead>
+                <tr>
+                    <th>{{ _('Variable Name') }}</th>
+                    <th>{{ _('Default') }}</th>
+                    <th>{{ _('Description') }}</th>
+                </tr>
+            </thead>
+            <tbody>
+                {% for name, default, description in opts %}
+                    <tr>
+                        <td>{{ name }}</td>
+                        <td><code>{{ default }}</code></td>
+                        <td>{{ description }}</td>
+                    </tr>
+                {% endfor %}
+            </tbody>
+        </table>
     {% endfor %}
-    </tbody>
-    </table>
-{% endfor %}
 {% endblock %}

File MoinMoin/apps/admin/templates/user/highlighterhelp.html

View file
  • Ignore whitespace
 {% import "utils.html" as utils %}
 {% extends theme("layout.html") %}
 {% block content %}
-<h1>{{ _("Highlighters") }}</h1>
-{{ utils.table(headings, rows) }}
+    <h1>{{ _("Highlighters") }}</h1>
+    {{ utils.table(headings, rows) }}
 {% endblock %}

File MoinMoin/apps/admin/templates/user/interwikihelp.html

View file
  • Ignore whitespace
 {% import "utils.html" as utils %}
 {% extends theme("layout.html") %}
 {% block content %}
-<h1>{{ _("InterWiki Names") }}</h1>
-{{ utils.table(headings, rows, url_cols=[2]) }}
+    <h1>{{ _("InterWiki Names") }}</h1>
+    {{ utils.table(headings, rows, url_cols=[2]) }}
 {% endblock %}

File MoinMoin/apps/admin/templates/user/itemsize.html

View file
  • Ignore whitespace
 {% import "utils.html" as utils %}
 {% extends theme("layout.html") %}
 {% block content %}
-<h1>{{ _("Item Sizes (last revision)") }}</h1>
-{{ utils.table(headings, rows, filesize_cols=[1], itemname_cols=[2]) }}
+    <h1>{{ _("Item Sizes (last revision)") }}</h1>
+    {{ utils.table(headings, rows, filesize_cols=[1], itemname_cols=[2]) }}
 {% endblock %}

File MoinMoin/templates/404.html

View file
  • Ignore whitespace
 {% extends theme("layout.html") %}
 {% block content %}
 
-<p>
-{{ _("The item '%(item_name)s' does not exist.", item_name=item_name) }}
-</p>
+    <p>
+        {{ _("The item '%(item_name)s' does not exist.", item_name=item_name) }}
+    </p>
 
 {% endblock %}

File MoinMoin/templates/ajaxsearch.html

View file
  • Ignore whitespace
         {% endif %}
         <p class="searchstats">
             {% if results %}
-            {{ _("%(result_len)d results found (%(runtime).3f secs).",
-                  result_len=results|length, runtime=results.runtime
-                )
-            }}
+                {{ _("%(result_len)d results found (%(runtime).3f secs).",
+                      result_len=results|length, runtime=results.runtime
+                    )
+                }}
             {% else %}
-            {{ _("No results found (%(runtime).3f secs).", runtime=results.runtime) }}
+                {{ _("No results found (%(runtime).3f secs).", runtime=results.runtime) }}
             {% endif %}
         </p>
         {% if results %}
                         {% else %}
                             <tr>
                                 <td class="moin-wordbreak">
-                                <a class="moin-interwiki" href="{{ url_for_item(item_name=result['name'], wiki_name=result['wikiname'], rev=result['revid']) }}"><b>{{ "%s:%s" % (result['wikiname'], result['name']) }}</b></a>
+                                    <a class="moin-interwiki" href="{{ url_for_item(item_name=result['name'], wiki_name=result['wikiname'], rev=result['revid']) }}"><b>{{ "%s:%s" % (result['wikiname'], result['name']) }}</b></a>
                                 </td>
                             </tr>
                         {% endif %}

File MoinMoin/templates/all.html

View file
  • Ignore whitespace
 {% extends theme("layout.html") %}
 {% block content %}
-<h1>{{ _("Global Views") }}</h1>
-<ul>
-    <li><a href="{{ url_for('frontend.global_history', namespace='all') }}">{{ _("History") }}</a></li>
-    <li><a href="{{ url_for('frontend.global_tags', namespace='all') }}">{{ _("Tags") }}</a></li>
-    <li><a href="{{ url_for('frontend.index', item_name='all') }}">{{ _("Index") }}</a></li>
-</ul>
+    <h1>{{ _("Global Views") }}</h1>
+    <ul>
+        <li><a href="{{ url_for('frontend.global_history', namespace='all') }}">{{ _("History") }}</a></li>
+        <li><a href="{{ url_for('frontend.global_tags', namespace='all') }}">{{ _("Tags") }}</a></li>
+        <li><a href="{{ url_for('frontend.index', item_name='all') }}">{{ _("Index") }}</a></li>
+    </ul>
 {% endblock %}

File MoinMoin/templates/base.html

View file
  • Ignore whitespace
 {% endif %}
 
 <html>
-<head>
-{% block head %}
-    {% block head_meta %}
-    <meta charset="utf-8" />{# must be at the beginning #}
-    {% if pi_refresh -%}
-        {{ '<meta http-equiv="refresh" content="%d;URL=%s" />' % pi_refresh }}
-    {%- endif %}
-    {% for name, content in theme_supp.meta_items -%}
-        <meta name="{{ name }}" content="{{ content }}" />
-    {% endfor %}
-    {% endblock %}
+    <head>
+        {% block head %}
+            {% block head_meta %}
+                <meta charset="utf-8" />{# must be at the beginning #}
+                {% if pi_refresh -%}
+                    {{ '<meta http-equiv="refresh" content="%d;URL=%s" />' % pi_refresh }}
+                {%- endif %}
+                {% for name, content in theme_supp.meta_items -%}
+                    <meta name="{{ name }}" content="{{ content }}" />
+                {% endfor %}
+            {% endblock %}
 
-    {{ head }}
+            {{ head }}
 
-    {% block head_title %}
-    <title>
-        {%- if title -%}
-            {{ title }}
-        {% elif title_name %}
-            {{ title_name }}
-        {% elif headline %}
-            {{ headline }}
-        {% else %}
-            {{ item_name }}
-        {%- endif %} -
-    {%- if cfg.html_pagetitle -%} {{ cfg.html_pagetitle }}{% else %} {{ cfg.sitename }}{%- endif -%}
-    </title>
-    {% endblock %}
+            {% block head_title %}
+                <title>
+                    {%- if title -%}
+                        {{ title }}
+                    {% elif title_name %}
+                        {{ title_name }}
+                    {% elif headline %}
+                        {{ headline }}
+                    {% else %}
+                        {{ item_name }}
+                    {%- endif %} -
+                    {%- if cfg.html_pagetitle -%} {{ cfg.html_pagetitle }}{% else %} {{ cfg.sitename }}{%- endif -%}
+                </title>
+            {% endblock %}
 
-    {% block head_links %}
+            {% block head_links %}
 
-    {% block bootstrap_stylesheet %}
-    {% endblock %}
+                {% block bootstrap_stylesheet %}
+                {% endblock %}
 
-    {% block icons_stylesheet %}
-    <link rel="stylesheet" href="{{ url_for('serve.files', name='font_awesome', filename='css/font-awesome.css') }}" />
-    {% endblock %}
+                {% block icons_stylesheet %}
+                    <link rel="stylesheet" href="{{ url_for('serve.files', name='font_awesome', filename='css/font-awesome.css') }}" />
+                {% endblock %}
 
-    <link rel="shortcut icon" href="{{ url_for('static', filename='logos/favicon.ico') }}" />
+                <link rel="shortcut icon" href="{{ url_for('static', filename='logos/favicon.ico') }}" />
 
-    {% block theme_stylesheets %}
-    <link media="all" rel="stylesheet" href="{{ theme_static('css/theme.css') }}" />
-    <link media="all" rel="stylesheet" href="{{ url_for('static', filename='css/common.css') }}" />
-    {% endblock %}
-    {{ stylesheets }}
-    {% if user.valid and user.css_url -%}
-        <link media="all" rel="stylesheet" title="{{ user.name }}'s stylesheet" href="{{ user.css_url }}" />
-    {%- endif %}
-    {% endblock %}
+                {% block theme_stylesheets %}
+                    <link media="all" rel="stylesheet" href="{{ theme_static('css/theme.css') }}" />
+                    <link media="all" rel="stylesheet" href="{{ url_for('static', filename='css/common.css') }}" />
+                {% endblock %}
+                {{ stylesheets }}
+                {% if user.valid and user.css_url -%}
+                    <link media="all" rel="stylesheet" title="{{ user.name }}'s stylesheet" href="{{ user.css_url }}" />
+                {%- endif %}
+            {% endblock %}
 
 
-{% endblock %}
-</head>
-<body{% if body_onload %} onload="{{ body_onload }}"{% endif %} lang="{{ theme_supp.ui_lang }}" dir="{{ theme_supp.ui_dir }}">
-{% block layout %}
-    <h1>Extend this block only if you want to change layout. If you want to put content, extends layout.html and use placeholders item and content.</h1>
-{% endblock %}
+        {% endblock %}
+    </head>
+    <body{% if body_onload %} onload="{{ body_onload }}"{% endif %} lang="{{ theme_supp.ui_lang }}" dir="{{ theme_supp.ui_dir }}">
+        {% block layout %}
+            <h1>Extend this block only if you want to change layout. If you want to put content, extends layout.html and use placeholders item and content.</h1>
+        {% endblock %}
 
-<div id="moin-options-for-javascript" style="display: none">
-{% block options_for_javascript %}
-    {# implement this block to pass server side options to client side javascript. #}
-{% endblock %}
-</div>
+        <div id="moin-options-for-javascript" style="display: none">
+            {% block options_for_javascript %}
+                {# implement this block to pass server side options to client side javascript. #}
+            {% endblock %}
+        </div>
 
-{% block body_scripts %} {# js before </body> reduces IE8 js errors related to svgweb #}
-    <script src="{{ url_for('serve.files', name='jquery', filename='jquery.min.js') }}"></script>
-    <script src="{{ url_for('static', filename='js/jquery.i18n.min.js') }}"></script>
-    <script src="{{ url_for('frontend.template', filename='dictionary.js') }}"></script>
-    <script src="{{ url_for('serve.files', name='bootstrap', filename='js/bootstrap.min.js') }}"></script>
-    <script src="{{ url_for('serve.files', name='autosize', filename='jquery.autosize-min.js') }}"></script>
-    <script src="{{ url_for('serve.files', name='jquery_tablesorter', filename='jquery.tablesorter.js') }}"></script>
-    <script src="{{ url_for('static', filename='js/common.js') }}"></script>
-    {{ scripts }}
-    <!--[if lt IE 9]>
-        {# TODO: use a local copy later #}
-        <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
-    <![endif]-->
-{% endblock %}
+        {% block body_scripts %} {# js before </body> reduces IE8 js errors related to svgweb #}
+            <script src="{{ url_for('serve.files', name='jquery', filename='jquery.min.js') }}"></script>
+            <script src="{{ url_for('static', filename='js/jquery.i18n.min.js') }}"></script>
+            <script src="{{ url_for('frontend.template', filename='dictionary.js') }}"></script>
+            <script src="{{ url_for('serve.files', name='bootstrap', filename='js/bootstrap.min.js') }}"></script>
+            <script src="{{ url_for('serve.files', name='autosize', filename='jquery.autosize-min.js') }}"></script>
+            <script src="{{ url_for('serve.files', name='jquery_tablesorter', filename='jquery.tablesorter.js') }}"></script>
+            <script src="{{ url_for('static', filename='js/common.js') }}"></script>
+            {{ scripts }}
+            <!--[if lt IE 9]>
+                {# TODO: use a local copy later #}
+                <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
+            <![endif]-->
+        {% endblock %}
 
-</body>
+    </body>
 </html>

File MoinMoin/templates/blog/layout.html

View file
  • Ignore whitespace
 
             <div id="moin-blog-body">
                 <div id="moin-blog-content">
-                {% block blog_content %}<br />{% endblock %}
+                    {% block blog_content %}<br />{% endblock %}
                 </div>
                 {% if blog_name and supertags %}
                     <div id="moin-blog-sidebar">

File MoinMoin/templates/content.html

View file
  • Ignore whitespace
 {% extends "base.html" %}
 {% block layout %}
-{% if data_rendered %}
-    <div id="moin-content-data">
-    {{ data_rendered }}
-    <div>
-{% endif %}
+    {% if data_rendered %}
+        <div id="moin-content-data">
+            {{ data_rendered }}
+        </div>
+    {% endif %}
 {% endblock %}

File MoinMoin/templates/delete.html

View file
  • Ignore whitespace
 {% set title = _("Delete '%(item_name)s'", item_name=fqname.value) %}
 
 {% block content %}
-<h1>{{ title }}</h1>
-<div class="moin-form">
-{{ gen.form.open(form, method="post", action=url_for('frontend.delete_item', item_name=fqname)) }}
-  {{ forms.render_errors(form) }}
-  <dl>
-    {{ forms.render(form['comment']) }}
-    {{ forms.render_textcha(gen, form) }}
-  </dl>
-  {{ forms.render_submit(form) }}
-{{ gen.form.close() }}
-</div>
+    <h1>{{ title }}</h1>
+    <div class="moin-form">
+        {{ gen.form.open(form, method="post", action=url_for('frontend.delete_item', item_name=fqname)) }}
+            {{ forms.render_errors(form) }}
+            <dl>
+                {{ forms.render(form['comment']) }}
+                {{ forms.render_textcha(gen, form) }}
+            </dl>
+            {{ forms.render_submit(form) }}
+        {{ gen.form.close() }}
+    </div>
 {% endblock %}

File MoinMoin/templates/destroy.html

View file
  • Ignore whitespace
 {% set title = _("DESTROY COMPLETE ITEM '%(item_name)s'", item_name=fqname.value) %}
 
 {% block content %}
-{% if rev_id == None %}
-    <h1>{{ title }}</h1>
-    <div class="moin-form">
-    {{ gen.form.open(form, method="post", action=url_for('frontend.destroy_item', item_name=fqname.fullname)) }}
-      {{ forms.render_errors(form) }}
-      <dl>
-        {{ forms.render(form['comment']) }}
-        {{ forms.render_textcha(gen, form) }}
-      </dl>
-      {{ forms.render_submit(form) }}
-    {{ gen.form.close() }}
-    </div>
-{% else %}
-    <h1>{{ _("DESTROY REVISION '%(item_name)s' (rev %(rev_id)s)", item_name=item.name, rev_id=rev_id | shorten_id) }}</h1>
-    <div class="moin-form">
-    {{ gen.form.open(form, method="post", action=url_for('frontend.destroy_item', item_name=fqname.fullname, rev=rev_id)) }}
-      {{ forms.render_errors(form) }}
-      <dl>
-        {{ forms.render(form['comment']) }}
-        {{ forms.render_textcha(gen, form) }}
-      </dl>
-      {{ forms.render_submit(form) }}
-    {{ gen.form.close() }}
-    </div>
-{% endif %}
+    {% if rev_id == None %}
+        <h1>{{ title }}</h1>
+        <div class="moin-form">
+            {{ gen.form.open(form, method="post", action=url_for('frontend.destroy_item', item_name=fqname.fullname)) }}
+                {{ forms.render_errors(form) }}
+                <dl>
+                    {{ forms.render(form['comment']) }}
+                    {{ forms.render_textcha(gen, form) }}
+                </dl>
+                {{ forms.render_submit(form) }}
+            {{ gen.form.close() }}
+        </div>
+    {% else %}
+        <h1>{{ _("DESTROY REVISION '%(item_name)s' (rev %(rev_id)s)", item_name=item.name, rev_id=rev_id | shorten_id) }}</h1>
+        <div class="moin-form">
+            {{ gen.form.open(form, method="post", action=url_for('frontend.destroy_item', item_name=fqname.fullname, rev=rev_id)) }}
+                {{ forms.render_errors(form) }}
+                <dl>
+                    {{ forms.render(form['comment']) }}
+                    {{ forms.render_textcha(gen, form) }}
+                </dl>
+                {{ forms.render_submit(form) }}
+            {{ gen.form.close() }}
+        </div>
+    {% endif %}
 {% endblock %}

File MoinMoin/templates/diff.html

View file
  • Ignore whitespace
 {% extends theme("show.html") %}
 {% block content %}
-{% block headline %}
-<h1>{{ _("Diff for '%(item_name)s'", item_name=newrev.item.name) }}</h1>
-<br>
+    {% block headline %}
+        <h1>{{ _("Diff for '%(item_name)s'", item_name=newrev.item.name) }}</h1>
+        <br>
+    {% endblock %}
+    {{ diff_html }}
 {% endblock %}
-{{ diff_html }}
-{% endblock %}

File MoinMoin/templates/error.html

View file
  • Ignore whitespace
 {% extends theme("layout.html") %}
 {% block content %}
-<h1>{{ title }}</h1>
-<p>{{ description }}</p>
+    <h1>{{ title }}</h1>
+    <p>{{ description }}</p>
 {% endblock %}

File MoinMoin/templates/forms.html

View file
  • Ignore whitespace
 
 {% macro render_textcha(gen, form) %}
     {% if form.textcha_question.value %}
-    <dt class="moin-textcha">
-        {{ gen.label(form.textcha) }}
-    </dt>
-    <dd class="moin-textcha">
-        {# The value of -51 below is the sum of signature length, timestamp and a space (see security/textcha.py) #}
-        {{ form.textcha_question.value[:-51] }}
-        {{ gen.input(form.textcha_question, type='hidden') }}<br />
-        {{ gen.input(form.textcha) }}
-        {{ render_errors(form.textcha) }}
-    </dd>
+        <dt class="moin-textcha">
+            {{ gen.label(form.textcha) }}
+        </dt>
+        <dd class="moin-textcha">
+            {# The value of -51 below is the sum of signature length, timestamp and a space (see security/textcha.py) #}
+            {{ form.textcha_question.value[:-51] }}
+            {{ gen.input(form.textcha_question, type='hidden') }}<br />
+            {{ gen.input(form.textcha) }}
+            {{ render_errors(form.textcha) }}
+        </dd>
     {% endif %}
 {% endmacro %}
 
 {% macro render_file_uploader(submit_url) %} {# pages that use this macro must also use file_uploader_scripts macro below #}
     <div id="file_upload">
         <div class="upload-form">
-        <form action="{{ submit_url }}" method="POST" enctype="multipart/form-data" class="upload_file">
-            <input type="file" name="data_file" multiple>
-            <button type="submit">{{ _("Upload") }}</button>
-            <div class="file_upload_label" style="margin: 0;">{{ _("Upload files") }}</div>
-        </form>
+            <form action="{{ submit_url }}" method="POST" enctype="multipart/form-data" class="upload_file">
+                <input type="file" name="data_file" multiple>
+                <button type="submit">{{ _("Upload") }}</button>
+                <div class="file_upload_label" style="margin: 0;">{{ _("Upload files") }}</div>
+            </form>
         </div>
         <div class="file_upload_overall_progress"><div style="display:none;"></div></div>
         <div class="file_upload_buttons">

File MoinMoin/templates/global_history.html

View file
  • Ignore whitespace
 {% import "utils.html" as utils %}
 
 {% block head %}
-{{ super() }}
-<link rel="alternate" title="Global History" href="{{ url_for('feed.atom') }}" type="application/atom+xml" />
+    {{ super() }}
+    <link rel="alternate" title="Global History" href="{{ url_for('feed.atom') }}" type="application/atom+xml" />
 {% endblock %}
 
 {% block content %}
-<h1>{{ _("Global History") }}</h1>
-<div class='moin-clr'></div>
+    <h1>{{ _("Global History") }}</h1>
+    <div class='moin-clr'></div>
     <div id="moin-global-history">
         {% for day, revs in history %}
            {% set latest_timestamp = revs[0].meta['mtime'] %}
                 <div class="moin-history-container-header">
                     <h2>{{ day }}</h2>
                     {% if user.valid %}
-                    <a class="bookmark-link btn btn-primary" href="{{ url_for('frontend.bookmark', time=latest_timestamp+1) }}">{{ _("Set bookmark") }}</a>
+                        <a class="bookmark-link btn btn-primary" href="{{ url_for('frontend.bookmark', time=latest_timestamp+1) }}">{{ _("Set bookmark") }}</a>
                     {% endif %}
                 </div>
                 <div class="moin-history-container-body">
                     <table class="zebra table table-hover">
-                    {% for rev in revs %}
-                        {% set meta = rev.meta %}
-                        <tr>
-                            <td class="moin-action col-md-1">
-                                <span title="{{ meta.action|title }}" class="moin-history-{{ meta.action|lower }}"></span>
-                            </td>
-                            <td class="moin-history-links col-md-1">
-                                <a href="{{ url_for('frontend.history', item_name=rev.fqname, bookmark=bookmark_time) }}">HIST</a>
-                                {% if bookmark_time -%}
-                                    <a href="{{ url_for('frontend.diff', item_name=rev.fqname, bookmark=bookmark_time) }}">DIFF</a>
-                                {%- endif %}
-                            </td>
-                            <td class="moin-history-time col-md-1">{{ meta.mtime|timeformat }}</td>
-                            <td class="moin-history-item col-md-7">
-                                <a class="{{ meta.contenttype|contenttype_to_class }}" href="{{ url_for('frontend.show_item', item_name=rev.fqname) }}" title="{{ meta.contenttype }}">
-                                    {% if meta.name %}
-                                        {{ meta.name|join(' | ') }}
-                                    {% elif meta.summary %}
-                                        {{ meta.summary }}
-                                    {% else %}
-                                        {{ rev.fqname|shorten_fqname }}
-                                    {% endif %}
-                                </a>
-                            </td>
-                        </tr>
-                    {% endfor %}
+                        {% for rev in revs %}
+                            {% set meta = rev.meta %}
+                            <tr>
+                                <td class="moin-action col-md-1">
+                                    <span title="{{ meta.action|title }}" class="moin-history-{{ meta.action|lower }}"></span>
+                                </td>
+                                <td class="moin-history-links col-md-1">
+                                    <a href="{{ url_for('frontend.history', item_name=rev.fqname, bookmark=bookmark_time) }}">HIST</a>
+                                    {% if bookmark_time -%}
+                                        <a href="{{ url_for('frontend.diff', item_name=rev.fqname, bookmark=bookmark_time) }}">DIFF</a>
+                                    {%- endif %}
+                                </td>
+                                <td class="moin-history-time col-md-1">{{ meta.mtime|timeformat }}</td>
+                                <td class="moin-history-item col-md-7">
+                                    <a class="{{ meta.contenttype|contenttype_to_class }}" href="{{ url_for('frontend.show_item', item_name=rev.fqname) }}" title="{{ meta.contenttype }}">
+                                        {% if meta.name %}
+                                            {{ meta.name|join(' | ') }}
+                                        {% elif meta.summary %}
+                                            {{ meta.summary }}
+                                        {% else %}
+                                            {{ rev.fqname|shorten_fqname }}
+                                        {% endif %}
+                                    </a>
+                                </td>
+                            </tr>
+                        {% endfor %}
                     </table>
                 </div>
             </div>
         {% endfor %}
         {% if bookmark_time %}
-        <div class="moin-history-container">
-            <div class="moin-history-container-header">
-                <h2>{{ bookmark_time|datetimeformat }}</h2>
-                <a class="bookmark-link" href="{{ url_for('frontend.bookmark', time='del') }}">{{ _("Delete bookmark") }}</a>
+            <div class="moin-history-container">
+                <div class="moin-history-container-header">
+                    <h2>{{ bookmark_time|datetimeformat }}</h2>
+                    <a class="bookmark-link" href="{{ url_for('frontend.bookmark', time='del') }}">{{ _("Delete bookmark") }}</a>
+                </div>
             </div>
-        </div>
         {% endif %}
     </div>
 {% endblock %}

File MoinMoin/templates/global_tags.html

View file
  • Ignore whitespace
 {% extends theme("layout.html") %}
 {% block content %}
-{% if headline %}
-<h1>{{ headline }}</h1>
-{% endif %}
-{% if tags %}
-<ul class="moin-tags three-col">
-    {% for cls, tag in tags %}
-    <li class="{{ cls }}"><a href="{{ url_for('frontend.tagged_items', tag=tag, namespace=fqname.namespace) }}">{{ tag }}</a></li>
-    {% endfor %}
-</ul>
-{% endif %}
+    {% if headline %}
+        <h1>{{ headline }}</h1>
+    {% endif %}
+    {% if tags %}
+        <ul class="moin-tags three-col">
+            {% for cls, tag in tags %}
+                <li class="{{ cls }}"><a href="{{ url_for('frontend.tagged_items', tag=tag, namespace=fqname.namespace) }}">{{ tag }}</a></li>
+            {% endfor %}
+        </ul>
+    {% endif %}
 {% endblock %}

File MoinMoin/templates/highlight.html

View file
  • Ignore whitespace
 {% set title = _("Syntax highlighting of '%(name)s'", name=item_name) %}
 
 {% block content %}
-{% block headline %}
-<h1>{{ title }} </h1>
+    {% block headline %}
+        <h1>{{ title }} </h1>
+    {% endblock %}
+    {{ data_text }}
 {% endblock %}
-{{ data_text }}
-{% endblock %}

File MoinMoin/templates/history.html

View file
  • Ignore whitespace
 {% block content %}
     {% set (history, next_offset, previous_offset) = history_page %}
     {% if history %}
-    <div class='moin-offset-links'>
-        {% if previous_offset >= 0 %}
-            <a href="{{ url_for('frontend.history', item_name=item_name, offset=previous_offset) }}" title="{{ _("Previous") }}">&laquo;</a>
-        {% endif %}
-        {% if next_offset %}
-            <a href="{{ url_for('frontend.history', item_name=item_name, offset=next_offset) }}" title="{{ _("Next") }}">&raquo;</a>
-        {% endif %}
-    </div>
-    <h1>{{ title }}</h1>
-    <div class="moin-clr"></div>
-    <form action="{{ url_for('frontend.diff', item_name=item_name) }}" method="GET">
-        <div id="moin-page-history">
-        <table class="zebra">
-            <thead>
-                <tr>
-                    {% if fqname.field == 'name_exact' %}
-                        <th>{{ _("Item ID") }}</th>
-                    {% else %}
-                        <th>{{ _("Name") }}</th>
+        <div class='moin-offset-links'>
+            {% if previous_offset >= 0 %}
+                <a href="{{ url_for('frontend.history', item_name=item_name, offset=previous_offset) }}" title="{{ _("Previous") }}">&laquo;</a>
+            {% endif %}
+            {% if next_offset %}
+                <a href="{{ url_for('frontend.history', item_name=item_name, offset=next_offset) }}" title="{{ _("Next") }}">&raquo;</a>
+            {% endif %}
+        </div>
+        <h1>{{ title }}</h1>
+        <div class="moin-clr"></div>
+        <form action="{{ url_for('frontend.diff', item_name=item_name) }}" method="GET">
+            <div id="moin-page-history">
+                <table class="zebra">
+                    <thead>
+                        <tr>
+                            {% if fqname.field == 'name_exact' %}
+                                <th>{{ _("Item ID") }}</th>
+                            {% else %}
+                                <th>{{ _("Name") }}</th>
+                            {% endif %}
+
+                            <th>{{ _("Rev.") }}</th>
+                            <th>{{ _("Timestamp") }}</th>
+                            <th class="moin-integer">{{ _("Size") }}</th>
+                            <th><input type="submit" value="Diff" /></th>
+                            <th>{{ _("Editor") }}</th>
+                            <th>{{ _("Content-Type") }}</th>
+                            <th>{{ _("Comment") }}</th>
+                            <th colspan="6">{{ _("Actions") }}</th>
+                        </tr>
+                    </thead>
+                    <tbody>
+                        {% for doc in history %}
+                            <tr>
+                                {% if fqname.field == 'name_exact' %}
+                                    <td class="moin-wordbreak">
+                                        <a href="{{ url_for_item(doc.itemid, field='itemid', namespace=fqname.namespace, endpoint='frontend.history') }}">{{ doc.itemid|shorten_id }}</a>
+                                    </td>
+                                {% else %}
+                                    <td class="moin-wordbreak">
+                                        {% for name in doc.name %}
+                                            {% if not loop.first %}|{% endif %}
+                                            <a href="{{ url_for_item(name, namespace=fqname.namespace, endpoint='frontend.history') }}">{{ name }}</a>
+                                        {% endfor %}
+                                    </td>
+                                {% endif %}
+                                <td>{{ doc.revid|shorten_id }}</td>
+                                <td>{{ doc.mtime|datetimeformat }}</td>
+                                <td class="moin-integer">{{ doc.size }}</td>
+                                <td>
+                                    <div class="moin-hist-rev">
+                                        <input type="radio" name="rev1" value="{{ doc.revid }}" />
+                                        <input type="radio" name="rev2" value="{{ doc.revid }}" />
+                                    </div>
+                                </td>
+                                <td class="moin-wordbreak">{{ utils.editor_info(doc) }}</td>
+                                <td class="moin-wordbreak">{{ doc.contenttype }}</td>
+                                <td class="moin-wordbreak">{{ doc.comment }}</td>
+                                <td><a href="{{ url_for('frontend.show_item', item_name=fqname, rev=doc.revid) }}">{{ _('show') }}</a></td>
+                                <td><a href="{{ url_for('frontend.show_item_meta', item_name=fqname, rev=doc.revid) }}">{{ _('meta') }}</a></td>
+                                <td><a href="{{ url_for('frontend.download_item', item_name=fqname, rev=doc.revid) }}">{{ _('download') }}</a></td>
+                                <td><a href="{{ url_for('frontend.highlight_item', item_name=fqname, rev=doc.revid) }}">{{ _('highlight') }}</a></td>
+                                {% if user.may.write(fqname) -%}
+                                    <td><a href="{{ url_for('frontend.revert_item', item_name=fqname, rev=doc.revid) }}">{{ _('revert') }}</a></td>
+                                {%- endif %}
+                                {% if user.may.destroy(fqname) -%}
+                                    <td><a href="{{ url_for('frontend.destroy_item', item_name=fqname, rev=doc.revid) }}">{{ _('destroy') }}</a></td>
+                                {%- endif %}
+                            </tr>
+                        {% endfor %}
+                    </tbody>
+                    {% if bookmark_time %}
+                        <tfoot>
+                            <tr>
+                                <td colspan="2">Bookmark is set to</td>
+                                <td>{{ bookmark_time|datetimeformat }}</td>
+                                <td colspan="11"></td>
+                            </tr>
+                        </tfoot>
                     {% endif %}
-
-                    <th>{{ _("Rev.") }}</th>
-                    <th>{{ _("Timestamp") }}</th>
-                    <th class="moin-integer">{{ _("Size") }}</th>
-                    <th><input type="submit" value="Diff" /></th>
-                    <th>{{ _("Editor") }}</th>
-                    <th>{{ _("Content-Type") }}</th>
-                    <th>{{ _("Comment") }}</th>
-                    <th colspan="6">{{ _("Actions") }}</th>
-                </tr>
-            </thead>
-            <tbody>
-                {% for doc in history %}
-                <tr>
-                    {% if fqname.field == 'name_exact' %}
-                        <td class="moin-wordbreak">
-                            <a href="{{ url_for_item(doc.itemid, field='itemid', namespace=fqname.namespace, endpoint='frontend.history') }}">{{ doc.itemid|shorten_id }}</a>
-                        </td>
-                    {% else %}
-                        <td class="moin-wordbreak">
-                            {% for name in doc.name %}
-                                {% if not loop.first %}|{% endif %}
-                                <a href="{{ url_for_item(name, namespace=fqname.namespace, endpoint='frontend.history') }}">{{ name }}</a>
-                            {% endfor %}
-                        </td>
-                    {% endif %}
-                    <td>{{ doc.revid|shorten_id }}</td>
-                    <td>{{ doc.mtime|datetimeformat }}</td>
-                    <td class="moin-integer">{{ doc.size }}</td>
-                    <td>
-                        <div class="moin-hist-rev">
-                            <input type="radio" name="rev1" value="{{ doc.revid }}" />
-                            <input type="radio" name="rev2" value="{{ doc.revid }}" />
-                        </div>
-                    </td>
-                    <td class="moin-wordbreak">{{ utils.editor_info(doc) }}</td>
-                    <td class="moin-wordbreak">{{ doc.contenttype }}</td>
-                    <td class="moin-wordbreak">{{ doc.comment }}</td>
-                    <td><a href="{{ url_for('frontend.show_item', item_name=fqname, rev=doc.revid) }}">{{ _('show') }}</a></td>
-                    <td><a href="{{ url_for('frontend.show_item_meta', item_name=fqname, rev=doc.revid) }}">{{ _('meta') }}</a></td>
-                    <td><a href="{{ url_for('frontend.download_item', item_name=fqname, rev=doc.revid) }}">{{ _('download') }}</a></td>
-                    <td><a href="{{ url_for('frontend.highlight_item', item_name=fqname, rev=doc.revid) }}">{{ _('highlight') }}</a></td>
-                    {% if user.may.write(fqname) -%}
-                        <td><a href="{{ url_for('frontend.revert_item', item_name=fqname, rev=doc.revid) }}">{{ _('revert') }}</a></td>
-                    {%- endif %}
-                    {% if user.may.destroy(fqname) -%}
-                        <td><a href="{{ url_for('frontend.destroy_item', item_name=fqname, rev=doc.revid) }}">{{ _('destroy') }}</a></td>
-                    {%- endif %}
-                </tr>
-                {% endfor %}
-            </tbody>
-            {% if bookmark_time %}
-            <tfoot>
-                <tr>
-                    <td colspan="2">Bookmark is set to</td>
-                    <td>{{ bookmark_time|datetimeformat }}</td>
-                    <td colspan="11"></td>
-                </tr>
-            </tfoot>
-            {% endif %}
-        </table>
-        </div>
+                </table>
+            </div>
         </form>
     {% endif %}
 {% endblock %}

File MoinMoin/templates/index.html

View file
  • Ignore whitespace
 {% block action_bars_inner %}
     <ul>
         {% if dirs or files %}
-        <li class="action-bar">
-        <div class="moin-select-all">
-            <span class="moin-select-allitem allitem-toselect" title="{{ _("Select All") }}">{{ _("Select All") }}</span>
-        </div>
-        </li>
+            <li class="action-bar">
+                <div class="moin-select-all">
+                    <span class="moin-select-allitem allitem-toselect" title="{{ _("Select All") }}">{{ _("Select All") }}</span>
+                </div>
+            </li>
         {% endif %}
         <li class="action-bar">
-        <div class="moin-select-actions">
-            <div>
-                <span class="show-action">Actions</span>
+            <div class="moin-select-actions">
+                <div>
+                    <span class="show-action">Actions</span>
+                </div>
+                <ul>
+                    <li id="moin-create-newitem">{{ _("New item") }}</li>
+                    {% if dirs or files %}
+                        <li id="moin-download-trigger">{{ _("Download") }}</li>
+                        <li class="moin-action-tab"
+                            id="moin-delete-trigger"
+                            data-actionurl="{{ url_for('frontend.ajaxdelete', item_name=item_name) }}">
+                            {{ _("Delete") }}
+                        </li>
+                        <li class="moin-action-tab"
+                            id="moin-destroy-trigger"
+                            data-actionurl="{{ url_for('frontend.ajaxdestroy', item_name=item_name) }}">
+                            {{ _("Destroy") }}
+                        </li>
+                    {% endif %}
+                </ul>
             </div>
-            <ul>
-                <li id="moin-create-newitem">{{ _("New item") }}</li>
-                {% if dirs or files %}
-                <li id="moin-download-trigger">{{ _("Download") }}</li>
-                <li class="moin-action-tab"
-                    id="moin-delete-trigger"
-                    data-actionurl="{{ url_for('frontend.ajaxdelete', item_name=item_name) }}">
-                    {{ _("Delete") }}
-                </li>
-                <li class="moin-action-tab"
-                    id="moin-destroy-trigger"
-                    data-actionurl="{{ url_for('frontend.ajaxdestroy', item_name=item_name) }}">
-                    {{ _("Destroy") }}
-                </li>
-                {% endif %}
-            </ul>
-        </div>
         </li>
         <li class="action-bar">
-        <div class="moin-contenttypes-wrapper">
-            <div class="ct-hide">{{ _("Filter by content type") }}</div>
-            {% set unknown_items_label = _("items having unknown mime types") %}
-            {{ gen.form.open(form, method="get", action=url_for('frontend.index', item_name=item_name)) }}
-            <ul>
-                <li>
-                    <a href="#" class="filter-toggle">&raquo; {{ _("Toggle") }}</a>
-                    <a href="#" class="filter-more">&raquo; {{ _("More") }}</a>
-                </li>
-                {{ forms.render(form['contenttype']) }}
-            </ul>
-            {{ forms.render_submit(form) }}
-            {{ gen.form.close() }}
-        </div>
+            <div class="moin-contenttypes-wrapper">
+                <div class="ct-hide">{{ _("Filter by content type") }}</div>
+                {% set unknown_items_label = _("items having unknown mime types") %}
+                {{ gen.form.open(form, method="get", action=url_for('frontend.index', item_name=item_name)) }}
+                    <ul>
+                        <li>
+                            <a href="#" class="filter-toggle">&raquo; {{ _("Toggle") }}</a>
+                            <a href="#" class="filter-more">&raquo; {{ _("More") }}</a>
+                        </li>
+                        {{ forms.render(form['contenttype']) }}
+                    </ul>
+                    {{ forms.render_submit(form) }}
+                {{ gen.form.close() }}
+            </div>
         </li>
     </ul>
 {% endblock %}
     <div class="moin-index-message"><span></span></div>
     {{ self.action_bars() }}
     <div>
-    {% if item_name: %}
-        <h1>{{ title }}</h1>
-        <div class="moin-index-path">
-            <a href="{{ url_for('frontend.index') }}" title="{{ _("Global Index") }}">{{ ("..") }}</a>
-            <span class="moin-path-separator">{{ ("/") }}</span>
-            {% for i in range(0, item_names|count) %}
-                {% set fullname = item_names[:i+1]|join('/') %}
-                {% set relname = item_names[i] %}
-                {% if relname.startswith('@') %}
-                    {{ relname }}
-                {% else %}
-                    <a href="{{ url_for('frontend.index', item_name=fullname) }}" title="{{ relname }}">{{ relname }}</a>
-                {% endif %}
+        {% if item_name: %}
+            <h1>{{ title }}</h1>
+            <div class="moin-index-path">
+                <a href="{{ url_for('frontend.index') }}" title="{{ _("Global Index") }}">{{ ("..") }}</a>
                 <span class="moin-path-separator">{{ ("/") }}</span>
-            {% endfor %}
-        </div>
-    {% else %}
-        <h1>{{ title }}</h1>
-    {% endif %}
+                {% for i in range(0, item_names|count) %}
+                    {% set fullname = item_names[:i+1]|join('/') %}
+                    {% set relname = item_names[i] %}
+                    {% if relname.startswith('@') %}
+                        {{ relname }}
+                    {% else %}
+                        <a href="{{ url_for('frontend.index', item_name=fullname) }}" title="{{ relname }}">{{ relname }}</a>
+                    {% endif %}
+                    <span class="moin-path-separator">{{ ("/") }}</span>
+                {% endfor %}
+            </div>
+        {% else %}
+            <h1>{{ title }}</h1>
+        {% endif %}
     </div>
     <div class='moin-clr'></div>
     <div id="moin-new-index" class="moin-item-index">
     </div>
     <div class="moin-index-separator"></div>
     {% if files or dirs %}
-    <div id="moin-initials">
-        {% if not startswith %}
-            <a class="selected" href="{{ url_for('frontend.index', item_name=item_name) }}">{{ _("All") }}</a>
-        {% else %}
-            <a href="{{ url_for('frontend.index', item_name=item_name) }}">{{ _("All") }}</a>
-        {% endif %}
-        {% for initial in initials %}
-            {% if startswith == initial %}
-                <a class="selected" href="{{ url_for('frontend.index', item_name=item_name, startswith=initial) }}">{{ initial }}</a>
+        <div id="moin-initials">
+            {% if not startswith %}
+                <a class="selected" href="{{ url_for('frontend.index', item_name=item_name) }}">{{ _("All") }}</a>
             {% else %}
-                <a href="{{ url_for('frontend.index', item_name=item_name, startswith=initial) }}">{{ initial }}</a>
+                <a href="{{ url_for('frontend.index', item_name=item_name) }}">{{ _("All") }}</a>
             {% endif %}
-        {% endfor %}
-    </div>
-    {% if dirs %}
-        <div class="moin-item-index">
-            <p>{{ _("These items have subitems that match your filter:") }}</p>
-            {% for e in dirs %}
-                {{ render_dir_entry(e) }}
+            {% for initial in initials %}
+                {% if startswith == initial %}
+                    <a class="selected" href="{{ url_for('frontend.index', item_name=item_name, startswith=initial) }}">{{ initial }}</a>
+                {% else %}
+                    <a href="{{ url_for('frontend.index', item_name=item_name, startswith=initial) }}">{{ initial }}</a>
+                {% endif %}
             {% endfor %}
         </div>
-        <div class="moin-clr"></div>
-        <hr />
-    {% endif %}
-    {% if files %}
-        <div class="moin-item-index">
-            {% for e in files %}
-                {{ render_file_entry(e) }}
-            {% endfor %}
-        </div>
-        <div class="moin-clr"></div>
-    {% endif %}
+        {% if dirs %}
+            <div class="moin-item-index">
+                <p>{{ _("These items have subitems that match your filter:") }}</p>
+                {% for e in dirs %}
+                    {{ render_dir_entry(e) }}
+                {% endfor %}
+            </div>
+            <div class="moin-clr"></div>
+            <hr />
+        {% endif %}
+        {% if files %}
+            <div class="moin-item-index">
+                {% for e in files %}
+                    {{ render_file_entry(e) }}
+                {% endfor %}
+            </div>
+            <div class="moin-clr"></div>
+        {% endif %}
     {% endif %}
     <div id="popup">
         <div id="popup-for-action" class="popup-container">
     </div>
 
     <div id="moin-upload-cont">
-    {% set submit_url = url_for('.jfu_server', item_name=item_name) %}
-    {{ forms.render_file_uploader(submit_url) }}
+        {% set submit_url = url_for('.jfu_server', item_name=item_name) %}
+        {{ forms.render_file_uploader(submit_url) }}
     </div>
     <span class="moin-drag">{{ _("(Drag and drop multiple files to this white area to upload them.)") }}</span>
     <div id="lightbox">&nbsp;</div>
 {% endblock %}
 
 {% block body_scripts %}
-{{ super() }}
+    {{ super() }}
     <script src="{{ url_for('static', filename='js/index_action.js') }}"></script>
     <script src="{{ url_for('static', filename='js/jfu.js') }}"></script>
     {{ forms.file_uploader_scripts() }}

File MoinMoin/templates/itemviews.html

View file
  • Ignore whitespace
 
         {% if endpoint == 'special.transclusions' -%}
             <li class="moin-transclusions-button" style="display:none;">
-            <a href="#" title="{{ title }}">{{ label }}</a>
+                <a href="#" title="{{ title }}">{{ label }}</a>
             </li>
         {%- endif %}
             {%- if endpoint == 'special.supplementation' and fqname %}

File MoinMoin/templates/layout.html

View file
  • Ignore whitespace
 
 {% block layout %}
 
-<div id="moin-main-wrapper">
+    <div id="moin-main-wrapper">
 
-{{ before_header }}
+        {{ before_header }}
 
-<div id="moin-header">
-{% block header %}
-    {% if search_form %}
-        {{ header_search(search_form) }}
-    {% endif %}
+        <div id="moin-header">
+        {% block header %}
+            {% if search_form %}
+                {{ header_search(search_form) }}
+            {% endif %}
 
-    {% if logo %}
-    <div id="moin-logo">
-        <a href="{{ url_for('frontend.show_item', item_name=cfg.root_mapping.get('', cfg.default_root)) }}">{{ logo }}</a>
-    </div>
-    {% endif %}
+            {% if logo %}
+                <div id="moin-logo">
+                    <a href="{{ url_for('frontend.show_item', item_name=cfg.root_mapping.get('', cfg.default_root)) }}">{{ logo }}</a>
+                </div>
+            {% endif %}
 
-    <div id="moin-username">
-        {% if user.valid -%}
-            {% set avatar = user.avatar(20) %}
-            {% if avatar %}
-                <img id="moin-avatar" src="{{ avatar }}" />
-            {%- endif %}
-            {% if user.name -%}
-                {% set wiki_href, display_name, title, exists = theme_supp.userhome() %}
-                <a href="{{ wiki_href }}" {% if not exists %}class="moin-nonexistent"{% endif %} rel="nofollow" title="{{ title }}">
-                    {{ display_name }}
-                </a>
-                {% if 'frontend.usersettings' not in cfg.endpoints_excluded -%}
-                    <span class="sep"> | </span>
-                    <a href="{{ url_for('frontend.usersettings') }}" class="moin-usersettings" rel="nofollow">{{ _('Settings') }}</a>
+            <div id="moin-username">
+                {% if user.valid -%}
+                    {% set avatar = user.avatar(20) %}
+                    {% if avatar %}
+                        <img id="moin-avatar" src="{{ avatar }}" />
+                    {%- endif %}
+                    {% if user.name -%}
+                        {% set wiki_href, display_name, title, exists = theme_supp.userhome() %}
+                        <a href="{{ wiki_href }}" {% if not exists %}class="moin-nonexistent"{% endif %} rel="nofollow" title="{{ title }}">
+                            {{ display_name }}
+                        </a>
+                        {% if 'frontend.usersettings' not in cfg.endpoints_excluded -%}
+                            <span class="sep"> | </span>
+                            <a href="{{ url_for('frontend.usersettings') }}" class="moin-usersettings" rel="nofollow">{{ _('Settings') }}</a>
+                        {%- endif %}
+                    {%- endif %}
+                    {% if user.auth_method in cfg.auth_can_logout %}
+                        <span class="sep"> | </span>
+                        <a href="{{ url_for('frontend.logout', logout_submit=1) }}" class="moin-logout" rel="nofollow">
+                            {{ _('Logout') }}
+                        </a>
+                    {% endif %}
+                {% else %}
+                    {% set login_url = theme_supp.login_url() %}
+                    {% if login_url %}
+                        <a href="{{ login_url }}" class="moin-login" rel="nofollow">{{ _('Login') }}</a>
+                    {% endif %}
                 {%- endif %}
-            {%- endif %}
-            {% if user.auth_method in cfg.auth_can_logout %}
-                <span class="sep"> | </span>
-                <a href="{{ url_for('frontend.logout', logout_submit=1) }}" class="moin-logout" rel="nofollow">
-                    {{ _('Logout') }}
-                </a>
+            </div>
+
+
+            <div id="moin-locationline">
+                {% if cfg.show_interwiki -%}
+                    <span id="moin-interwiki">
+                        <a href="{{ url_for('frontend.show_item', item_name=cfg.root_mapping['']) }}" rel="nofollow">
+                            {% if cfg.interwikiname %}{{ cfg.interwikiname }}{% else %}Self{% endif %}
+                        </a>
+                        <span class="sep">: </span>
+                    </span>
+                {%- endif %}
+                <div id="moin-pagelocation">
+                    <div class="moin-pagepath">
+                        {% block pagepath %}
+                            {% for segment_name, segment_path, exists in theme_supp.location_breadcrumbs(fqname) -%}
+                                {% if loop.first %}
+                                    <ul class="moin-bcs-item">
+                                        <li>
+                                            <a href="{{ url_for('frontend.show_item', item_name=segment_path) }}" {% if not exists %}class="moin-nonexistent"{% endif %}>{{ segment_name|shorten_fqname }}</a>
+                                        </li>
+                                    </ul>
+                                    <span class="sep">/</span>
+                                {% elif not loop.last %}
+                                    <a href="{{ url_for('frontend.show_item', item_name=segment_path) }}" {% if not exists %}class="moin-nonexistent"{% endif %}>{{ segment_name|shorten_fqname }}</a>
+                                    <span class="sep">/</span>
+                                {%- endif %}
+                                {% if loop.last %}
+                                    {% if title_name %}
+                                        {{ title_name }}
+                                    {% else %}
+                                        <ul class="moin-bcs-item">
+                                            <li><a href="{{ url_for('frontend.show_item', item_name=segment_path) }}" {% if not exists %}class="moin-nonexistent"{% endif %}>
+                                                {{ segment_name|shorten_fqname }}</a>
+                                                <ul class="moin-bcs-subitems">
+                                                    {% for fq_name in theme_supp.get_fqnames(segment_name) -%}
+                                                        <li><a href="{{ url_for('frontend.show_item', item_name=fq_name) }}">{{ fq_name|shorten_fqname(length=25) }}</a></li>
+                                                    {%- endfor %}
+                                                </ul>
+                                            </li>
+                                        </ul>
+                                    {%- endif %}
+                                {%- endif %}
+                            {%- endfor %}
+                        {% endblock %}
+                    </div>
+                </div>
+            </div>
+
+            {% set trail_items = theme_supp.path_breadcrumbs() %}
+            {% if trail_items %}
+                <div id="moin-pagetrail">
+                    {% for wiki_name, fqname, item_href, exists, err in trail_items %}
+                        {%- if wiki_name -%}
+                            <a href="{{ item_href }}"{{ " " }}
+                               title="{{ wiki_name }}"
+                               class="{% if err %}moin-badinterwiki{% else %}moin-interwiki{% endif %}">
+                               {{ fqname|shorten_fqname }}
+                            </a>
+                        {%- else -%}
+                            <a href="{{ url_for('frontend.show_item', item_name=fqname) }}"{{ " " }}
+                               {% if not exists -%}class="moin-nonexistent"{%- endif -%}>
+                               {{ fqname|shorten_fqname }}
+                            </a>
+                        {%- endif %}
+                        {% if not loop.last %}<span class="sep"> &raquo; </span>{% endif %}
+                    {% endfor %}
+                </div>
             {% endif %}
-        {% else %}
-            {% set login_url = theme_supp.login_url() %}
-            {% if login_url %}
-                <a href="{{ login_url }}" class="moin-login" rel="nofollow">{{ _('Login') }}</a>
+
+            {% set navibar_items = theme_supp.navibar(fqname) %}
+            {% if navibar_items %}
+                <ul id="moin-navibar" class="panel">
+                    {% for cls, url, text, title in navibar_items %}
+                        <li class="{{ cls }}">
+                            <a href="{{ url }}" {% if title %}title="{{ title }} : {{ url|safe }}"{% else %}"{{ url|safe }}"{% endif %}>{{ text }}</a>
+                        </li>
+                    {% endfor %}
+                </ul>
             {% endif %}
-        {%- endif %}
+
+            <div id="moin-pageline">
+                <hr style="display:none;" />
+            </div>
+
+            {% block header_itemviews %}{% endblock %}
+
+            {% endblock %}
+        </div>
+
+        {{ after_header }}
+
+        <div id="moin-page" lang="{{ theme_supp.content_lang }}" dir="{{ theme_supp.content_dir }}">
+
+            {% block item -%}
+                {# If you want itemviews in your template, extend from show.html, not from here. #}
+                <div id="moin-content">
+                    <div id="moin-flash">  {# client side javascript may add messages here #}
+                        {% for category, msg in get_flashed_messages(with_categories=true) %}
+                            <p class="moin-flash moin-flash-{{ category }}">{{ msg }}</p>
+                        {% endfor %}
+                    </div>
+                    {% block content %}
+                        {# All content templates should have implement this block. #}
+                    {% endblock %}
+                </div>
+            {%- endblock %}
+        </div>
+
+        {{ before_footer }}
+
+        <div id="moin-footer">
+            {% block footer %}
+                {% block footer_itemviews %}{% endblock %}
+                {% block footer_hr %}<hr/>{% endblock %}
+                {{ creditlogos }}
+                {% block footer_meta %}{% endblock %}
+                {% if license_info %}<p id="moin-wikilicense">{{ license_info }}</p>{% endif %}
+                {{ credits }}
+            {% endblock %}
+        </div>
+
+        {{ after_footer }}
+
     </div>
 
-
-    <div id="moin-locationline">
-        {% if cfg.show_interwiki -%}
-        <span id="moin-interwiki">
-            <a href="{{ url_for('frontend.show_item', item_name=cfg.root_mapping['']) }}" rel="nofollow">
-                {% if cfg.interwikiname %}{{ cfg.interwikiname }}{% else %}Self{% endif %}
-            </a>
-            <span class="sep">: </span>
-        </span>
-        {%- endif %}
-        <div id="moin-pagelocation">
-            <div class="moin-pagepath">
-            {% block pagepath %}
-            {% for segment_name, segment_path, exists in theme_supp.location_breadcrumbs(fqname) -%}
-                {% if loop.first %}
-                    <ul class="moin-bcs-item">
-                        <li>
-                            <a href="{{ url_for('frontend.show_item', item_name=segment_path) }}" {% if not exists %}class="moin-nonexistent"{% endif %}>{{ segment_name|shorten_fqname }}</a>
-                        </li>
-                    </ul>
-                    <span class="sep">/</span>
-                {% elif not loop.last %}
-                    <a href="{{ url_for('frontend.show_item', item_name=segment_path) }}" {% if not exists %}class="moin-nonexistent"{% endif %}>{{ segment_name|shorten_fqname }}</a>
-                    <span class="sep">/</span>
-                {%- endif %}
-                {% if loop.last %}
-                    {% if title_name %}
-                        {{ title_name }}
-                    {% else %}
-                        <ul class="moin-bcs-item">
-                            <li><a href="{{ url_for('frontend.show_item', item_name=segment_path) }}" {% if not exists %}class="moin-nonexistent"{% endif %}>
-                                {{ segment_name|shorten_fqname }}</a>
-                                <ul class="moin-bcs-subitems">
-                                    {% for fq_name in theme_supp.get_fqnames(segment_name) -%}
-                                        <li><a href="{{ url_for('frontend.show_item', item_name=fq_name) }}">{{ fq_name|shorten_fqname(length=25) }}</a></li>
-                                    {%- endfor %}
-                                </ul>
-                            </li>
-                        </ul>
-                     {%- endif %}
-                {%- endif %}
-            {%- endfor %}
-            {% endblock %}
-            </div>
-        </div>
-    </div>
-
-    {% set trail_items = theme_supp.path_breadcrumbs() %}
-    {% if trail_items %}
-        <div id="moin-pagetrail">
-        {% for wiki_name, fqname, item_href, exists, err in trail_items %}
-            {%- if wiki_name -%}
-                <a href="{{ item_href }}"{{ " " }}
-                   title="{{ wiki_name }}"
-                   class="{% if err %}moin-badinterwiki{% else %}moin-interwiki{% endif %}">
-                   {{ fqname|shorten_fqname }}
-                </a>
-            {%- else -%}
-                <a href="{{ url_for('frontend.show_item', item_name=fqname) }}"{{ " " }}
-                   {% if not exists -%}class="moin-nonexistent"{%- endif -%}>
-                   {{ fqname|shorten_fqname }}
-                </a>
-            {%- endif %}
-            {% if not loop.last %}<span class="sep"> &raquo; </span>{% endif %}
-        {% endfor %}
-        </div>
-    {% endif %}
-
-    {% set navibar_items = theme_supp.navibar(fqname) %}
-    {% if navibar_items %}
-        <ul id="moin-navibar" class="panel">
-        {% for cls, url, text, title in navibar_items %}
-            <li class="{{ cls }}">
-                <a href="{{ url }}" {% if title %}title="{{ title }} : {{ url|safe }}"{% else %}"{{ url|safe }}"{% endif %}>{{ text }}</a>
-            </li>
-        {% endfor %}
-        </ul>
-    {% endif %}
-
-    <div id="moin-pageline">
-        <hr style="display:none;" />
-    </div>
-
-    {% block header_itemviews %}{% endblock %}
-
 {% endblock %}
-</div>
-
-{{ after_header }}
-
-<div id="moin-page" lang="{{ theme_supp.content_lang }}" dir="{{ theme_supp.content_dir }}">
-
-    {% block item -%}
-        {# If you want itemviews in your template, extend from show.html, not from here. #}
-        <div id="moin-content">
-            <div id="moin-flash">  {# client side javascript may add messages here #}
-            {% for category, msg in get_flashed_messages(with_categories=true) %}
-            <p class="moin-flash moin-flash-{{ category }}">{{ msg }}</p>
-            {% endfor %}
-            </div>
-        {% block content %}
-            {# All content templates should have implement this block. #}
-        {% endblock %}
-        </div>
-    {%- endblock %}
-</div>
-
-{{ before_footer }}
-
-<div id="moin-footer">
-{% block footer %}
-    {% block footer_itemviews %}{% endblock %}
-    {% block footer_hr %}<hr/>{% endblock %}
-    {{ creditlogos }}
-    {% block footer_meta %}{% endblock %}
-    {% if license_info %}<p id="moin-wikilicense">{{ license_info }}</p>{% endif %}
-    {{ credits }}
-{% endblock %}
-</div>
-
-{{ after_footer }}
-
-</div>
-
-{% endblock %}

File MoinMoin/templates/login.html

View file
  • Ignore whitespace
 {% import "forms.html" as forms %}
 
 {% block content %}
-<div class="moin-form">
-{{ forms.render_errors(form) }}
+    <div class="moin-form">
+        {{ forms.render_errors(form) }}
 
-{% if 'username' in login_inputs or 'password' in login_inputs %}
-<h2>{{ _('Moin login') }}</h2>
-{{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
-<dl>
-  {% if 'username' in login_inputs %}
-  {{ forms.render(form['username']) }}
-  {% endif %}
-  {% if 'password' in login_inputs %}
-  {{ forms.render(form['password']) }}
-  {% endif %}
-</dl>
-{{ forms.render(form['submit']) }}
-{{ forms.render_submit(form) }}
-{{ gen.form.close() }}
-{% endif %}
+        {% if 'username' in login_inputs or 'password' in login_inputs %}
+            <h2>{{ _('Moin login') }}</h2>
+            {{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
+                <dl>
+                    {% if 'username' in login_inputs %}
+                        {{ forms.render(form['username']) }}
+                    {% endif %}
+                    {% if 'password' in login_inputs %}
+                        {{ forms.render(form['password']) }}
+                    {% endif %}
+                </dl>
+                {{ forms.render(form['submit']) }}
+                {{ forms.render_submit(form) }}
+            {{ gen.form.close() }}
+        {% endif %}
 
-{% if 'openid' in login_inputs %}
-<br>
-<h2>{{ _('OpenID login') }}</h2>
+        {% if 'openid' in login_inputs %}
+            <br>
+            <h2>{{ _('OpenID login') }}</h2>
 
-{{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
-<dl>
-  {{ forms.render(form['openid']) }}
-</dl>
-{{ forms.render(form['submit']) }}
-{{ forms.render_submit(form) }}
-{{ gen.form.close() }}
-{% endif %}
+            {{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
+                <dl>
+                    {{ forms.render(form['openid']) }}
+                </dl>
+                {{ forms.render(form['submit']) }}
+                {{ forms.render_submit(form) }}
+            {{ gen.form.close() }}
+        {% endif %}
 
-</div>
+    </div>
 {% endblock %}

File MoinMoin/templates/lookup.html

View file
  • Ignore whitespace
 {% import "forms.html" as forms %}
 {% block content %}
     {% if results is not defined %}
-    <h1>{{ _("Lookup") }}</h1>
-    {{ gen.form.open(lookup_form, id='moin-lookup-form', method='get', action=url_for('frontend.lookup')) }}
-        {{ forms.render_errors(lookup_form) }}
-        <dl>
-            {% for e in [
-                'name',
-                'name_exact',
-                'itemid',
-                'revid',
-                'userid',
-                'language',
-                'itemlinks',
-                'itemtransclusions',
-                'refs',
-                'tags',
-                'history',
-                ] %}
-                {{ forms.render(lookup_form[e]) }}
-            {% endfor %}
-        </dl>
-        {{ forms.render_submit(lookup_form) }}
-    {{ gen.form.close() }}
+        <h1>{{ _("Lookup") }}</h1>
+        {{ gen.form.open(lookup_form, id='moin-lookup-form', method='get', action=url_for('frontend.lookup')) }}
+            {{ forms.render_errors(lookup_form) }}
+            <dl>
+                {% for e in [
+                    'name',
+                    'name_exact',
+                    'itemid',
+                    'revid',
+                    'userid',
+                    'language',
+                    'itemlinks',
+                    'itemtransclusions',
+                    'refs',
+                    'tags',
+                    'history',
+                    ] %}
+                    {{ forms.render(lookup_form[e]) }}
+                {% endfor %}
+            </dl>
+            {{ forms.render_submit(lookup_form) }}
+        {{ gen.form.close() }}
     {% else %}
-    {% if not results %}
-    <h1>{{ _("No results") }}</h1>
-    {% else %}
-    <h1>{{ _("More than one result") }}</h1>
-    <div class="lookupresults">
-        <table>
-            {% for result in results %}
-                {% if result['wikiname'] == cfg.interwikiname %}
-                    <tr>
-                        <td class="moin-wordbreak">{{ loop.index }}
-                        <a href="{{ url_for_item(item_name=result.name, wiki_name='Self', rev=result.revid) }}"><b>{{ result.name }}</b></a>
-                        </td>
-                    </tr>
-                {% else %}
-                    <tr>
-                        <td class="moin-wordbreak">{{ loop.index }}
-                        <a class="moin-interwiki" href="{{ url_for_item(item_name=result.name, wiki_name=result.wikiname, rev=result.revid) }}"><b>{{ "%s:%s" % (result.wikiname, result.name) }}</b></a>
-                        </td>
-                    </tr>
-                {% endif %}
-            {% endfor %}
-        </table>
-    </div>
-    {% endif %}
+        {% if not results %}
+            <h1>{{ _("No results") }}</h1>
+        {% else %}
+            <h1>{{ _("More than one result") }}</h1>
+            <div class="lookupresults">
+                <table>
+                    {% for result in results %}
+                        {% if result['wikiname'] == cfg.interwikiname %}
+                            <tr>
+                                <td class="moin-wordbreak">{{ loop.index }}
+                                    <a href="{{ url_for_item(item_name=result.name, wiki_name='Self', rev=result.revid) }}"><b>{{ result.name }}</b></a>
+                                </td>
+                            </tr>
+                        {% else %}
+                            <tr>
+                                <td class="moin-wordbreak">{{ loop.index }}
+                                    <a class="moin-interwiki" href="{{ url_for_item(item_name=result.name, wiki_name=result.wikiname, rev=result.revid) }}"><b>{{ "%s:%s" % (result.wikiname, result.name) }}</b></a>
+                                </td>
+                            </tr>
+                        {% endif %}
+                    {% endfor %}
+                </table>
+            </div>
+        {% endif %}
     {% endif %}
 {% endblock %}

File MoinMoin/templates/lostpass.html

View file
  • Ignore whitespace
 {% import "forms.html" as forms %}
 
 {% block content %}
-<h1>{{ _("Lost Password") }}</h1>
-<div class="moin-form">
-{{ _("Please note that you only need to fill out one form field.") }}
-{{ gen.form.open(form, method="post", action=url_for('frontend.lostpass')) }}
-  {{ forms.render_errors(form) }}
-  <dl>
-    {{ forms.render(form['username']) }}
-    {{ forms.render(form['email']) }}
-  </dl>
-  {{ forms.render_submit(form) }}
-{{ gen.form.close() }}
-</div>
+    <h1>{{ _("Lost Password") }}</h1>
+    <div class="moin-form">
+        {{ _("Please note that you only need to fill out one form field.") }}
+        {{ gen.form.open(form, method="post", action=url_for('frontend.lostpass')) }}
+            {{ forms.render_errors(form) }}
+            <dl>
+                {{ forms.render(form['username']) }}
+                {{ forms.render(form['email']) }}
+            </dl>
+            {{ forms.render_submit(form) }}
+        {{ gen.form.close() }}
+    </div>
 {% endblock %}

File MoinMoin/templates/mail/content_diff.html

View file
  • Ignore whitespace
 {% macro content_diff(diff) %}
-<table border="0" cellpadding="0" cellspacing="0" style="margin:0; padding:1em;
-        width:100%; font-family:monospace; background-color:#F9F9F9;">
-{% for line in diff -%}
-{% if line[:2] == "+ " -%}
-    <tr style="color:#00B000; height:1.2em;">
-{% elif line[:2] == "- " -%}
-    <tr style="color:#991111; height:1.2em;">
-{% elif line[:2] == "@@" -%}
-    <tr style="color:#440088; height:1.2em;">
-{% else -%}
-    <tr style="color:#000000; height:1.2em;">
-{%- endif %}