website/pkg/templates
Noah Petherbridge b7bee75e1f Function to re-sign photo URLs on profile pages
* With the new JWT signatures on photo URLs, it was no longer possible for
  creative users to embed their gallery photos on their profile page.
* Add a function to ReSignPhotoLinks that finds/replaces (on the server side)
  all references to paths under "/static/photos/" and gives them a fresh
  ?jwt= query string signature.
* Note: only applies to the profile page essays, ReSignPhotoLinks is a
  template func that must be opted-in on a per page basis.

Other miscellaneous fixes

* Add "Edit" buttons in the corners of profile cards, when the current user
  looks at their profile page. They link to URIs like
  "/settings#profile/about_me" which will now:
  1. Select the "Profile settings" tab like #profile
  2. Scroll and focus the profile essay field that the user clicked to edit.
2024-10-13 19:50:11 -07:00
..
error_pages.go Fix type assertions in FormatNumberShort 2023-12-21 17:30:34 -08:00
redirect.go Go 1.22 upgrade 2024-02-10 16:17:15 -08:00
template_funcs.go Function to re-sign photo URLs on profile pages 2024-10-13 19:50:11 -07:00
template_vars.go Forum Admin Page for Regular Users 2024-08-23 22:56:40 -07:00
templates_test.go Fix type assertions in FormatNumberShort 2023-12-21 17:30:34 -08:00
templates.go Forum Admin Page for Regular Users 2024-08-23 22:56:40 -07:00