diff --git a/html/template/svg/god.svg b/html/template/svg/god.svg new file mode 100644 index 00000000..431dbe29 --- /dev/null +++ b/html/template/svg/god.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/html/template/sync/component/sidebar.html b/html/template/sync/component/sidebar.html index 05c9c6a1..83d8d87b 100644 --- a/html/template/sync/component/sidebar.html +++ b/html/template/sync/component/sidebar.html @@ -143,6 +143,19 @@ Help + {{ if eq .Role "root" }} +
  • + + + Sudo + +
  • + {{ end }} {{ end }} diff --git a/scss/sidebar.scss b/scss/sidebar.scss index 086231aa..d8ef0daa 100644 --- a/scss/sidebar.scss +++ b/scss/sidebar.scss @@ -83,7 +83,10 @@ display: flex; justify-content: center; } - +.sidebar-menu .menu-icon svg { + width: 1em; + height: 1em; +} .sidebar-menu .menu-text { transition: opacity 0.3s; } diff --git a/sync/types.go b/sync/types.go index a17ea8e8..9ee2344d 100644 --- a/sync/types.go +++ b/sync/types.go @@ -85,5 +85,6 @@ type User struct { Initials string Notifications []notification.Notification Organization Organization + Role string Username string } diff --git a/sync/utils.go b/sync/utils.go index 11f71a63..d47e6f87 100644 --- a/sync/utils.go +++ b/sync/utils.go @@ -106,6 +106,7 @@ func contentForUser(ctx context.Context, user *models.User) (User, error) { Initials: extractInitials(user.DisplayName), Notifications: notifications, Organization: organization, + Role: user.Role.String(), Username: user.Username, }, nil