Fix quotes and translations

This commit is contained in:
cryptogopher 2024-11-10 21:46:00 +01:00
parent 51011951f9
commit 9a02f0b0ae
3 changed files with 8 additions and 6 deletions

View File

@ -5,13 +5,13 @@
<td class="actions"> <td class="actions">
<% if current_user.at_least(:active) && unit.default? %> <% if current_user.at_least(:active) && unit.default? %>
<%= image_button_to t(".import"), "download-outline", import_default_unit_path(unit) %> <%= image_button_to t('.import'), 'download-outline', import_default_unit_path(unit) %>
<% end %> <% end %>
<% if current_user.at_least(:admin) %> <% if current_user.at_least(:admin) %>
<% if !unit.default? %> <% if !unit.default? %>
<%= image_button_to t(".export"), "upload-outline", export_default_unit_path(unit) %> <%= image_button_to t('.export'), 'upload-outline', export_default_unit_path(unit) %>
<% else %> <% else %>
<%= image_button_to t(".delete"), "delete-outline", unit_path(unit), <%= image_button_to t('.delete'), 'delete-outline', unit_path(unit),
method: :delete %> method: :delete %>
<% end %> <% end %>
<% end %> <% end %>

View File

@ -14,12 +14,12 @@
<% if current_user.at_least(:active) %> <% if current_user.at_least(:active) %>
<td class="actions"> <td class="actions">
<% if unit.base.nil? %> <% if unit.base.nil? %>
<%= image_link_to t(".add_subunit"), "plus-outline", new_unit_path(unit), <%= image_link_to t('.add_subunit'), 'plus-outline', new_unit_path(unit),
id: dom_id(unit, :add), onclick: 'this.blur();', id: dom_id(unit, :add), onclick: 'this.blur();',
data: {turbo_stream: true} %> data: {turbo_stream: true} %>
<% end %> <% end %>
<%= image_button_to t(".delete_unit"), "delete-outline", unit_path(unit), <%= image_button_to t('.delete_unit'), 'delete-outline', unit_path(unit),
method: :delete %> method: :delete %>
</td> </td>
<% if unit.movable? %> <% if unit.movable? %>

View File

@ -70,7 +70,9 @@ en:
default: default:
units: units:
unit: unit:
delete_default: Delete default delete: Delete
export: Export
import: Import
index: index:
import_all: Import all import_all: Import all
back: Back to units... back: Back to units...