Split off updates to another template. List sources.
[zzz-spline-frontpage.git] / splinext / frontpage / templates / front_page / updates.mako
diff --git a/splinext/frontpage/templates/front_page/updates.mako b/splinext/frontpage/templates/front_page/updates.mako
new file mode 100644 (file)
index 0000000..9a6f584
--- /dev/null
@@ -0,0 +1,13 @@
+% for update in c.updates:
+<%include file="${update.source.template}" args="update=update" />
+% endfor
+% if not c.updates:
+<p>No updates.</p>
+% endif
+
+<p>Sources:</p>
+<ul class="classic-list">
+    % for source in c.sources:
+    <li><a href="${source.link}"><img src="${h.static_uri('spline', "icons/{0}.png".format(source.icon))}" alt=""> ${source.title}</a></li>
+    % endfor
+</ul>