changeset 2797:1a14f5755290

correct html validation, bootlint warnings, remove obsolete TODOs on index views
author RogerHaase <haaserd@gmail.com>
date Tue, 30 Sep 2014 08:16:59 -0700
parents eb4595aea80b
children 371230784e21
files MoinMoin/templates/forms.html MoinMoin/templates/index.html MoinMoin/themes/basic/templates/index.html
diffstat 3 files changed, 5 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/forms.html	Thu Sep 25 14:52:18 2014 -0700
+++ b/MoinMoin/templates/forms.html	Tue Sep 30 08:16:59 2014 -0700
@@ -221,13 +221,13 @@
         </div>
         <div class="file_upload_overall_progress"><div style="display:none;"></div></div>
         <div class="file_upload_buttons">
-            <button class="file_upload_start" style="display:none;">{{ _("Start All") }}</button>
-            <button class="file_upload_cancel" style="display:none;">{{ _("Cancel All") }}</button>
+            <button class="file_upload_start" type="button" style="display:none;">{{ _("Start All") }}</button>
+            <button class="file_upload_cancel" type="button" style="display:none;">{{ _("Cancel All") }}</button>
         </div>
         <table class="files">
             <tr class="file_upload_template" style="display:none;">
-                <td class="file_upload_start"><button>{{ _("Start") }}</button></td>
-                <td class="file_upload_cancel"><button>{{ _("Cancel") }}</button></td>
+                <td class="file_upload_start"><button type="button">{{ _("Start") }}</button></td>
+                <td class="file_upload_cancel"><button type="button">{{ _("Cancel") }}</button></td>
                 <td class="file_name"></td>
                 <td class="file_upload_progress"><div></div></td>
             </tr>
--- a/MoinMoin/templates/index.html	Thu Sep 25 14:52:18 2014 -0700
+++ b/MoinMoin/templates/index.html	Tue Sep 30 08:16:59 2014 -0700
@@ -74,7 +74,6 @@
     <div>
         <a href="{{ url_for('.index', item_name=e.fullname) }}"
            name="{{ entry_anchor('dir', e) }}"
-           {# TODO .moin-dir-item class is not styled yet #}
            class="moin-dir-item"
            title="{{ e.relname }}">
            {{ e.relname|truncate(maxchars, true, '..') }}
@@ -90,14 +89,12 @@
 {% macro render_file_entry(e) %}
     <div>
         <span class="moin-select-item">
-            <input type="checkbox"></input>
+            <input type="checkbox">
         </span>
         {% set mimetype = "application/x.moin.download" %}
         <a href="{{ url_for('.download_item', item_name=e.fullname, mimetype=mimetype) }}" class="moin-download-link">
         </a>
         <a href="{{ url_for('.show_item', item_name=e.fullname) }}"
-           name="{{ entry_anchor('file', e) }}"
-           {# TODO .moin-itemtype-* classes are not styled yet #}
            class="{{ e.meta['contenttype']|contenttype_to_class }} moin-itemtype-{{ e.meta['itemtype'] }} moin-item"
            title="{{ e.relname }}">
            {{ e.relname|truncate(maxchars, true, '..') }}
--- a/MoinMoin/themes/basic/templates/index.html	Thu Sep 25 14:52:18 2014 -0700
+++ b/MoinMoin/themes/basic/templates/index.html	Tue Sep 30 08:16:59 2014 -0700
@@ -89,7 +89,6 @@
 {% macro render_dir_entry(e) %}
     <div>
         <a href="{{ url_for('.index', item_name=e.fullname) }}"
-           {# TODO .moin-dir-item class is not styled yet #}
            class="moin-dir-item"
            title="{{ e.relname }}">
            {{ e.relname|truncate(maxchars, true, '..') }}
@@ -111,7 +110,6 @@
         <a href="{{ url_for('.download_item', item_name=e.fullname, mimetype=mimetype) }}" class="moin-download-link">
         </a>
         <a href="{{ url_for('.show_item', item_name=e.fullname) }}"
-           {# TODO .moin-itemtype-* classes are not styled yet #}
            class="{{ e.meta['contenttype']|contenttype_to_class }} moin-itemtype-{{ e.meta['itemtype'] }} moin-item"
            title="{{ e.relname }}">
            {{ e.relname|truncate(maxchars, true, '..') }}
@@ -129,7 +127,6 @@
     {{ self.action_bars() }}
     <div>
         {% if item_name: %}
-            <h1>{{ title }}</h1>
             <div class="moin-index-path">
                 <span class="icon icon-folder-close"></span>
                 <a href="{{ url_for('frontend.index') }}" title="{{ _("Global Index") }}">{{ ("..") }}</a>
@@ -141,8 +138,6 @@
                     <span class="moin-path-separator">{{ ("/") }}</span>
                 {% endfor %}
             </div>
-        {% else %}
-            <h1>{{ title }}</h1>
         {% endif %}
     </div>
     <div class='moin-clr'></div>