<% _.each(testplans, function(testplan){ %>
<div class='ui middle aligned item'>
  <div class="right floated content">
    <div class='ui stackable menu'>
      <a href="#/testplans/<%= testplan.get('id') %>/executions" class="item">Test Plan Executions</a>
    </div>
  </div>
  <div class="left floated content">
    <div class='ui vertical segment'>
      <%= testplan.get("name") %>
    </div>
  </div>
</div>
<% }); %>
<% if (testplans.length > 0 && collection.lastPage > 1) { %>
<div class="ui pagination menu">
<% if (collection.currentPage > 1) { %>
  <a class="item" rel="prev" href="/#/execution?page=<%= (collection.currentPage - 1) %>"><i class="chevron left icon"></i> Left</a>
<% } %>
<% for (var i = 1; i <= collection.lastPage; i++) { %>
<% if (collection.currentPage == i) { %>
  <a class="active item" href="/#/execution?page=<%= i %>"><%= i %></a>
<% } else { %>
  <a class="item" href="/#/execution?page=<%= i %>"><%= i %></a>
<% } %>
<% } %>
<% if (collection.currentPage < collection.lastPage) { %>
  <a class="item" rel="next" href="/#/execution?page=<%= (collection.currentPage + 1) %>">Next &nbsp;<i class="chevron right icon"></i></a>
<% } %>
</div>
<% } %>
<% _.each(testplans, function(testplan){ %>
<div class='ui middle aligned item'>
  <div class="right floated content">
    <div class='ui stackable menu'>
      <a href="#/testplans/<%= testplan.get('id') %>/testruns" class="item">Test Runs</a>
    </div>
  </div>
  <div class="left floated content">
    <div class='ui vertical segment'>
      <%= testplan.get("name") %>
    </div>
  </div>
</div>
<% }); %>
<% if (testplans.length > 0 && collection.lastPage > 1) { %>
<div class="ui pagination menu">
<% if (collection.currentPage > 1) { %>
  <a class="item" rel="prev" href="/#/execution?page=<%= (collection.currentPage - 1) %>"><i class="chevron left icon"></i> Left</a>
<% } %>
<% for (var i = 1; i <= collection.lastPage; i++) { %>
<% if (collection.currentPage == i) { %>
  <a class="active item" href="/#/execution?page=<%= i %>"><%= i %></a>
<% } else { %>
  <a class="item" href="/#/execution?page=<%= i %>"><%= i %></a>
<% } %>
<% } %>
<% if (collection.currentPage < collection.lastPage) { %>
  <a class="item" rel="next" href="/#/execution?page=<%= (collection.currentPage + 1) %>">Next &nbsp;<i class="chevron right icon"></i></a>
<% } %>
</div>
<% } %>
Use Test Runs instead of Execute Test Plans (makes more sense)
Use Test Runs instead of Execute Test Plans (makes more sense)
