Add the profile image UI and docs (SCR-1)
CI / validate-monitoring (push) Successful in 10s
CI / lint (push) Successful in 14s
CI / federation-interop (push) Successful in 1m15s
CI / test (push) Successful in 7m2s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / trigger-deploy (push) Skipped
CI / notify (push) Successful in 5s
CI / validate-monitoring (push) Successful in 10s
CI / lint (push) Successful in 14s
CI / federation-interop (push) Successful in 1m15s
CI / test (push) Successful in 7m2s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / trigger-deploy (push) Skipped
CI / notify (push) Successful in 5s
A Profile page to upload, use Gravatar or remove the image, the avatar in the page header and on the public profile, a Sharing switch for it, and user/admin guide notes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b878523d51
commit
b388e7112d
10 files changed
+246
-2
No files matched your search
@@ -1,6 +1,7 @@
|
||||
// Shared page shell: site header, navigation, sign-in guard.
|
||||
|
||||
import { api, getToken, redirectToLogin, setToken } from "./api.js";
|
||||
import { avatarImage } from "./avatar.js";
|
||||
import { h, replace } from "./dom.js";
|
||||
|
||||
const NAV = [
|
||||
@@ -26,7 +27,12 @@ export async function signedInPage(active) {
|
||||
h(
|
||||
"div",
|
||||
{ class: "account" },
|
||||
h("span", { class: "account-name" }, user.username),
|
||||
h(
|
||||
"a",
|
||||
{ class: "account-link", href: "account.html", title: "Your profile image" },
|
||||
h("span", { class: "account-avatar" }, avatarImage(user, "avatar-sm")),
|
||||
h("span", { class: "account-name" }, user.username),
|
||||
),
|
||||
h("button", { type: "button", class: "link-button", onclick: signOut }, "Sign out"),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user