app/views/good_job/processes/index.html.erb in good_job-3.14.2 vs app/views/good_job/processes/index.html.erb in good_job-3.15.0
- old
+ new
@@ -1,24 +1,24 @@
<div class="border-bottom">
- <h2 class="pt-3 pb-2">Processes</h2>
+ <h2 class="pt-3 pb-2"><%= t ".title" %></h2>
</div>
<div class="card my-3" data-live-poll-region="processes">
<div class="list-group list-group-flush text-nowrap" role="table">
<header class="list-group-item bg-light">
<div class="row small text-muted text-uppercase align-items-center">
- <div class="col">Process</div>
- <div class="col">Schedulers</div>
+ <div class="col"><%= t ".process" %></div>
+ <div class="col"><%= t ".schedulers" %></div>
<div class="col-2 d-flex gap-2">
- <span>Started</span>
+ <span><%= t ".started" %></span>
</div>
<div class="col-auto">
<%= tag.button type: "button", class: "btn btn-sm text-muted ms-auto", role: "button",
data: { bs_toggle: "collapse", bs_target: ".process-state" },
aria: { expanded: false, controls: @processes.map { |process| "##{dom_id(process, 'state')}" }.join(" ") } do %>
<%= render_icon "info" %>
- <span class="visually-hidden">Inspect</span>
+ <span class="visually-hidden"><%= t "good_job.actions.inspect" %></span>
<% end %>
</div>
</div>
</header>
<% @processes.each do |process| %>
@@ -42,25 +42,25 @@
<% end %>
</div>
<div class="col-2 small"><%= relative_time(process.created_at) %></div>
<div class="col-auto">
<%= tag.button type: "button", class: "btn btn-sm text-muted ms-auto", role: "button",
- title: "Inspect",
+ title: t("good_job.actions.inspect"),
data: { bs_toggle: "collapse", bs_target: "##{dom_id(process, 'state')}" },
aria: { expanded: false, controls: dom_id(process, "state") } do %>
<%= render_icon "info" %>
- <span class="visually-hidden">Inspect</span>
+ <span class="visually-hidden"><%= t "good_job.actions.inspect" %></span>
<% end %>
</div>
</div>
</div>
<%= tag.div id: dom_id(process, "state"), class: "process-state list-group-item collapse small bg-dark text-light" do %>
<%= tag.pre JSON.pretty_generate(process.state) %>
<% end %>
<% end %>
<% if @processes.empty? %>
<div class="list-group-item py-4 text-center text-muted">
- No GoodJob processes found.
+ <%= t ".no_good_job_processes_found" %>
</div>
<% end %>
</div>
</div>