Add navigation item for file templates
This commit is contained in:
@ -8,7 +8,7 @@
|
|||||||
- if current_user.admin?
|
- if current_user.admin?
|
||||||
li = link_to(t('breadcrumbs.dashboard.show'), admin_dashboard_path)
|
li = link_to(t('breadcrumbs.dashboard.show'), admin_dashboard_path)
|
||||||
li.divider
|
li.divider
|
||||||
- models = [ExecutionEnvironment, Exercise, Consumer, CodeHarborLink, ExternalUser, FileType, InternalUser, Submission, Team].sort_by { |model| model.model_name.human(count: 2) }
|
- models = [ExecutionEnvironment, Exercise, Consumer, CodeHarborLink, ExternalUser, FileType, FileTemplate, InternalUser, Submission, Team].sort_by { |model| model.model_name.human(count: 2) }
|
||||||
- models.each do |model|
|
- models.each do |model|
|
||||||
- if policy(model).index?
|
- if policy(model).index?
|
||||||
li = link_to(model.model_name.human(count: 2), send(:"#{model.model_name.collection}_path"))
|
li = link_to(model.model_name.human(count: 2), send(:"#{model.model_name.collection}_path"))
|
||||||
|
@ -120,6 +120,9 @@ de:
|
|||||||
file:
|
file:
|
||||||
one: Datei
|
one: Datei
|
||||||
other: Dateien
|
other: Dateien
|
||||||
|
file_template:
|
||||||
|
one: Dateivorlage
|
||||||
|
other: Dateivorlagen
|
||||||
file_type:
|
file_type:
|
||||||
one: Dateityp
|
one: Dateityp
|
||||||
other: Dateitypen
|
other: Dateitypen
|
||||||
|
@ -120,6 +120,9 @@ en:
|
|||||||
file:
|
file:
|
||||||
one: File
|
one: File
|
||||||
other: Files
|
other: Files
|
||||||
|
file_template:
|
||||||
|
one: File Template
|
||||||
|
other: File Templates
|
||||||
file_type:
|
file_type:
|
||||||
one: File Type
|
one: File Type
|
||||||
other: File Types
|
other: File Types
|
||||||
|
Reference in New Issue
Block a user