reorganize plugins by plugin
[unfold.git] / plugins / tabs / tabs.html
diff --git a/plugins/tabs/tabs.html b/plugins/tabs/tabs.html
new file mode 100644 (file)
index 0000000..7c387d8
--- /dev/null
@@ -0,0 +1,13 @@
+{# could try to set class='active' on the one we want to highlight #}
+<ul class="nav nav-tabs" id='tab-{{ domid }}'>
+{% for son in sons %}
+<li{% if son.active %} class='active'{% endif %}> <a href="#{{ son.domid }}" data-toggle="tab">{{ son.title }}</a> </li>
+{% endfor %}
+</ul><!--nav-tabs-->
+<div class="tab-content">
+{% for son in sons %}
+<div class="tab-pane fade in{% if son.active %} active{% endif %}" id="{{ son.domid }}">
+{{ son.rendered }}
+</div><!--tab-pane-->
+{% endfor %}
+</div><!--tab-content-->