--- /dev/null
+<p>xoslib demo views</p>
+
+<table>
+<tr><td><a href="/dashboard/xosDeveloper/">xosDeveloper</a></td>
+<td>Demonstrates using xoslib + marionette to render a list of slices</td>
+</tr>
+
+<tr><td><a href="/dashboard/xosDeveloper_datatables/">xosDeveloper_datatables</a></td>
+<td>Demonstrates using xoslib + datatables to render a list of slices</td>
+</tr>
+
+<tr><td><a href="/dashboard/sliceEditor/">sliceEditor</a></td>
+<td>Demonstrates how to commit data back to the data model using xoslib</td>
+</tr>
+</table>
<script src="{{ STATIC_URL }}/js/xoslib/xos-backbone.js"></script>
<script src="{{ STATIC_URL }}/js/xosDeveloper_datatables.js"></script>
-<div id="developerView">
+<div id="developerView">Loading...
</div>
<script type="text/template" id="developer-slicedetail-template">
row = data.models[rowkey];
slicename = row.get("name");
sliceid = row.get("id");
- role = row.get("sliceInfo").roles[0] || "";
+ role = row.get("sliceInfo").roles[0];
slivercount = row.get("sliceInfo").sliverCount;
sitecount = row.get("sliceInfo").siteCount;
+
+ if (! role) {
+ continue;
+ }
+
actualEntries.push(['<a href="/admin/core/slice/' + sliceid + '">' + slicename + '</a>',
role, slivercount, sitecount]);
}