Gabriel Simmer
b0675e9f56
Also conditionally render for showpaste template
Nix build / tests (pull_request) Has been cancelled
2023-08-18 08:54:56 +01:00
Xe Iaso
8ca068ac3e
cmd/web: optionally render markdown posts in a fancy view
...
/pastes/{id}/md gets you a fancy formatted view
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-24 17:29:01 +00:00
Xe Iaso
21f7d61b42
cmd/web: render posts with Inter, show border around posts
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-24 15:18:32 +00:00
Xe Iaso
dc69c0cd81
cmd/web: add markdown processing
...
This uses the library blackfriday[1] to convert markdown to HTML. This
is a naive implementation, but it will do for now.
[1]: https://pkg.go.dev/github.com/russross/blackfriday
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-23 19:58:37 +00:00
Xe Iaso
ef7b383d46
Merge branch 'main' into Xe/no-double-avatar
2023-02-23 12:03:01 -05:00
Xe Iaso
7c9f31da09
cmd/web: hide your profile pic if you authored the active paste
...
Closes #3
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-23 17:02:16 +00:00
Xe Iaso
a6de30a985
cmd/web: syntax highlighting with prism.js
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-22 15:43:17 +00:00
Xe Iaso
884d103e29
cmd/web/showpaste: move paster username near profile picture
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-17 15:52:00 +00:00
Xe Iaso
98393c7b58
show help page
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-12 21:01:01 +00:00
Xe Iaso
e132530597
many fixes
...
cmd/tailpaste:
- better handle the error cases from web
cmd/web:
- Implement list of pastes
- Add contextual navbar for paste list and meta help
- Add error page rendering
- Add paginated paste listing
- Add created_at column
- Make paster information less janky on per-paste views
Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-12-15 18:47:09 +00:00
Xe Iaso
a4b18e796a
implement the public index page
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-12-15 17:37:35 +00:00
Xe Iaso
24b7c5452c
implement browser created pastes
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-12-14 18:31:08 +00:00
Xe Iaso
49239f2830
implement HTML rendering
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-12-13 15:59:28 +00:00