Skip to content

Commit

Permalink
Improve profile menu
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Dec 10, 2024
1 parent 4a2d9ae commit 85bef6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{ "name": "__profilemenu/settings", "order": 450, "allow_if": "chair", "print_function": "*Conf::print_profilemenu_item", "separator_group": "overall" },
{ "name": "__profilemenu/users", "order": 460, "allow_if": "chair", "print_function": "*Conf::print_profilemenu_item", "separator_group": "overall" },
{ "name": "__profilemenu/assignments", "order": 470, "allow_if": "chair", "print_function": "*Conf::print_profilemenu_item", "separator_group": "overall" },
{ "name": "__profilemenu/signout", "order": 500, "allow_if": "!empty", "print_function": "*Conf::print_profilemenu_item", "separator_group": "close" },
{ "name": "__profilemenu/signout", "order": 500, "allow_if": "email", "print_function": "*Conf::print_profilemenu_item", "separator_group": "close" },

{ "name": "__profilecheck/name", "order": 1, "function": "Contact::profilecheck_name" },
{ "name": "__profilecheck/affiliation", "order": 2, "function": "Contact::profilecheck_affiliation" },
Expand Down
2 changes: 1 addition & 1 deletion src/conference.php
Original file line number Diff line number Diff line change
Expand Up @@ -4805,7 +4805,7 @@ function print_profilemenu_item(Contact $user, Qrequest $qreq, $pagecs, $gj) {
if ($actas_email !== null) {
echo '<li class="has-link">', Ht::link("Act as ". htmlspecialchars($actas_email), $this->selfurl($qreq, ["actas" => $actas_email])), '</li>';
}
$t = $user->is_empty() ? "Sign in" : "Add account";
$t = $user->has_email() ? "Add another account" : "Sign in";
echo '<li class="has-link">', Ht::link($t, $this->hoturl("signin")), '</li>';
} else if ($itemid === "profile") {
if ($user->has_email()) {
Expand Down

0 comments on commit 85bef6d

Please sign in to comment.