projects
/
mediagoblin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify/Robustify the thumbnail URL usage in templates
[mediagoblin.git]
/
mediagoblin
/
templates
/
mediagoblin
/
utils
/
object_gallery.html
diff --git
a/mediagoblin/templates/mediagoblin/utils/object_gallery.html
b/mediagoblin/templates/mediagoblin/utils/object_gallery.html
index 81506a84e01222902b4fe3a0b480ca464bcddf5a..b4da5bc111bea12f9269fffcc871c93dbeb2532e 100644
(file)
--- a/
mediagoblin/templates/mediagoblin/utils/object_gallery.html
+++ b/
mediagoblin/templates/mediagoblin/utils/object_gallery.html
@@
-30,12
+30,10
@@
{%- if loop.first %} thumb_entry_first
{%- elif loop.last %} thumb_entry_last{% endif %}">
<a href="{{ entry_url }}">
{%- if loop.first %} thumb_entry_first
{%- elif loop.last %} thumb_entry_last{% endif %}">
<a href="{{ entry_url }}">
- <img src="{{ request.app.public_store.file_url(
- entry.media_files['thumb']) }}" />
+ <img src="{{ entry.thumb_url }}" />
</a>
{% if entry.title %}
</a>
{% if entry.title %}
- <br />
- <a href="{{ entry_url }}">{{ entry.title }}</a>
+ <a class="thumb_entry_title" href="{{ entry_url }}">{{ entry.title }}</a>
{% endif %}
</td>
{% endfor %}
{% endif %}
</td>
{% endfor %}