summaryrefslogtreecommitdiff
path: root/src/site.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2021-11-18 00:18:10 +0100
committerJoel Klinghed <the_jk@spawned.biz>2021-11-18 00:18:10 +0100
commit51e8ff65dd4b777ccf90b722dc69d508cdd2497a (patch)
tree1f9615426a80af16a46628b5d020166936157032 /src/site.cc
parentd97447c85fe6f1c917e68ae73fa91f7aa37a0c85 (diff)
Use svg images for download and location actions in viewer
Diffstat (limited to 'src/site.cc')
-rw-r--r--src/site.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/site.cc b/src/site.cc
index e1111de..f8d8116 100644
--- a/src/site.cc
+++ b/src/site.cc
@@ -394,12 +394,17 @@ private:
auto* nav = body->add_tag("div")->attr("id", "header")->add_tag("ul");
{
auto* li = nav->add_tag("li");
- li->add_tag("a", "D")
+ li->add_tag("a")
->attr("id", "download")
->attr("download", "")
- ->attr("title", "Download [Shift-D]");
- li->add_tag("a", "P")->attr("id", "location")
- ->attr("title", "Show location");
+ ->attr("title", "Download [Shift-D]")
+ ->add_tag("img")
+ ->attr("src", "../img/download.svg");
+ li->add_tag("a")
+ ->attr("id", "location")
+ ->attr("title", "Show location")
+ ->add_tag("img")
+ ->attr("src", "../img/location.svg");
}
nav->add_tag("li")->add_tag("a", "<")
->attr("id", "previous")