Commits

Ajitesh Gupta committed 8c29936

Removed extra commas and spaces between links in the meta view in basic theme

  • Participants
  • Parent commits 53d6f0e

Comments (0)

Files changed (1)

MoinMoin/templates/utils.html

         <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)
         <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)
         </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)