resusage-list.html 1.11 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
<div id='resusage-modal-<%- uuid %>' class='modal fade'>
  <div class='modal-dialog'>
    <div class='modal-content'>
      <div class='modal-body'>
        <button type='button' class='close' data-dismiss='modal'
                aria-hidden='true'>&times;</button>
	<center>
	  <h5>Recent/Current usage in project <%- project %> for
	    node type <%- type %></h5>
	</center>
	<div>
	  <table class='table table-condensed'>
	    <thead>
	      <tr>
		<th>Name</th>
		<th>Start</th>
		<th style="min-width: 100px;">End</th>
		<th>Count</th>
	      </tr>
	    </thead>
	    <tbody>
	      <% _.each(history, function(value, uuid) { %>
		<tr>
		  <td>
		    <% if (_.has(value, "instance_uuid")) { %>
		      <a target="_blank"
			 href='status.php?uuid=<%- value.instance_uuid %>'>
			<%- value.eid %></a>
		    <% } else { %>
		      <%= value.eid %>
		    <% } %>
		  </td>
		  <td class="format-date">
		    <%- value.start %></td>
		  <td class="format-date">
		    <%- value.end %></td>
		  <td><%- value.types[type].count %></td>
		</tr>
	      <% }); %>
	    </tbody>
	  </table>
	</div>
      </div>
    </div>
  </div>
</div>