diff options
author | Vincent Ambo <mail@tazj.in> | 2020-07-19T23·54+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-07-20T11·33+0000 |
commit | 16823d075ccd2f07f282c66b601ad4af44d5f1fa (patch) | |
tree | cde9bc2f0d42042b5fb0cb73fe2a4c3818a0935c /web/todolist | |
parent | 406e37fde1d7f905ccb377f4ab9a857b750e372e (diff) |
feat(todolist): Add anchors for each user on the page r/1406
This makes it possible to link to the TODOs for a specific user on https://todo.tvl.fyi. Change-Id: Ibcb43235be187265cda55776582d043a84c96ead Reviewed-on: https://cl.tvl.fyi/c/depot/+/1301 Reviewed-by: ericvolp12 <ericvolp12@gmail.com> Tested-by: BuildkiteCI
Diffstat (limited to 'web/todolist')
-rw-r--r-- | web/todolist/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/todolist/default.nix b/web/todolist/default.nix index 187830e736e1..8a12d0121256 100644 --- a/web/todolist/default.nix +++ b/web/todolist/default.nix @@ -63,7 +63,11 @@ let let user = (head todos).user; in '' <p> - <h3>${user}</h3> + <h3> + <a style="color:inherit; text-decoration: none;" + name="${user}" + href="#${user}">${user}</a> + </h3> ${concatStringsSep "\n" (map todoElement todos)} </p> <hr> |