Add navigation item for file templates

This commit is contained in:
Maximilian Grundke
2016-06-10 18:15:37 +02:00
parent 8d030e42e9
commit 7ef401f75a
3 changed files with 7 additions and 1 deletions

View File

@ -8,7 +8,7 @@
- if current_user.admin?
li = link_to(t('breadcrumbs.dashboard.show'), admin_dashboard_path)
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|
- if policy(model).index?
li = link_to(model.model_name.human(count: 2), send(:"#{model.model_name.collection}_path"))

View File

@ -120,6 +120,9 @@ de:
file:
one: Datei
other: Dateien
file_template:
one: Dateivorlage
other: Dateivorlagen
file_type:
one: Dateityp
other: Dateitypen

View File

@ -120,6 +120,9 @@ en:
file:
one: File
other: Files
file_template:
one: File Template
other: File Templates
file_type:
one: File Type
other: File Types