Commits

Arjan Scherpenisse committed 9e4c635

Added title and body to home page. Better list split.

Comments (0)

Files changed (2)

dispatch/dispatch

+[
+ {home, [], resource_page, [{template, "home.tpl"}, {id, page_home}]}
+].

templates/home.tpl

 {% extends "base.tpl" %}
 
 {% block content %}
+<div class="zp-100">
+    <h1>{{ m.rsc[id].title }}</h1>
+    {{ m.rsc[id].body|show_media }}
+</div>
 
-
-<h1>Modules</h1>
-
-
-{% for cols in  m.search[{query cat="zmr_repository" sort="pivot_title" pagelen=10000}]|group_title_firstchar:4 %}
-
-<ol class="alphabetical-list">
-    {% for group in cols %}
-    <li><h2>{{ group.first }}</h2>
-        <ul>
-            {% for id in group.result %}
-            <li>
-                <h3><a href="{{ m.rsc[id].page_url }}">{{ m.rsc[id].title }}</a></h3>
-                {{ m.rsc[id].summary }}
-            </li>
-            {% endfor %}
-        </ul>
-    </li>
-    {% endfor %}
-</ol>
-
+{% for col in m.search[{query cat="zmr_repository" sort="pivot_title" pagelen=10000}]|vsplit_in:4 %}
+<div class="zp-25">
+    <ul>
+        {% for id in col %}
+        <li>
+            <h3><a href="{{ m.rsc[id].page_url }}">{{ m.rsc[id].title }}</a></h3>
+            {{ m.rsc[id].summary }}
+        </li>
+        {% endfor %}
+    </ul>
+</div>
 {% endfor %}
 
 
-
 {% endblock %}