Thumbnails support for questions of type "przyporzadkuj", question update
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 8 Nov 2013 10:19:43 +0000 (11:19 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 15 Jan 2014 10:18:57 +0000 (11:18 +0100)
wtem/static/wtem/img/AdWords_small.png [new file with mode: 0644]
wtem/static/wtem/img/lokowanie_produktu_small.png [new file with mode: 0644]
wtem/static/wtem/img/power_content_small.png [new file with mode: 0644]
wtem/templates/wtem/exercises/edumed_przyporzadkuj.html

diff --git a/wtem/static/wtem/img/AdWords_small.png b/wtem/static/wtem/img/AdWords_small.png
new file mode 100644 (file)
index 0000000..7364241
Binary files /dev/null and b/wtem/static/wtem/img/AdWords_small.png differ
diff --git a/wtem/static/wtem/img/lokowanie_produktu_small.png b/wtem/static/wtem/img/lokowanie_produktu_small.png
new file mode 100644 (file)
index 0000000..8d7e31e
Binary files /dev/null and b/wtem/static/wtem/img/lokowanie_produktu_small.png differ
diff --git a/wtem/static/wtem/img/power_content_small.png b/wtem/static/wtem/img/power_content_small.png
new file mode 100644 (file)
index 0000000..d66ecda
Binary files /dev/null and b/wtem/static/wtem/img/power_content_small.png differ
index 8c0bcf5..5ad558e 100644 (file)
                 data-solution set to single bogus value only to indicate that this piece has no multiple solutions, not used otherwise (see: is_multiple in edumed.coffee). 
                 {% endcomment %}
                 
                 data-solution set to single bogus value only to indicate that this piece has no multiple solutions, not used otherwise (see: is_multiple in edumed.coffee). 
                 {% endcomment %}
                 
-                {% if item.href %}
+                {% if item.img %}
                     <li style="magin-bottom:5px;">
                         <span data-solution="1" data-no="{{forloop.counter}}" data-id="{{item.id}}" class="question-piece draggable ui-draggable">{{item.text}}</span>
                     <li style="magin-bottom:5px;">
                         <span data-solution="1" data-no="{{forloop.counter}}" data-id="{{item.id}}" class="question-piece draggable ui-draggable">{{item.text}}</span>
-                        <img src="/static/wtem/img/{{item.href}}"/>
+                        
+                        {% if item.href %}
+                            <a href="/static/wtem/img/{{item.href}}">
+                        {% endif %}
+                        
+                        <img src="/static/wtem/img/{{item.img}}"/>
+                        
+                        {% if item.href %}</a>{% endif %}
                     </li>
                 {% else %}
                     <li data-solution="1" data-no="{{forloop.counter}}" data-id="{{item.id}}" class="question-piece draggable ui-draggable">{{item.text}}</li>
                     </li>
                 {% else %}
                     <li data-solution="1" data-no="{{forloop.counter}}" data-id="{{item.id}}" class="question-piece draggable ui-draggable">{{item.text}}</li>