feat(todolist): Add anchors for each user on the page
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
This commit is contained in:
parent
406e37fde1
commit
16823d075c
1 changed files with 5 additions and 1 deletions
|
@ -63,7 +63,11 @@ let
|
||||||
let user = (head todos).user;
|
let user = (head todos).user;
|
||||||
in ''
|
in ''
|
||||||
<p>
|
<p>
|
||||||
<h3>${user}</h3>
|
<h3>
|
||||||
|
<a style="color:inherit; text-decoration: none;"
|
||||||
|
name="${user}"
|
||||||
|
href="#${user}">${user}</a>
|
||||||
|
</h3>
|
||||||
${concatStringsSep "\n" (map todoElement todos)}
|
${concatStringsSep "\n" (map todoElement todos)}
|
||||||
</p>
|
</p>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
Loading…
Reference in a new issue