Sha256: f6ac5ce8346166d88149738461846fb7cbd3e0ce669543866b2b4ed0d821a54d

Contents?: true

Size: 1.91 KB

Versions: 7

Compression:

Stored size: 1.91 KB

Contents

<div id='servers'>
  <div class='server-list'>
    <div class='list'>
      <div class='row'>
        <div class='col-md-6'>
          <h2><%= @description %> Servers</h2>
        </div>

        <div class='col-md-6'>
          <div class='col-sm-10'>
            <div class='server-collection-actions'>
              <ol>
                <div class='btn-group'>
                  <% Array(@actions).each do |action| %>
                    <% if can?(action, RocketJob::Server) %>
                      <%= link_to(
                              "#{action.to_s.humanize.capitalize}",
                              rocket_job_mission_control.update_all_servers_path(server_action: action),
                              method: :patch,
                              data:   {confirm: t(:confirm, scope: [:server, :update_all], action: action.to_s.singularize.humanize.downcase)},
                              class:  'btn btn-default'
                          ) %>
                    <% end %>
                  <% end %>
                </div>
              </ol>
            </div>
          </div>

          <div class='col-sm-2 pull-right'>
            <div class='btn btn-default pull-right dt-reload' data-behavior='reload'>
              <i class='fas fa-sync'></i>
            </div>
          </div>
        </div>
      </div>

      <table class='table datatable servers-datatable' data-source='<%= @data_table_url %>' style='width: 100%'>
        <thead>
          <tr>
            <th>Hostname : PID</th>
            <th>Workers (Current/Max)</th>
            <th>Started</th>
            <th>Heartbeat</th>
            <th>Actions</th>
          </tr>
        </thead>

        <tbody></tbody>
      </table>
    </div>
  </div>
</div>

<script>
  jQuery(function () {
    new RjmcDatatable(
      $('.servers-datatable'),
      [{data: '0'}, {data: '1'}, {data: '2'}, {data: '3'}, {data: '4', orderable: false}]
    );
  });
</script>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rocketjob_mission_control-6.0.2 app/views/rocket_job_mission_control/servers/index.html.erb
rocketjob_mission_control-6.0.1 app/views/rocket_job_mission_control/servers/index.html.erb
rocketjob_mission_control-6.0.0 app/views/rocket_job_mission_control/servers/index.html.erb
rocketjob_mission_control-6.0.0.beta app/views/rocket_job_mission_control/servers/index.html.erb
rocketjob_mission_control-5.0.1 app/views/rocket_job_mission_control/servers/index.html.erb
rocketjob_mission_control-5.0.0 app/views/rocket_job_mission_control/servers/index.html.erb
rocketjob_mission_control-5.0.0.beta1 app/views/rocket_job_mission_control/servers/index.html.erb