Added fragment_short.html to repository.
authorMarek Stępniowski <marek@stepniowski.com>
Fri, 5 Sep 2008 09:44:46 +0000 (11:44 +0200)
committerMarek Stępniowski <marek@stepniowski.com>
Fri, 5 Sep 2008 09:44:46 +0000 (11:44 +0200)
templates/catalogue/fragment_short.html [new file with mode: 0644]

diff --git a/templates/catalogue/fragment_short.html b/templates/catalogue/fragment_short.html
new file mode 100644 (file)
index 0000000..a05ba45
--- /dev/null
@@ -0,0 +1,20 @@
+<div class="fragment">
+    {# <div class="change-sets"> #}
+    {#     <a href="{% url catalogue.views.fragment_sets fragment.id %}" class="jqm-trigger">Półki</a> #}
+    {# </div> #}
+    {% if fragment.short_text %}
+    <div class='fragment-short-text'>
+        {{ fragment.short_text|safe }}
+        <a href="#">↓ Rozwiń fragment ↓</a>
+    </div>
+    {% endif %}
+    <div class="fragment-text" {% if fragment.short_text %}style="display:none;"{% endif %}>
+        {{ fragment.text|safe }}
+        {% if fragment.short_text %}
+            <a href="#">↑ Zwiń fragment ↑</a>
+        {% endif %}
+    </div>
+    <div class="fragment-metadata">
+        <p><a href="{{ book.get_absolute_url }}">{{ book.title }}</a>, {{ book_authors|join:","|safe }}</p>
+    </div>
+</div>