changeset 1729:86b6f6a844fd

Add moin-itemtype-* css classes to entries on +index view.
author Cheer Xiao <xiaqqaix@gmail.com>
date Wed, 22 Aug 2012 23:37:00 +0800
parents 291f7d45edf3
children e79b4f4df123
files MoinMoin/templates/index.html
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/index.html	Wed Aug 22 23:33:48 2012 +0800
+++ b/MoinMoin/templates/index.html	Wed Aug 22 23:37:00 2012 +0800
@@ -123,7 +123,8 @@
                 <a href="{{ url_for('.download_item', item_name=e.meta['name'], mimetype=mimetype) }}" class="moin-download-link">
                 </a>
                 <a href="{{ url_for('.show_item', item_name=e.meta['name']) }}"
-                   class="{{ e.meta['contenttype']|contenttype_to_class }} moin-item"
+                   {# 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>