forked from fixin.me/fixin.me
Fix quotes and translations
This commit is contained in:
parent
51011951f9
commit
9a02f0b0ae
@ -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 %>
|
||||
|
@ -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? %>
|
||||
|
@ -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...
|
||||
|
Loading…
x
Reference in New Issue
Block a user