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">
<% 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 %>
<% if current_user.at_least(:admin) %>
<% 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 %>
<%= image_button_to t(".delete"), "delete-outline", unit_path(unit),
<%= image_button_to t('.delete'), 'delete-outline', unit_path(unit),
method: :delete %>
<% end %>
<% end %>

View File

@ -14,12 +14,12 @@
<% if current_user.at_least(:active) %>
<td class="actions">
<% 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();',
data: {turbo_stream: true} %>
<% 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 %>
</td>
<% if unit.movable? %>

View File

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