app/views/good_job/jobs/show.html.erb in good_job-3.14.2 vs app/views/good_job/jobs/show.html.erb in good_job-3.15.0
- old
+ new
@@ -1,66 +1,66 @@
<div class="border-bottom py-2 mb-3">
<div class="pt-2">
<nav aria-label="breadcrumb">
<ol class="breadcrumb small mb-0">
- <li class="breadcrumb-item"><%= link_to "Jobs", jobs_path %></li>
+ <li class="breadcrumb-item"><%= link_to t(".jobs"), jobs_path %></li>
<li class="breadcrumb-item active" aria-current="page"><%= tag.code @job.id, class: "text-muted" %></li>
</ol>
</nav>
<div class="row align-items-center">
<div class="col-md-5">
<h2 class="mb-2 mb-md-0"><%= tag.code @job.job_class %></h2>
</div>
<div class="col-6 col-md-2">
- <div class="small text-muted text-uppercase">Queue</div>
+ <div class="small text-muted text-uppercase"><%= t "good_job.models.job.queue" %></div>
<div class="badge bg-primary bg-opacity-25 text-dark font-monospace my-2">
<%= tag.strong @job.queue_name %>
</div>
</div>
<div class="col-6 col-md-2">
- <div class="small text-muted text-uppercase">Priority</div>
+ <div class="small text-muted text-uppercase"><%= t "good_job.models.job.priority" %></div>
<div class="font-monospace fw-bold small my-2"><%= tag.strong @job.priority %></div>
</div>
<div class="col text-end">
<% if @job.status.in? [:scheduled, :retried, :queued] %>
<%= button_to reschedule_job_path(@job.id), method: :put,
class: "btn btn-sm btn-outline-primary",
form_class: "d-inline-block",
- aria: { label: "Reschedule job" },
- title: "Reschedule job",
- data: { confirm: "Confirm reschedule" } do %>
+ aria: { label: t("good_job.jobs.actions.reschedule") },
+ title: t("good_job.jobs.actions.reschedule"),
+ data: { confirm: t("good_job.jobs.actions.confirm_reschedule") } do %>
<%= render_icon "skip_forward" %>
- Reschedule
+ <%= t "good_job.actions.reschedule" %>
<% end %>
<% end %>
<% if @job.status.in? [:scheduled, :retried, :queued] %>
- <%= button_to discard_job_path(@job.id), method: :put, class: "btn btn-sm btn-outline-primary", form_class: "d-inline-block", aria: { label: "Discard job" }, title: "Discard job", data: { confirm: "Confirm discard" } do %>
+ <%= button_to discard_job_path(@job.id), method: :put, class: "btn btn-sm btn-outline-primary", form_class: "d-inline-block", aria: { label: t("good_job.jobs.actions.discard") }, title: t("good_job.jobs.actions.discard"), data: { confirm: t("good_job.jobs.actions.confirm_discard") } do %>
<%= render_icon "stop" %>
- Discard
+ <%= t "good_job.actions.discard" %>
<% end %>
<% end %>
<% if @job.status == :discarded %>
- <%= button_to retry_job_path(@job.id), method: :put, class: "btn btn-sm btn-outline-primary", form_class: "d-inline-block", aria: { label: "Retry job" }, title: "Retry job", data: { confirm: "Confirm retry" } do %>
+ <%= button_to retry_job_path(@job.id), method: :put, class: "btn btn-sm btn-outline-primary", form_class: "d-inline-block", aria: { label: t("good_job.jobs.actions.retry") }, title: t("good_job.jobs.actions.retry"), data: { confirm: t("good_job.jobs.actions.confirm_retry") } do %>
<%= render_icon "arrow_clockwise" %>
- Retry
+ <%= t "good_job.actions.retry" %>
<% end %>
<% end %>
<% if @job.status.in? [:discarded, :succeeded] %>
- <%= button_to job_path(@job.id), method: :delete, class: "btn btn-sm btn-outline-primary", form_class: "d-inline-block", aria: { label: "Destroy job" }, title: "Destroy job", data: { confirm: "Confirm destroy" } do %>
+ <%= button_to job_path(@job.id), method: :delete, class: "btn btn-sm btn-outline-primary", form_class: "d-inline-block", aria: { label: t("good_job.jobs.actions.destroy") }, title: t("good_job.jobs.actions.destroy"), data: { confirm: t("good_job.jobs.actions.confirm_destroy") } do %>
<%= render_icon "trash" %>
- Destroy
+ <%= t "good_job.actions.destroy" %>
<% end %>
<% end %>
</div>
</div>
</div>
</div>
<div class="my-4">
- <h5>Arguments</h5>
+ <h5><%= t "good_job.models.job.arguments" %></h5>
<%= tag.pre @job.serialized_params["arguments"].map(&:inspect).join(', '), class: 'text-wrap text-break' %>
</div>
<%= render 'executions', executions: @job.executions.includes_advisory_locks.reverse %>