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:
Vincent Ambo 2020-07-20 00:54:37 +01:00 committed by tazjin
parent 406e37fde1
commit 16823d075c

View file

@ -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>