Built motion from commit (unavailable).|2.4.2
[motion2.git] / server / files / templates / trunk.ejs
1 <% trunks.forEach(function(trunk) { -%>
2 <% if (trunk.active) { -%>
3 [<%- trunk.name %>]
4 <% for (var key in trunk) { -%>
5 <% if (trunk[key]) { -%>
6 <% switch(key) {
7 case 'allow': -%>
8 <% trunk[key].split(';').forEach(function(codec) { -%>
9 allow=<%- codec %>
10 <% }); -%>
11 <% break; -%>
12 <% case 'id':
13 case 'active':
14 case 'createdAt':
15 case 'updatedAt':
16 case 'registry':
17 case 'status':
18 case 'otherFields':
19 break; -%>
20 <% default: -%>
21 <%- key %>=<%- trunk[key] %>
22 <% } -%>
23 <% } -%>
24 <% } -%>
25 <% if (trunk.otherFields) { -%>
26 <%- trunk.otherFields %>
27 <% } -%>
28 <% } -%>
29
30 <% }); %>