<details class="dropdown dir-auto">
	<summary data-tooltip-content="{{ctx.Locale.Tr "profile.actions.tooltip"}}">{{svg "octicon-kebab-horizontal"}}</summary>
	<ul>
		{{if eq .SignedUserID .ContextUser.ID}}
			<li>
				<a href="{{AppSubUrl}}/user/settings" class="item">{{svg "octicon-pencil"}}{{ctx.Locale.Tr "profile.edit.link"}}</a>
			</li>
		{{end}}
		{{if .IsAdmin}}
			<li>
				<a href="{{AppSubUrl}}/admin/users/{{.ContextUser.ID}}" class="item">{{svg "octicon-gear"}}{{ctx.Locale.Tr "admin.users.details"}}</a>
			</li>
		{{end}}
		{{if and .EnableFeed (or .IsAdmin (eq .SignedUserID .ContextUser.ID) (not .ContextUser.KeepActivityPrivate))}}
			<li>
				<a href="{{.ContextUser.HomeLink}}.rss" class="item">{{svg "octicon-rss"}}{{ctx.Locale.Tr "rss_feed"}}</a>
			</li>
			<li>
				<a href="{{.ContextUser.HomeLink}}.atom" class="item">{{svg "octicon-rss"}}{{ctx.Locale.Tr "feed.atom.link"}}</a>
			</li>
		{{end}}
		<li>
			<a href="{{.ContextUser.HomeLink}}.keys" class="item">{{svg "octicon-key"}}{{ctx.Locale.Tr "keys.ssh.link"}}</a>
		</li>
		<li>
			<a href="{{.ContextUser.HomeLink}}.gpg" class="item">{{svg "octicon-key"}}{{ctx.Locale.Tr "keys.gpg.link"}}</a>
		</li>
		{{if and .IsSigned (ne .SignedUserID .ContextUser.ID)}}
			<li hx-target="#profile-avatar-card" hx-indicator="#profile-avatar-card" id="action-block">
				{{if .IsBlocked}}
					<button class="item orange text" hx-post="{{.ContextUser.HomeLink}}?action=unblock">
						{{svg "octicon-person"}} {{ctx.Locale.Tr "user.unblock"}}
					</button>
				{{else}}
					<button class="item orange text" data-modal-id="block-user" hx-post="{{.ContextUser.HomeLink}}?action=block" hx-confirm="-">
						{{svg "octicon-blocked"}} {{ctx.Locale.Tr "user.block"}}
					</button>
				{{end}}
			</li>
		{{end}}
		{{if and .IsModerationEnabled .IsSigned (ne .SignedUserID .ContextUser.ID)}}
			<li>
				<a href="{{AppSubUrl}}/report_abuse?type=user&id={{.ContextUser.ID}}" class="item orange text">{{svg "octicon-stop"}}{{ctx.Locale.Tr "moderation.report_abuse"}}</a>
			</li>
		{{end}}
	</ul>
</details>
