WIP: Refactoring canvas api - canvas, canvasNode + tests
[fnpeditor.git] / modules / nodeFamilyTree / template.html
1 <div class="rng-module-nodeFamilyTree">\r
2     <table class="table table-bordered">\r
3         <tr>\r
4             <td>powyżej</td>\r
5             <td><% if(parent) { %><a href="#" class="rng-module-nodeFamilyTree-parent" data-id="<%= parent.id %>"><%= parent.repr %></a><% } else { %>-<% } %></td>\r
6         </tr>\r
7         <tr>\r
8             <td rowspan="0">poniżej</td>\r
9             <td>\r
10                 <ul>\r
11                 <% if(!children || children.length === 0) { %>-<% } else { %>\r
12                     <% children.forEach(function(child) { %>\r
13                         <li><a href="#" data-id="<%= child.id %>"><%= child.repr %></a></li>\r
14                     <% }); %>\r
15                 <% } %>\r
16                 </ul>\r
17             </td>\r
18         </tr>\r
19 </div>