changeset 2750:8c29936b3d29

Removed extra commas and spaces between links in the meta view in basic theme
author Ajitesh Gupta <ajgupta93@gmail.com>
date Mon, 18 Aug 2014 18:45:19 +0530
parents 53d6f0ec8073
children 0c8b5e6868ec
files MoinMoin/templates/utils.html
diffstat 1 files changed, 9 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/utils.html	Mon Aug 18 13:59:14 2014 +0200
+++ b/MoinMoin/templates/utils.html	Mon Aug 18 18:45:19 2014 +0530
@@ -114,10 +114,9 @@
         <li class="list-group-item">Data ID: {{ meta['dataid'] }}</li>
         <li class="list-group-item">External Links:
         {% if meta['externallinks'] %}
-            {% for item in meta['externallinks'] %}
-                <a href="{{ item|safe }}">
-                    {{ item }}
-                </a>,
+            {% for item in meta['externallinks'] -%}
+                <a href="{{ item|safe }}">{{ item }}</a>
+                {%- if not loop.last -%},{% endif %}
             {% endfor %}
         {% else %}
             (None)
@@ -126,10 +125,9 @@
         <li class="list-group-item">Item ID: {{ meta['itemid'] }}</li>
         <li class="list-group-item">Item Links:
         {% if meta['itemlinks'] %}
-            {% for item in meta['itemlinks'] %}
-                <a href="{{ url_for('frontend.show_item', item_name=item) }}" {% if not theme_supp.item_exists(item) %}class="moin-nonexistent"{% endif %}>
-                    {{ item }}
-                </a>,
+            {% for item in meta['itemlinks'] -%}
+                <a href="{{ url_for('frontend.show_item', item_name=item) }}" {% if not theme_supp.item_exists(item) %}class="moin-nonexistent"{% endif %}>{{ item }}</a>
+                {%- if not loop.last -%},{% endif %}
             {% endfor %}
         {% else %}
             (None)
@@ -137,10 +135,9 @@
         </li>
         <li class="list-group-item">Item Transclusions:
         {% if meta['itemtransclusions'] %}
-            {% for item in meta['itemtransclusions'] %}
-                <a href="{{ url_for('frontend.show_item', item_name=item) }}" {% if not theme_supp.item_exists(item) %}class="moin-nonexistent"{% endif %}>
-                {{ item }}
-                </a>,
+            {% for item in meta['itemtransclusions'] -%}
+                <a href="{{ url_for('frontend.show_item', item_name=item) }}" {% if not theme_supp.item_exists(item) %}class="moin-nonexistent"{% endif %}>{{ item }}</a>
+                {%- if not loop.last -%},{% endif %}
             {% endfor %}
         {% else %}
             (None)