profile-activity.html 1.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
<div class='row'>
  <div class='col-lg-12 col-lg-offset-0
              col-md-12 col-md-offset-0
              col-sm-12 col-sm-offset-0
              col-xs-12 col-xs-offset-0'>
    <table class='table table-striped table-condensed'>
      <thead>
	<tr>
	  <th>Vers</th>
	  <th>Creator</th>
	  <th>Created</th>
	  <th>Destroyed</th>
13
	  <th>Clusters</th>
14
	  <th>Error</th>
15
	  <% if (window.ISADMIN) { %>
16
	    <th>View</th>
17
	  <% } %>
18 19 20 21 22 23 24 25 26 27 28
	</tr>
      </thead>
      <tbody>
	<% _.each(instances, function(instance) { %>
	<tr>
	  <td>
	    <a href='manage_profile.php?action=edit&uuid=<%- instance.p_uuid %>'>
	      <%- instance.p_version %></a>
	  </td>
	  <td><%- instance.creator %></td>
	  <td><%- instance.created %></td>
29
	  <td><%- instance.destroyed %></td>
30
	  <td><%- instance.clusters %></td>
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
	  <td class="text-danger">
	    <% if (_.has(instance, "iserror")) { %>
	      <% if (_.has(instance, "error_message")) { %>
		<span style="text-decoration: underline;"
		      data-toggle='popover'
		      data-delay='{"hide":100, "show":500}'
		      data-html='true'
		      data-uuid="<%- instance.uuid %>"
		      data-content="<code style='white-space: pre-wrap'><%- instance.error_message %></code>"
		><%- instance.error_reason %></span>
	      <% } else { %>
		<%- instance.error_reason %>
	      <% } %>
	    <% } %>
	  </td>
46 47 48 49 50 51 52 53 54
	  <td>
	    <% if (instance.active) { %>
	      <a href='status.php?uuid=<%- instance.uuid %>' target="_blank">
		<span class="glyphicon glyphicon-eye-open"></span></a>
	    <% } else { %>
	      <a href='memlane.php?uuid=<%- instance.uuid %>' target="_blank">
		<span class="glyphicon glyphicon-eye-open"></span></a>
	    <% } %>
	  </td>
55
	</tr>
56
	<% }); %>
57 58 59 60 61 62
      </tbody>
    </table>
  </div>
</div>