diff templates/sat_website/gallery.html @ 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 a18800261cf6
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>