Skip to content

Commit

Permalink
Custom Profiles: Add Template Editors to User Profile
Browse files Browse the repository at this point in the history
  • Loading branch information
benpate committed Mar 24, 2024
1 parent 8f80ee0 commit f1a2bfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions _embed/templates/user-outbox/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ <h1 class="p-name margin-none">{{.DisplayName}}</h1>
<div class="margin-top-xs"><a href="/@me/inbox/following" class="text-plain">{{icon "person"}} {{.FollowingCount}} Following</a></div>
<div class="margin-top-xs"><a href="/@me/inbox/followers" class="text-plain">{{icon "person"}} {{.FollowerCount}} {{pluralize .FollowerCount "Follower" "Followers"}}</a></div>
<div class="margin-top-xs"><a href="/@me/inbox/rules" class="text-plain">{{icon "rule"}} {{.RuleCount}} {{pluralize .RuleCount "Rule" "Rules"}}</a></div>
<div class="margin-top-xs"><a hx-get="/@me/edit-template" class="text-plain">{{icon "template"}} Template</a></div>
<div class="margin-top"><button hx-post="/signout" hx-target="body">Sign Out</button></div>
{{- end -}}

Expand Down
2 changes: 2 additions & 0 deletions service/icons.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ func (service Icons) Get(name string) string {
return service.get("star")
case "star-fill":
return service.get("star-fill")
case "template":
return service.get("layout-text-sidebar-reverse")
case "thumbs-down":
return service.get("hand-thumbs-down")
case "thumbs-down-fill":
Expand Down

0 comments on commit f1a2bfd

Please sign in to comment.