From 25b573000b3f392be1977c4abf06f55deb4a12a8 Mon Sep 17 00:00:00 2001 From: Mario Burazer Date: Wed, 1 Sep 2021 12:57:15 +0200 Subject: [PATCH] Add icon link from auth to the caller app --- auth/assets/templates/inc_header.html.tpl | 1 + auth/handlers/links.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/auth/assets/templates/inc_header.html.tpl b/auth/assets/templates/inc_header.html.tpl index b53ca413c..0f03549f5 100644 --- a/auth/assets/templates/inc_header.html.tpl +++ b/auth/assets/templates/inc_header.html.tpl @@ -17,6 +17,7 @@ {{ if .user }}
+ {{ tr "inc_header.logged-in-as" }} {{ coalesce .user.Name .user.Handle .user.Email }} | diff --git a/auth/handlers/links.go b/auth/handlers/links.go index 6167e7137..423df5be9 100644 --- a/auth/handlers/links.go +++ b/auth/handlers/links.go @@ -39,6 +39,8 @@ type ( SamlMetadata, SamlLogout, + Base, + Assets string } ) @@ -82,6 +84,7 @@ func GetLinks() Links { SamlLogout: b + "auth/external/saml/slo", Assets: b + "auth/assets/public", + Base: b, } }