Add seperate 'no items' message for defaults

Closes #53
This commit is contained in:
cryptogopher 2025-01-03 18:47:12 +01:00
parent d250119601
commit b133b2be7c
2 changed files with 2 additions and 1 deletions

View File

@ -179,7 +179,7 @@ module ApplicationHelper
def render_no_items
tag.tr id: :no_items do
tag.td t("#{controller_name}.no_items"), colspan: 10, class: 'hint'
tag.td t("#{controller_path.tr('/', '.')}.no_items"), colspan: 10, class: 'hint'
end
end

View File

@ -75,6 +75,7 @@ en:
success: Deleted unit "%{unit}"
default:
units:
no_items: There are no importable defaults or exportable units.
unit:
delete: Delete
export: Export