Refactor type/format labels to enable translations
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
]}>
|
||||
<div :for={{format, count} <- @collection_count_by_format} class="px-2 py-5 sm:px-4">
|
||||
<dt class="text-sm font-medium text-zinc-500 dark:text-zinc-400 text-center max-sm:text-xs break-keep">
|
||||
{Record.format_long_label(format)}
|
||||
{format_label(format)}
|
||||
</dt>
|
||||
<dd class="mt-1 text-center">
|
||||
<.link
|
||||
@@ -54,7 +54,7 @@
|
||||
]}>
|
||||
<div :for={{type, count} <- @collection_count_by_type} class="px-2 py-5 sm:px-4">
|
||||
<dt class="text-sm font-medium text-zinc-500 dark:text-zinc-400 text-center max-sm:text-xs break-keep">
|
||||
{Record.type_long_label(type)}
|
||||
{type_label(type)}
|
||||
</dt>
|
||||
<dd class="mt-1 text-center">
|
||||
<.link
|
||||
@@ -202,7 +202,7 @@
|
||||
)
|
||||
}
|
||||
>
|
||||
{Records.Record.format_long_label(format)}
|
||||
{format_label(format)}
|
||||
</.link>
|
||||
</.focus_wrap>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user