Initial i18n localization

This commit is contained in:
2024-09-17 18:18:32 +02:00
parent 8bef03c2ce
commit 03b1158e7a
7 changed files with 25 additions and 19 deletions

View File

@@ -38,21 +38,13 @@
</td>
<% end %>
<td class="p-2 py-3 text-right">
<% if job.printing? %>
<%= link_to edit_operator_job_path(job), target: "_top" do %>
<span class="badge badge-hover">
<%= job.costum_qm_plan.round(2) %> m²
</span>
<% end %>
<% else %>
<span class="badge">
<%= job.costum_qm_plan.round(2) %> m²
</span>
<% end %>
<span class="badge">
<%= number_with_delimiter job.costum_qm_plan.round(2) %> m²
</span>
</td>
<td class="w-24 p-2 py-3 text-right">
<span class="badge">
<%= job.cost %>
<%= number_to_currency job.cost, locale: :de %>
</span>
</td>
<td class="p-2 py-3">

View File

@@ -40,12 +40,12 @@
</td>
<td class="p-2 py-3 text-right">
<span class="badge">
<%= job.costum_qm_plan.round(2) %> m²
<%= number_with_delimiter job.costum_qm_plan.round(2) %> m²
</span>
</td>
<td class="w-24 p-2 py-3 text-right">
<span class="badge">
<%= job.cost %>
<%= number_to_currency job.cost, locale: :de %>
</span>
</td>
<td class="p-2 py-3">

View File

@@ -52,18 +52,18 @@
<% if job.printing? %>
<%= link_to edit_operator_job_path(job) do %>
<span class="badge badge-hover">
<%= job.costum_qm_plan.round(2) %> m²
<%= number_with_delimiter job.costum_qm_plan.round(2) %> m²
</span>
<% end %>
<% else %>
<span class="badge">
<%= job.costum_qm_plan.round(2) %> m²
<%= number_with_delimiter job.costum_qm_plan.round(2) %> m²
</span>
<% end %>
</td>
<td class="w-24 p-2 py-3 text-right">
<span class="badge">
<%= job.cost %>
<%= number_to_currency job.cost, locale: :de %>
</span>
</td>
<td class="p-2 py-3">