nodeBreadCrumbs module
[fnpeditor.git] / modules / nodeBreadCrumbs / template.html
diff --git a/modules/nodeBreadCrumbs/template.html b/modules/nodeBreadCrumbs/template.html
new file mode 100644 (file)
index 0000000..1662fcf
--- /dev/null
@@ -0,0 +1,10 @@
+<div class="rng-module-nodeBreadCrumbs">
+    <ul class="breadcrumb">
+    <% if(node && parents) { %>
+        <% for(var i = parents.length - 1; i >= 0; i--) { %>
+            <li><a href="#" data-id="<%= parents[i].getAttribute('id') %>"> <%= parents[i].getAttribute('wlxml-tag') %><% if(parents[i].getAttribute('wlxml-class')) { %>.<%= parents[i].getAttribute('wlxml-class') %> <% } %></a><span class="divider">/</span></li>
+        <% } %>
+            <li class="active"><span data-id="<%= node.attr('id') %>"><%= node.attr('wlxml-tag') %><% if(node.attr('wlxml-class')) { %>.<%= node.attr('wlxml-class') %> <% } %></span></li>
+    <% } %>
+    </ul>
+</div>
\ No newline at end of file