sidekiq_adhoc_job 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sidekiq_adhoc_job/version.rb +1 -1
- data/lib/sidekiq_adhoc_job/web/job_presenter.rb +1 -1
- data/lib/sidekiq_adhoc_job/web/locales/en.yml +1 -2
- data/lib/sidekiq_adhoc_job/web/templates/jobs/index.html.erb +2 -4
- data/lib/sidekiq_adhoc_job/web/templates/jobs/show.html.erb +1 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d343fd5493049cf0f38225bfde6a3d5329e1bf9aa97d9c57a78b2896cd615ad1
|
4
|
+
data.tar.gz: 3e5b08a0e5a81ab52070158ec10e64c6f92a34726244d356a096259981a0d62d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0b0a21ab330712ab59a2c0a356f5ca6c1c31ff9a704b9c08ab3b5ced2f22d11deee0a831c4e1bac51592e9420f74cbfea18aa4bab5f184e44e51f9e36c17d2a
|
7
|
+
data.tar.gz: c37d32257e371b2cf4851733ee3f9f32a31d495e372801411c6c491aae2ce482f654e409561e8300dfa602d63d01506b6962a4e6201fcd817d8bb18fbd360964
|
@@ -4,7 +4,7 @@ module SidekiqAdhocJob
|
|
4
4
|
class JobPresenter
|
5
5
|
include Sidekiq::WebHelpers
|
6
6
|
|
7
|
-
attr_reader :name, :path_name, :queue, :
|
7
|
+
attr_reader :name, :path_name, :queue, :has_rest_args, :args
|
8
8
|
|
9
9
|
StringUtil ||= ::SidekiqAdhocJob::Utils::String
|
10
10
|
|
@@ -1,11 +1,10 @@
|
|
1
1
|
en:
|
2
2
|
adhoc_jobs: Adhoc Jobs
|
3
3
|
adhoc_jobs_actions: Actions
|
4
|
+
adhoc_jobs_arguments: Required Arguments
|
4
5
|
adhoc_jobs_go_back: Go Back
|
5
6
|
adhoc_jobs_has_rest_arguments: Has Rest Arguments
|
6
7
|
adhoc_jobs_name: Job Name
|
7
|
-
adhoc_jobs_optional_arguments: Optional Arguments
|
8
8
|
adhoc_jobs_queue: Job Queue
|
9
|
-
adhoc_jobs_required_arguments: Required Arguments
|
10
9
|
adhoc_jobs_run_job: Run Job
|
11
10
|
adhoc_jobs_view_job: View Job
|
@@ -6,8 +6,7 @@
|
|
6
6
|
<tr>
|
7
7
|
<th><%= t('adhoc_jobs_name') %></th>
|
8
8
|
<th><%= t('adhoc_jobs_queue') %></th>
|
9
|
-
<th><%= t('
|
10
|
-
<th><%= t('adhoc_jobs_optional_arguments') %></th>
|
9
|
+
<th><%= t('adhoc_jobs_arguments') %></th>
|
11
10
|
<th><%= t('adhoc_jobs_has_rest_arguments') %></th>
|
12
11
|
<th><%= t('adhoc_jobs_actions') %></th>
|
13
12
|
</tr>
|
@@ -18,8 +17,7 @@
|
|
18
17
|
<tr>
|
19
18
|
<td><%= job.name %></td>
|
20
19
|
<td><%= job.queue %></td>
|
21
|
-
<td><%= job.
|
22
|
-
<td><%= job.optional_args.join(', ') %></td>
|
20
|
+
<td><%= job.args.join(', ') %></td>
|
23
21
|
<td><%= job.has_rest_args %></td>
|
24
22
|
<td class="text-center">
|
25
23
|
<a class="btn btn-warn btn-xs" href="<%= root_path %>adhoc-jobs/<%= URI.escape(job.path_name) %>">
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<% if @presented_job.args.empty? && !@presented_job.has_rest_args %>
|
6
6
|
<p>No job arguments</p>
|
7
7
|
<% else %>
|
8
|
-
<% @presented_job.
|
8
|
+
<% @presented_job.args.each do |arg| %>
|
9
9
|
<div class="form-group row">
|
10
10
|
<label class="col-sm-2 col-form-label" for="<%= arg %>">*<%= arg %>:</label>
|
11
11
|
<div class="col-sm-4">
|
@@ -13,14 +13,6 @@
|
|
13
13
|
</div>
|
14
14
|
</div>
|
15
15
|
<% end %>
|
16
|
-
<% @presented_job.optional_args.each do |arg| %>
|
17
|
-
<div class="form-group row">
|
18
|
-
<label class="col-sm-2 col-form-label" for="<%= arg %>"><%= arg %>:</label>
|
19
|
-
<div class="col-sm-4">
|
20
|
-
<input class="form-control" type="text" name="<%= arg %>" id="<%= arg %>"/>
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
<% end %>
|
24
16
|
<% if @presented_job.has_rest_args %>
|
25
17
|
<div class="form-group row">
|
26
18
|
<label class="col-sm-2 col-form-label" for="rest_args">*Rest arguments (please separate each argument by comma):</label>
|