forked from sidekiq/sidekiq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45de5a4
commit 0a7e8ea
Showing
35 changed files
with
542 additions
and
390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<header> | ||
<h3><%= t('Job') %></h3> | ||
</header> | ||
|
||
<table class="table table-bordered table-striped"> | ||
<tbody> | ||
<tr> | ||
<th><%= t('Queue') %></th> | ||
<td> | ||
<a href="<%= root_path %>queues/<%= job['queue'] %>"><%= job['queue'] %></a> | ||
</td> | ||
</tr> | ||
<tr> | ||
<th><%= t('Class') %></th> | ||
<td> | ||
<code><%= job['class'] %></code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<th><%= t('Arguments') %></th> | ||
<td> | ||
<code> | ||
<!-- We don't want to truncate any job arguments when viewing a single job's status page --> | ||
<div class="args-extended"><%= display_args(job['args'], nil) %></div> | ||
</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<th>JID</th> | ||
<td> | ||
<code><%= job.jid %></code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<th><%= t('Enqueued') %></th> | ||
<td><%= relative_time(job.enqueued_at) %></td> | ||
</tr> | ||
<% unless retry_extra_items(job).empty? %> | ||
<tr> | ||
<th><%= t('Extras') %></th> | ||
<td> | ||
<code> | ||
<%= retry_extra_items(job).inspect %> | ||
</code> | ||
</td> | ||
</tr> | ||
<% end %> | ||
<% if type == :retry %> | ||
<% if job['retry_count'] && job['retry_count'] > 0 %> | ||
<tr> | ||
<th><%= t('RetryCount') %></th> | ||
<td><%= job['retry_count'] %></td> | ||
</tr> | ||
<tr> | ||
<th><%= t('LastRetry') %></th> | ||
<td><%= relative_time(job['retried_at'].is_a?(Numeric) ? Time.at(job['retried_at']) : Time.parse(job['retried_at'])) %></td> | ||
</tr> | ||
<% else %> | ||
<tr> | ||
<th><%= t('OriginallyFailed') %></th> | ||
<td><%= relative_time(job['failed_at'].is_a?(Numeric) ? Time.at(job['failed_at']) : Time.parse(job['failed_at'])) %></td> | ||
</tr> | ||
<% end %> | ||
<tr> | ||
<th><%= t('NextRetry') %></th> | ||
<td><%= relative_time(job.at) %></td> | ||
</tr> | ||
<% end %> | ||
<% if type == :scheduled %> | ||
<tr> | ||
<th><%= t('Scheduled') %></th> | ||
<td><%= relative_time(job.at) %></td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<div class="navbar-inner"> | ||
<div class="container"> | ||
<a class="brand" href="<%= root_path %>"><%= Sidekiq::NAME %></a> | ||
<ul class="nav"> | ||
<% tabs.each do |title, url| %> | ||
<% if url == '' %> | ||
<li class="<%= current_path == url ? 'active' : '' %>"> | ||
<a href="<%= root_path %><%= url %>"><%= t(title) %></a> | ||
</li> | ||
<% else %> | ||
<li class="<%= current_path.start_with?(url) ? 'active' : '' %>"> | ||
<a href="<%= root_path %><%= url %>"><%= t(title) %></a> | ||
</li> | ||
<% end %> | ||
<% end %> | ||
<% custom_tabs.each do |title, url| %> | ||
<li class="<%= current_path.start_with?(url) ? 'active' : '' %>"> | ||
<a href="<%= root_path %><%= url %>"><%= t(title) %></a> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<% if @total_size > @count %> | ||
<div class="pagination pagination-right"> | ||
<ul> | ||
<li class="<%= 'disabled' if @current_page == 1 %>"> | ||
<a href="<%= url %>?page=1">«</a> | ||
</li> | ||
<% if @current_page > 1 %> | ||
<li> | ||
<a href="<%= url %>?page=<%= @current_page - 1 %>"><%= @current_page - 1 %></a> | ||
</li> | ||
<% end %> | ||
<li class="disabled"> | ||
<a href="<%= url %>?page=<%= @current_page %>"><%= @current_page %></a> | ||
</li> | ||
<% if @total_size > @current_page * @count %> | ||
<li> | ||
<a href="<%= url %>?page=<%= @current_page + 1 %>"><%= @current_page + 1 %></a> | ||
</li> | ||
<% end %> | ||
<li class="<%= 'disabled' if @total_size <= @current_page * @count %>"> | ||
<a href="<%= url %>?page=<%= (@total_size.to_f / @count).ceil %>">»</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<% end %> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<span class="status"> | ||
<i class="status-sprite status-<%= current_status %>"></i> | ||
<% t(current_status) %> | ||
</span> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<ul class="unstyled summary row"> | ||
<li class="processed span2"> | ||
<span class="count"><%= number_with_delimiter(stats.processed) %></span> | ||
<span class="desc"><%= t('Processed') %></span> | ||
</li> | ||
<li class="failed span2"> | ||
<span class="count"><%= number_with_delimiter(stats.failed) %></span> | ||
<span class="desc"><%= t('Failed') %></span> | ||
</li> | ||
<li class="busy span2"> | ||
<span class="count"><%= number_with_delimiter(workers_size) %></span> | ||
<span class="desc"><%= t('Busy') %></span> | ||
</li> | ||
<li class="scheduled span2"> | ||
<span class="count"><%= number_with_delimiter(stats.scheduled_size) %></span> | ||
<span class="desc"><%= t('Scheduled') %></span> | ||
</li> | ||
<li class="retries span2"> | ||
<span class="count"><%= number_with_delimiter(stats.retry_size) %></span> | ||
<span class="desc"><%= t('Retries') %></span> | ||
</li> | ||
<li class="enqueued span2"> | ||
<span class="count"><%= number_with_delimiter(stats.enqueued) %></span> | ||
<span class="desc"><%= t('Enqueued') %></span> | ||
</li> | ||
</ul> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.