Sha256: 03925057414fea8676cfc6d3e6ff9ec00d9aae046c8d84e2df750d3f853bc94d

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

<%= view('partials/header.html') %>  
<head>
  <title>
      Adminix Jobs
  </title>
</head>

<body>
  <div class="content-wrapper">
    <div class="container-fluid">
      <div class= "panel panel-default">
        <div class="panel-heading">
            <h2>Job</h2>
        </div>
        <div class ="panel-body">
            <div class="table-responsive">
                <table  class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
                    <tr>
                        <th>ID</th>
                        <th>Status</th>
                        <th>Output</th>
                    </tr>
                    <% Adminix.watcher.service.jobs.each do |job| %>
                    <tr>
                        <td><%=job.id%></td>
                        <td><%=job.status%></td>
                        <td><%=job.output%></td>
                    </tr>
                    <% end %>
                </table>
            </div>
             <div class="row">
            <div class="col-sm-1 col-sm-offset-5">
                <a class="<%= @page == 1 ? "btn btn-primary btn-block disabled" : "btn btn-primary btn-block active" %>" role="button" aria-pressed="true" href="<%="job?page=#{@page-1}&per_page=#{@per_page}"%>">Previous </a> 
            </div>    
            <div class="col-sm-1">
              <a  class="<%= (@page * @per_page) >= (Adminix.watcher.service.jobs.count) ? "btn btn-primary btn-block disabled" : "btn btn-primary btn-block active" %>" role="button" aria-pressed="true" href="<%= "job?page=#{@page+1}&per_page=#{@per_page}" %>">Next 
              </a>
            </div>   
          </div>  
        </div>
      </div>
    </div>
  </div>
</body>   
<%= view('partials/footer.html') %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adminix-0.2 app/views/web/job.html.erb