Use the object gallery file on the front page also
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 May 2011 22:49:03 +0000 (17:49 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 May 2011 22:49:03 +0000 (17:49 -0500)
mediagoblin/templates/mediagoblin/root.html

index 059266879005db040869e5d82db56badc958d9c9..e5344e08c5a665e56d874900541abf0041bd71b7 100644 (file)
   {# temporarily, an "image gallery" that isn't one really ;) #}
 
   <div>
-    <ul>
-      {% for entry in media_entries %}
-        <li>
-          <a href="{{ entry.url_for_self(request.urlgen) }}">
-            <img src="{{ request.app.public_store.file_url(
-                      entry['media_files']['thumb']) }}" /></a>
-        </li>
-      {% endfor %}
-    </ul>
+    {% include "mediagoblin/utils/object_gallery.html" %}
   </div>
 
 {% endblock %}