changeset 30:565d653a15d3

append language and subtitles info to video description
author souliane <souliane@mailoo.org>
date Thu, 22 Jan 2015 17:25:59 +0100
parents b45621706d83
children 31d196cf3b34
files templates/sat_website/gallery.html
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/templates/sat_website/gallery.html	Wed Jan 21 20:13:19 2015 +0100
+++ b/templates/sat_website/gallery.html	Thu Jan 22 17:25:59 2015 +0100
@@ -84,7 +84,17 @@
                                 {% else %}
                                     <img class="img-responsive" src="{% static screenshot.path %}">                            
                                 {% endif %}
-                                <div class="carousel-caption">{{ screenshot.description }}</div>
+                                <div class="carousel-caption">
+                                    {{ screenshot.description }}
+                                    {% if screenshot.lang and screenshot.subtitles %}
+                                        ({% trans "language:" %} {{ screenshot.lang }},
+                                         {% trans "subtitles:" %} {{ screenshot.subtitles }})
+                                    {% elif screenshot.lang %}
+                                        ({% trans "language:" %} {{ screenshot.lang }})
+                                    {% elif screenshot.subtitles %}
+                                        ({% trans "subtitles:" %} {{ screenshot.subtitles }})
+                                    {% endif %}
+                                </div>
                             </div>
                         {% endfor %}
                     </div>