diff MoinMoin/templates/global_history.html @ 2761:31628ac3ec21

mass correction of indentation on many templates
author RogerHaase <haaserd@gmail.com>
date Sun, 24 Aug 2014 08:39:32 -0700
parents 37cf0c227a6e
children 2fd94be4b50c caf95e12acbb
line wrap: on
line diff
--- a/MoinMoin/templates/global_history.html	Wed Aug 20 14:24:38 2014 -0700
+++ b/MoinMoin/templates/global_history.html	Sun Aug 24 08:39:32 2014 -0700
@@ -2,13 +2,13 @@
 {% 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'] %}
@@ -16,48 +16,48 @@
                 <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 %}