[damned-lies] Don't add href links around videos
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Don't add href links around videos
- Date: Sun, 25 Apr 2010 21:10:19 +0000 (UTC)
commit a6dbf61de5758ebe7bd8d6025ccbae38912e2786
Author: Claude Paroz <claude 2xlibre net>
Date: Sun Apr 25 23:09:39 2010 +0200
Don't add href links around videos
templates/module_images.html | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/templates/module_images.html b/templates/module_images.html
index b300bcd..547ad5c 100644
--- a/templates/module_images.html
+++ b/templates/module_images.html
@@ -19,15 +19,17 @@
{% with stat.language.locale as locale %}
<tr><td valign="top">
<a href="{{ fig.orig_remote_url }}"><span class="path">C/{{ fig.path }}</span><br/></a>
- <a href="{{ fig.orig_remote_url }}">{% if fig.video %}<video src="{{ fig.orig_remote_url }}" controls></video>
- {% else %}<img class="screenshot" src="{{ fig.orig_remote_url }}"/>{% endif %}</a>
+ {% if fig.video %}<video src="{{ fig.orig_remote_url }}" controls></video>
+ {% else %}<a href="{{ fig.orig_remote_url }}"><img class="screenshot" src="{{ fig.orig_remote_url }}"/></a>
+ {% endif %}
</td>
<td valign="top" class="{{ fig.fuzzy|yesno:"fuzzy," }}">
{% if fig.translated %}
{% if fig.translated_file %}
- <a href="{{ fig.trans_remote_url }}"><span class="path">{{ locale }}/{{ fig.path }}</span></a><br/>
- <a href="{{ fig.trans_remote_url }}">{% if fig.video %}<video src="{{ fig.orig_remote_url }}" controls></video>
- {% else %}<img class="screenshot" src="{{ fig.trans_remote_url }}"/>{% endif %}</a>
+ <a href="{{ fig.trans_remote_url }}"><span class="path">{{ locale }}/{{ fig.path }}</span></a><br/>
+ {% if fig.video %}<video src="{{ fig.orig_remote_url }}" controls></video>
+ {% else %}<a href="{{ fig.trans_remote_url }}"><img class="screenshot" src="{{ fig.trans_remote_url }}"/></a>
+ {% endif %}
{% else %}
<p><em>{% trans "Translated, but uses original one (maybe the figure doesn't contain any string to translate)" %}</em></p>
{% endif %}
@@ -35,9 +37,10 @@
{% if fig.fuzzy %}
<em>{% trans "Fuzzy" %}</em><br/>
{% if fig.translated_file %}
- <a href="{{ fig.trans_remote_url }}"><span class="path">{{ locale }}/{{ fig.path }}</span></a><br/>
- <a href="{{ fig.trans_remote_url }}">{% if fig.video %}<video src="{{ fig.orig_remote_url }}" controls></video>
- {% else %}<img class="screenshot" src="{{ fig.trans_remote_url }}"/>{% endif %}</a>
+ <a href="{{ fig.trans_remote_url }}"><span class="path">{{ locale }}/{{ fig.path }}</span></a><br/>
+ {% if fig.video %}<video src="{{ fig.orig_remote_url }}" controls></video>
+ {% else %}<a href="{{ fig.trans_remote_url }}"><img class="screenshot" src="{{ fig.trans_remote_url }}"/></a>
+ {% endif %}
{% else %}
<p><em><small>{% trans "No existing file ("Technical" fuzzy)" %}</small></em></p>
{% endif %}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]