Consistencify sidebar bits (same headers and such)

This commit is contained in:
Jef van Schendel 2012-02-12 16:28:42 +01:00
parent b21c943427
commit 1fccaf4a81
4 changed files with 8 additions and 7 deletions

View File

@ -20,7 +20,7 @@
{% if media.media_data.has_key('exif')
and app_config['exif_visible']
and media.media_data.exif.has_key('useful') %}
<h4>EXIF</h4>
<h3 class="sidedata">EXIF</h3>
<table>
{% for key, tag in media.media_data.exif.useful.items() %}
<tr>

View File

@ -20,7 +20,7 @@
{% if media.media_data.has_key('gps')
and app_config['geolocation_map_visible']
and media.media_data.gps %}
<h4>Map</h4>
<h3 class="sidedata">Location</h3>
<div>
{% set gps = media.media_data.gps %}
<div id="tile-map" style="width: 100%; height: 196px;">

View File

@ -17,8 +17,8 @@
#}
{% block license_content -%}
<h3 class="sidedata">{% trans %}License{% endtrans %}</h3>
<p>
{% trans %}License:{% endtrans %}
{% if media.license %}
<a href="{{ media.license }}">{{ media.get_license_data().abbreviation }}</a>
{% else %}

View File

@ -17,16 +17,17 @@
#}
{% block tags_content -%}
<p>{% trans %}View more media tagged with{% endtrans %}
<h3 class="sidedata">Tagged with</h3>
<p>
{% for tag in media.tags %}
{% if loop.last %}
{# the 'and' should only appear if there is more than one tag #}
{% if media.tags|length > 1 %}
{% trans %}or{% endtrans %}
&middot;
{% endif %}
<a href="{{ request.urlgen(
'mediagoblin.listings.tags_listing',
tag=tag['slug']) }}">{{ tag['name'] }}</a>.
tag=tag['slug']) }}">{{ tag['name'] }}</a>
{% elif loop.revindex == 2 %}
<a href="{{ request.urlgen(
'mediagoblin.listings.tags_listing',
@ -34,7 +35,7 @@
{% else %}
<a href="{{ request.urlgen(
'mediagoblin.listings.tags_listing',
tag=tag['slug']) }}">{{ tag['name'] }}</a>,
tag=tag['slug']) }}">{{ tag['name'] }}</a> &middot;
{% endif %}
{% endfor %}
</p>