Skip to content

Commit

Permalink
Fixes #35523 - translate all table titles
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga authored and adamruzicka committed Nov 2, 2022
1 parent 0b70f3f commit 2f58d09
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
20 changes: 10 additions & 10 deletions app/views/foreman_tasks/recurring_logics/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@
<table class="<%= table_css_classes('table-condensed table-fixed') %>">
<thead>
<th class="col-md-1"><%= N_("ID") %></th>
<th><%= N_("Cron line") %></th>
<th><%= N_("Task count") %></th>
<th><%= N_("Action") %></th>
<th><%= N_("Last occurrence") %></th>
<th><%= N_("Next occurrence") %></th>
<th><%= N_("Current iteration") %></th>
<th><%= N_("Iteration limit") %></th>
<th><%= N_("Repeat until") %></th>
<th><%= N_("State") %></th>
<th><%= N_("Purpose") %></th>
<th><%= _("Cron line") %></th>
<th><%= _("Task count") %></th>
<th><%= _("Action") %></th>
<th><%= _("Last occurrence") %></th>
<th><%= _("Next occurrence") %></th>
<th><%= _("Current iteration") %></th>
<th><%= _("Iteration limit") %></th>
<th><%= _("Repeat until") %></th>
<th><%= _("State") %></th>
<th><%= _("Purpose") %></th>
<th/>
</thead>
<% @recurring_logics.each do |recurring_logic| %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/foreman_tasks/task_groups/_common.html.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<div>
<table class='<%= table_css_classes('table-condensed') %>'>
<tr>
<th><%= N_('ID') %></th>
<th><%= _('ID') %></th>
<td><%= link_to(task_group.id, foreman_tasks_task_group_url(task_group)) %></td>
</tr>
<tr>
<th><%= N_('Task count') %></th>
<th><%= _('Task count') %></th>
<td><%= link_to(task_group.tasks.count, foreman_tasks_tasks_url(:search => "task_group.id = #{task_group.id}")) %></td>
</tr>
</table>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
<% recurring_logic = task_group.recurring_logic -%>
<table class='<%= table_css_classes('table-condensed') %>'>
<tr>
<th>ID</th>
<th><%= _('ID') %></th>
<td><%= link_to(recurring_logic.id, recurring_logic) %></td>
</tr>
<tr>
<th><%= N_("Cron line") %></th>
<th><%= _("Cron line") %></th>
<td><%= recurring_logic.cron_line %></td>
</tr>
<tr>
<th><%= N_("Action") %></th>
<th><%= _("Action") %></th>
<td><%= format_task_input(recurring_logic.tasks.last) %></td>
</tr>
<tr>
<th><%= N_("Last occurrence") %></th>
<th><%= _("Last occurrence") %></th>
<td><%= recurring_logic.tasks.order(:started_at).where('started_at IS NOT NULL').last.try(:started_at) || '-' %></td>
</tr>
<tr>
<th><%= N_("Next occurrence") %></th>
<th><%= _("Next occurrence") %></th>
<td><%= recurring_logic_next_occurrence recurring_logic %></td>
</tr>
<tr>
<th><%= N_("Current iteration") %></th>
<th><%= _("Current iteration") %></th>
<td><%= recurring_logic.iteration %></td>
</tr>
<tr>
<th><%= N_("Iteration limit") %></th>
<th><%= _("Iteration limit") %></th>
<td><%= format_recurring_logic_limit recurring_logic.max_iteration %></td>
</tr>
<tr>
<th><%= N_("Repeat until") %></th>
<th><%= _("Repeat until") %></th>
<td><%= format_recurring_logic_limit recurring_logic.end_time.try(:in_time_zone) %></td>
</tr>
<tr>
<th><%= N_("State") %></th>
<th><%= _("State") %></th>
<td><%= recurring_logic_state(recurring_logic) %></td>
</tr>
<tr>
<th><%= N_("Purpose") %></th>
<th><%= _("Purpose") %></th>
<td><%= recurring_logic.purpose %></td>
</tr>
<tr>
<th><%= N_("Task count") %></th>
<th><%= _("Task count") %></th>
<td><%= link_to(task_group.tasks.count, foreman_tasks_tasks_url(:search => "task_group.id = #{task_group.id}")) %></td>
</tr>
</table>

0 comments on commit 2f58d09

Please sign in to comment.