5 Commits
Author SHA1 Message Date
Chris PalmerandGitHub c66cbb8eca Protect save and update from CSRF (#117)
Also, fix a lint.

Fixes #116

Signed-off-by: Chris Palmer <cpalmer@tailscale.com>
2024-04-01 18:20:58 -07:00
Marco HofstetterandWill Norris 843e615dbf remove unused disabled input fields in form
The detail page of a link only displays the form if the link is editable
for the logged in user.

Therefore, it's not necessary to disable the input fields within the
form if the link isn't editable.

Signed-off-by: Marco Hofstetter <marco.hofstetter@bluewin.ch>
2023-06-26 08:13:54 -07:00
c7ac33d04c golink: add support for deleting links
To delete a link, go to its page in `.detail` and click on the "Delete"
button. Stats for the deleted link are removed as well.

Co-authored-by: Will Norris <will@tailscale.com>
Signed-off-by: Gabriel Wong <gabriel@bifrost.ai>
Signed-off-by: Will Norris <will@tailscale.com>
2023-05-01 17:34:41 -07:00
Will NorrisandWill Norris 132a396390 update colors and tweak detail layout
Signed-off-by: Will Norris <will@tailscale.com>
2023-05-01 17:34:41 -07:00
Will Norris ed638ef9d3 cmd/go: add /.detail page for viewing and editing links
This also adds the ability to transfer links to new owners.

Change-Id: I2172291521db82982b0f30b0f9af92a063dc5100
2022-06-29 14:19:05 -07:00