diff options
| author | root <root@viserion.(none)> | 2013-05-06 18:32:13 +0000 |
|---|---|---|
| committer | root <root@viserion.(none)> | 2013-05-06 18:32:13 +0000 |
| commit | 8b3f35c4f3ff05c9426b3b4f83f2a3113d7add83 (patch) | |
| tree | d8f21afdd49ae7dcbacc17cc09e15f088c162455 /archaeological_files/templates/ishtar/sheet_file.html | |
| parent | db2ed3606ba1171cafc3f8ff86b75b9f48bcb50e (diff) | |
| parent | 548aec29bcaa8348f5d28402783165cff302830d (diff) | |
| download | Ishtar-8b3f35c4f3ff05c9426b3b4f83f2a3113d7add83.tar.bz2 Ishtar-8b3f35c4f3ff05c9426b3b4f83f2a3113d7add83.zip | |
Merge branch 'master' of lysithea.proxience.net:/home/proxience/git/ishtar
Diffstat (limited to 'archaeological_files/templates/ishtar/sheet_file.html')
| -rw-r--r-- | archaeological_files/templates/ishtar/sheet_file.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archaeological_files/templates/ishtar/sheet_file.html b/archaeological_files/templates/ishtar/sheet_file.html index 7f45777a0..7d708c23f 100644 --- a/archaeological_files/templates/ishtar/sheet_file.html +++ b/archaeological_files/templates/ishtar/sheet_file.html @@ -16,7 +16,7 @@ <div class='tool'>{%trans "Export as:"%} <a href='{% url show-file item.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url show-file item.pk "pdf" %}'>{%trans "PDF file"%}</a></div> <h3>{% trans "General"%}</h3> <p><label>{%trans "Year:"%}</label> <span class='value'>{{ item.year }}</span></p> -<p><label>{%trans "Numerical reference:"%}</label> <span class='value'>{{ item.numeric_reference }}</span></p> +{% if item.numeric_reference %}<p><label>{%trans "Numerical reference:"%}</label> <span class='value'>{{ item.numeric_reference }}</span></p>{% endif %} {% if item.name %} <p><label>{%trans "File's name:"%}</label> <span class='value'>{{ item.name }}</span></p> {% endif %} @@ -42,12 +42,12 @@ <h3>{% trans "Localisation"%}</h3> <p><label>{%trans "Towns:"%}</label> <span class='value'>{{ item.towns.all|join:", " }}</span></p> - +{% if item.address %} <p><label>{%trans "Main address:"%}</label> <span class='value'>{{ item.address }}</span></p> {% if item.address_complement %}<p><label>{%trans "Complement:"%}</label> <span class='value'>{{ item.address_complement }}</span></p>{%endif%} {% if item.postal_code %}<p><label>{%trans "Postal code:"%}</label> <span class='value'>{{ item.postal_code }}</span></p>{%endif%} - -<p><label>{%trans "Surface:"%}</label>{% if item.total_surface %} <span class='value'>{{ item.total_surface }} m<sup>2</sup> ({{ item.total_surface_ha }} ha)</span>{%endif%}</p> +{% endif %} +{% if item.total_surface %}<p><label>{%trans "Surface:"%}</label> <span class='value'>{{ item.total_surface }} m<sup>2</sup> ({{ item.total_surface_ha }} ha)</span></p>{%endif%} |
