Add icon link from auth to the caller app

This commit is contained in:
Mario Burazer
2021-09-02 14:19:20 +02:00
parent 41bd123a42
commit 25b573000b
2 changed files with 4 additions and 0 deletions
@@ -17,6 +17,7 @@
<body style="background: url({{ links.Assets }}/background.jpeg) no-repeat top;background-size: cover;background-attachment: fixed;">
{{ if .user }}
<div class="position-absolute user text-white m-2">
<a class="font-weight-bold text-white" href="{{ links.Base }}"><i class="bi bi-grid-3x2-gap-fill text-white mr-1 align-middle" style="font-size: 1.4rem;"></i></a>
{{ tr "inc_header.logged-in-as" }}
<a class="font-weight-bold text-white" href="{{ links.Profile }}">{{ coalesce .user.Name .user.Handle .user.Email }}</a>
|
+3
View File
@@ -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,
}
}