-{% extends "base.html" %}
+{% extends "layout.html" %}
{% block content %}
<div class="row" id="home-dashboard">
{% endif %}
</td>
<td>
+ {% if person %}
<button id="slicerequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Create a Slice</button>
+ {% endif %}
</td>
<td class="support">
+ {% if person %}
<button id="validaterequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-ok"></span> Validate Requests</button>
+ {% endif %}
</td>
</tr>
</table>
{% if person %}
$.post("/rest/user/",{'filters':{'user_hrn':'$user_hrn'}}, function( data ) {
var items = [];
- $.each( data[0].slice, function( key, val ) {
- items.push( "<li><a href=\"/slice/"+val.slice_hrn+"\">" + val.slice_hrn + "</a></li>" );
+ $.each( data[0].slices, function(i, val) {
+ items.push( "<li><a href=\"/slice/"+val+"\">" + val + "</a></li>" );
});
$("div#home-slice-list").html($( "<ul/>", { html: items.join( "" ) }));