web/admin: show changelog on user info page

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-11-19 23:54:56 +01:00
parent 431ba6b4ef
commit 0ee9b07172
4 changed files with 27 additions and 19 deletions

View File

@ -2284,6 +2284,7 @@ msgid "If your authentik_host setting does not match the URL you want to login w
msgstr "If your authentik_host setting does not match the URL you want to login with, add this setting." msgstr "If your authentik_host setting does not match the URL you want to login with, add this setting."
#: src/pages/users/UserListPage.ts #: src/pages/users/UserListPage.ts
#: src/pages/users/UserViewPage.ts
msgid "Impersonate" msgid "Impersonate"
msgstr "Impersonate" msgstr "Impersonate"

View File

@ -2267,6 +2267,7 @@ msgid "If your authentik_host setting does not match the URL you want to login w
msgstr "Ajouter cette option si le paramètre authentik_host ne correspond pas à l'URL sur laquelle vous voulez ouvrir une session." msgstr "Ajouter cette option si le paramètre authentik_host ne correspond pas à l'URL sur laquelle vous voulez ouvrir une session."
#: src/pages/users/UserListPage.ts #: src/pages/users/UserListPage.ts
#: src/pages/users/UserViewPage.ts
msgid "Impersonate" msgid "Impersonate"
msgstr "Se faire passer pour" msgstr "Se faire passer pour"

View File

@ -2276,6 +2276,7 @@ msgid "If your authentik_host setting does not match the URL you want to login w
msgstr "" msgstr ""
#: src/pages/users/UserListPage.ts #: src/pages/users/UserListPage.ts
#: src/pages/users/UserViewPage.ts
msgid "Impersonate" msgid "Impersonate"
msgstr "" msgstr ""

View File

@ -100,11 +100,11 @@ export class UserViewPage extends LitElement {
> >
<div class="pf-l-grid pf-m-gutter"> <div class="pf-l-grid pf-m-gutter">
<div <div
class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-2-col-on-xl pf-m-2-col-on-2xl" class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-3-col-on-xl pf-m-3-col-on-2xl"
> >
<div class="pf-c-card__title">${t`User Info`}</div> <div class="pf-c-card__title">${t`User Info`}</div>
<div class="pf-c-card__body"> <div class="pf-c-card__body">
<dl class="pf-c-description-list"> <dl class="pf-c-description-list pf-m-2-col">
<div class="pf-c-description-list__group"> <div class="pf-c-description-list__group">
<dt class="pf-c-description-list__term"> <dt class="pf-c-description-list__term">
<span class="pf-c-description-list__text" <span class="pf-c-description-list__text"
@ -241,15 +241,36 @@ export class UserViewPage extends LitElement {
${t`Reset Password`} ${t`Reset Password`}
</ak-action-button> </ak-action-button>
</div> </div>
<div class="pf-c-card__footer">
<a
class="pf-c-button pf-m-tertiary"
href="${`/-/impersonation/${this.user.pk}/`}"
>
${t`Impersonate`}
</a>
</div>
</div> </div>
<div <div
class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-10-col-on-xl pf-m-10-col-on-2xl" class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-9-col-on-xl pf-m-9-col-on-2xl"
> >
<div class="pf-c-card__title">${t`Actions over the last 24 hours`}</div> <div class="pf-c-card__title">${t`Actions over the last 24 hours`}</div>
<div class="pf-c-card__body"> <div class="pf-c-card__body">
<ak-charts-user userId=${this.user.pk || 0}> </ak-charts-user> <ak-charts-user userId=${this.user.pk || 0}> </ak-charts-user>
</div> </div>
</div> </div>
<div
class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-12-col-on-xl pf-m-12-col-on-2xl"
>
<div class="pf-c-card__title">${t`Changelog`}</div>
<div class="pf-c-card__body">
<ak-object-changelog
targetModelPk=${this.user.pk}
targetModelApp="authentik_core"
targetModelName="user"
>
</ak-object-changelog>
</div>
</div>
</div> </div>
</section> </section>
<section <section
@ -275,22 +296,6 @@ export class UserViewPage extends LitElement {
</div> </div>
</div> </div>
</section> </section>
<section
slot="page-changelog"
data-tab-title="${t`Changelog`}"
class="pf-c-page__main-section pf-m-no-padding-mobile"
>
<div class="pf-c-card">
<div class="pf-c-card__body">
<ak-object-changelog
targetModelPk=${this.user.pk}
targetModelApp="authentik_core"
targetModelName="user"
>
</ak-object-changelog>
</div>
</div>
</section>
<section <section
slot="page-consent" slot="page-consent"
data-tab-title="${t`Explicit Consent`}" data-tab-title="${t`Explicit Consent`}"