From 1c505ea41dab31e06c85132d64cb43a88df798e1 Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Thu, 12 May 2022 14:41:14 +0100 Subject: [PATCH] portal: add icons --- app/portal/templates/base.html.j2 | 31 ++++++++----- app/portal/templates/icons.html.j2 | 71 ++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 12 deletions(-) create mode 100644 app/portal/templates/icons.html.j2 diff --git a/app/portal/templates/base.html.j2 b/app/portal/templates/base.html.j2 index a1b8ddf..7bbfc5b 100644 --- a/app/portal/templates/base.html.j2 +++ b/app/portal/templates/base.html.j2 @@ -1,3 +1,4 @@ +{% from "icons.html.j2" import icon %} @@ -62,7 +63,7 @@ @@ -73,31 +74,37 @@ + @@ -108,25 +115,25 @@ @@ -137,13 +144,13 @@ diff --git a/app/portal/templates/icons.html.j2 b/app/portal/templates/icons.html.j2 new file mode 100644 index 0000000..b35e03a --- /dev/null +++ b/app/portal/templates/icons.html.j2 @@ -0,0 +1,71 @@ +{% macro icon(i) %} + {% if i == "arrow-down-up" %} + + + + {% elif i == "bell" %} + + + + {% elif i == "collection" %} + + + + {% elif i == "file-earmark-excel" %} + + + + + {% elif i == "file-earmark-text" %} + + + + + {% elif i == "hdd-network" %} + + + + + {% elif i == "house-door" %} + + + + {% elif i == "gear" %} + + + + + {% elif i == "globe" %} + + + + {% elif i == "rainbow" %} + + + + {% elif i == "onion" %} + + Tor icon + + + {% elif i == "server" %} + + + + + + {% endif %} +{% endmacro %} \ No newline at end of file