diff --git a/app/views/application/_breadcrumbs.html.slim b/app/views/application/_breadcrumbs.html.slim index a0080ff3..b62104cf 100644 --- a/app/views/application/_breadcrumbs.html.slim +++ b/app/views/application/_breadcrumbs.html.slim @@ -16,4 +16,4 @@ - else = t("#{controller_name}.index.#{params[:action]}") - else - li.active = t("breadcrumbs.#{params[:action]}") + li.active = t("breadcrumbs.#{controller_name}.#{params[:action]}") diff --git a/app/views/application/welcome.html.slim b/app/views/application/welcome.html.slim index 06bf33ff..d902d140 100644 --- a/app/views/application/welcome.html.slim +++ b/app/views/application/welcome.html.slim @@ -1,3 +1,3 @@ -h1 = t('breadcrumbs.welcome') +h1 = t('breadcrumbs.application.welcome') p = Forgery(:lorem_ipsum).words(100) diff --git a/config/locales/de.yml b/config/locales/de.yml index 708767cc..a2d9dadc 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -126,8 +126,10 @@ de: application: not_authorized: Sie Sind nicht berechtigt, diese Aktion auszuführen. breadcrumbs: - destroy_through_lti: Code-Abgabe - welcome: Startseite + application: + welcome: Startseite + sessions: + destroy_through_lti: Code-Abgabe consumers: show: link: Konsument diff --git a/config/locales/en.yml b/config/locales/en.yml index 37b49018..7586a178 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -126,8 +126,10 @@ en: application: not_authorized: You are not authorized to perform this action. breadcrumbs: - destroy_through_lti: Code Submission - welcome: Cover Page + application: + welcome: Cover Page + sessions: + destroy_through_lti: Code Submission consumers: show: link: Consumer