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

View File

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

View File

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

View File

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