summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/tags/slider_nodetypes.html
diff options
context:
space:
mode:
authorgnowgi <nagarjun@gnowledge.org>2012-03-15 16:19:20 +0530
committergnowgi <nagarjun@gnowledge.org>2012-03-15 16:19:20 +0530
commit7a4f561e851fdc7246d804c3abb6748b8a4199a6 (patch)
treed2afc3463fd49625a9be482012f5c3bfcf7c42b9 /gstudio/templates/gstudio/tags/slider_nodetypes.html
downloadgnowsys-7a4f561e851fdc7246d804c3abb6748b8a4199a6.tar.gz
master trunk of gnowsys-studio
Diffstat (limited to 'gstudio/templates/gstudio/tags/slider_nodetypes.html')
-rw-r--r--gstudio/templates/gstudio/tags/slider_nodetypes.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/gstudio/templates/gstudio/tags/slider_nodetypes.html b/gstudio/templates/gstudio/tags/slider_nodetypes.html
new file mode 100644
index 0000000..ccc161a
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/slider_nodetypes.html
@@ -0,0 +1,27 @@
+{% if nodetypes %}
+<div id="slider">
+ <ul class="ui-tabs-nav">
+ {% for nodetype in nodetypes %}
+ <li class="ui-tabs-nav-item{% if forloop.first %} ui-tabs-selected{% endif %}"
+ id="nav-slider-{{ forloop.counter }}">
+ <a href="#nodetype-slider-{{ forloop.counter }}">
+ <img src="{% if nodetype.image %}{{ nodetype.image.url }}{% endif %}" alt="{{ nodetype.title }}" />
+ <span>{{ nodetype.title }}</span>
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+
+ {% for nodetype in nodetypes %}
+ <div id="nodetype-slider-{{ forloop.counter }}" class="ui-tabs-panel">
+ <img src="{% if nodetype.image %}{{ nodetype.image.url }}{% endif %}" alt="{{ nodetype.title }}" />
+ <div class="panel_info">
+ <h2>
+ <a href="{{ nodetype.get_absolute_url }}" rel="bookmark">{{ nodetype.title }}</a>
+ </h2>
+ {{ nodetype.excerpt|linebreaks|truncatewords_html:20 }}
+ </div>
+ </div>
+ {% endfor %}
+</div>
+{% endif %}