From 92a3723e83417d17ef83be3bcd838fe2380ac748 Mon Sep 17 00:00:00 2001 From: yomguy Date: Sun, 30 Dec 2012 02:48:58 +0100 Subject: [PATCH] fold keywords --- teleforma/templates/teleforma/seminar_detail.html | 12 +++++++++++- teleforma/templates/teleforma/seminars.html | 12 ++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/teleforma/templates/teleforma/seminar_detail.html b/teleforma/templates/teleforma/seminar_detail.html index 08131317..4a4cc6cb 100644 --- a/teleforma/templates/teleforma/seminar_detail.html +++ b/teleforma/templates/teleforma/seminar_detail.html @@ -22,6 +22,16 @@ $(function() { var color = '#' + rainbow.colourAt({{seminar_progress}}); $('#progressbar-seminar div').css({"background": color}); }); + + +$(function () { + $('div.keywords').expander({ + slicePoint: 45, + expandText: 'Lire plus', + userCollapseText: 'Cacher le texte', + }); +}); + {% endblock infra_javascript %} @@ -53,10 +63,10 @@ $(function() {
{% trans "course" %}
{{ seminar.course }}
- {% if seminar.keywords.all %}
{% trans "keywords" %}
{% for kw in seminar.keywords.all %}{{ kw }}, {% endfor %}
{% endif %}
{% trans "level" %}
{{ seminar.level }}
{% trans "public concerned" %}
{{ seminar.concerned }}
{% trans "duration" %}
{{ seminar.duration }}
+ {% if seminar.keywords.all %}
{% trans "keywords" %}
{% for kw in seminar.keywords.all %}{{ kw }}, {% endfor %}
{% endif %}