Sha256: 5cd4f49c3de068855530a9cfe23cd86222b621ac8981454817aba1346b4ed44d

Contents?: true

Size: 1.44 KB

Versions: 1

Compression:

Stored size: 1.44 KB

Contents

<% add_to_head do %>
  <link href="<%= root_path %>sidekiq-statistic.css" media="screen" rel="stylesheet" type="text/css" />
<% end %>

<script type="text/javascript" src="<%= root_path %>c3.js"></script>
<script type="text/javascript" src="<%= root_path %>realtime_statistic.js"></script>

<div class='statistic'>
  <h2><%= t('RealtimeStatistic') %></h2>

  <ul class="nav nav-tabs">
    <li><a href="<%= root_path %>statistic" class="statistic__tab"><%= t('Index') %></a></li>
    <li class="active"><a href="<%= root_path %>statistic/realtime" class="statistic__tab"><%= t('Realtime') %></a></li>
  </ul>

  <div class='statistic__container'>
    <div class="realtime">
      <h2><%= t('Failed') %></h2>
      <div class="realtime__failed-chart"></div>
      <h2><%= t('Passed') %></h2>
      <div class="realtime__passed-chart"></div>
    </div>

    <h2><%= t('Workers') %></h2>
    <table class="workers__table table table-hover table-bordered table-striped table-white">
      <thead>
        <tr>
          <th><%= t('Exclude') %></th>
          <th><%= t('Worker') %></th>
        </tr>
      </thead>
      <% @workers.each do |worker| %>
        <tr>
          <td class="worker">
            <input class="worker__checkbox" type="checkbox" name="<%= worker %>" value="<%= worker %>">
          </td>
          <td class="worker"><a href="<%= root_path %>statistic/<%= worker %>"><%= worker %></a></td>
        </tr>
      <% end %>
    </table>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-statistic-1.4.0 lib/sidekiq/statistic/views/realtime.erb