Add titles to media entries in galleries

This commit is contained in:
Christopher Allan Webber 2011-08-21 23:10:12 -05:00
parent 7a8ad8187c
commit ec451724cc
2 changed files with 11 additions and 1 deletions

View File

@ -244,6 +244,11 @@ text-align: center;
text-align: center;
}
.media_thumbnail a {
color: #eee;
text-decoration: none;
}
/* media detail */
h2.media_title{

View File

@ -25,13 +25,18 @@
{%- if loop.first %} thumb_row_first
{%- elif loop.last %} thumb_row_last{% endif %}">
{% for entry in row %}
{% set entry_url = entry.url_for_self(request.urlgen) %}
<td class="media_thumbnail thumb_entry
{%- if loop.first %} thumb_entry_first
{%- elif loop.last %} thumb_entry_last{% endif %}">
<a href="{{ entry.url_for_self(request.urlgen) }}">
<a href="{{ entry_url }}">
<img src="{{ request.app.public_store.file_url(
entry['media_files']['thumb']) }}" />
</a>
{% if entry['title'] %}
<br />
<a href="{{ entry_url }}">{{ entry['title'] }}</a>
{% endif %}
</td>
{% endfor %}
</tr>