summaryrefslogtreecommitdiff
path: root/app/views/admin/identities
diff options
context:
space:
mode:
authorRobin Naundorf <r.naundorf@fh-muenster.de>2018-06-09 08:45:05 +0200
committerRobin Naundorf <r.naundorf@fh-muenster.de>2018-07-17 19:50:01 +0200
commit2d5c8a59d3e605ef03ac5cb068957c999bb00f86 (patch)
tree205a1e0c9778ee9f75414d06f71f5adf9e41d64d /app/views/admin/identities
parent923172c93310d2761ec1b64d181644a1a9e45ed6 (diff)
downloadgitlab-ce-2d5c8a59d3e605ef03ac5cb068957c999bb00f86.tar.gz
Fix broken breadcrumb in admin/user
* Fix broken breadcrumb when switching tabs in admin/user Closes #47419
Diffstat (limited to 'app/views/admin/identities')
-rw-r--r--app/views/admin/identities/edit.html.haml3
-rw-r--r--app/views/admin/identities/index.html.haml2
-rw-r--r--app/views/admin/identities/new.html.haml3
3 files changed, 8 insertions, 0 deletions
diff --git a/app/views/admin/identities/edit.html.haml b/app/views/admin/identities/edit.html.haml
index 1ad6ce969cb..fa09138c502 100644
--- a/app/views/admin/identities/edit.html.haml
+++ b/app/views/admin/identities/edit.html.haml
@@ -1,3 +1,6 @@
+- add_to_breadcrumbs "Users", admin_users_path
+- add_to_breadcrumbs @user.name, admin_user_identities_path(@user)
+- breadcrumb_title "Edit Identity"
- page_title _("Edit"), @identity.provider, _("Identities"), @user.name, _("Users")
%h3.page-title
= _('Edit identity for %{user_name}') % { user_name: @user.name }
diff --git a/app/views/admin/identities/index.html.haml b/app/views/admin/identities/index.html.haml
index 59373ee6752..df3df159947 100644
--- a/app/views/admin/identities/index.html.haml
+++ b/app/views/admin/identities/index.html.haml
@@ -1,3 +1,5 @@
+- add_to_breadcrumbs "Users", admin_users_path
+- breadcrumb_title @user.name
- page_title _("Identities"), @user.name, _("Users")
= render 'admin/users/head'
diff --git a/app/views/admin/identities/new.html.haml b/app/views/admin/identities/new.html.haml
index ee743b0fd3c..c28d22625b5 100644
--- a/app/views/admin/identities/new.html.haml
+++ b/app/views/admin/identities/new.html.haml
@@ -1,3 +1,6 @@
+- add_to_breadcrumbs "Users", admin_users_path
+- add_to_breadcrumbs @user.name, admin_user_identities_path(@user)
+- breadcrumb_title "New Identity"
- page_title _("New Identity")
%h3.page-title= _('New identity')
%hr