aboutsummaryrefslogtreecommitdiff
path: root/modules/dashboard/dashboard-template.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-06-11 13:57:24 +0530
committerAkshay Nair <phenax5@gmail.com>2025-06-13 15:01:40 +0530
commite6b171f9f1d975ffe34e7a34743b5e92e8593847 (patch)
tree32714bba7679b5ece2ebcf9aeb795caeab13468e /modules/dashboard/dashboard-template.nix
parent2a73a5899124fa15c3962b9bd385ebd415a0ccf9 (diff)
downloadhomeserver-nixos-config-e6b171f9f1d975ffe34e7a34743b5e92e8593847.tar.gz
homeserver-nixos-config-e6b171f9f1d975ffe34e7a34743b5e92e8593847.zip
Add service router + nsd server
Diffstat (limited to 'modules/dashboard/dashboard-template.nix')
-rw-r--r--modules/dashboard/dashboard-template.nix19
1 files changed, 13 insertions, 6 deletions
diff --git a/modules/dashboard/dashboard-template.nix b/modules/dashboard/dashboard-template.nix
index a1df813..5a99e20 100644
--- a/modules/dashboard/dashboard-template.nix
+++ b/modules/dashboard/dashboard-template.nix
@@ -5,12 +5,11 @@ let
if hasAttr attr link then value else def;
linkHTML = link: ''
- <div>
- <a href="${link.url}" class="card" style="${withLinkAttr link "color" "" "--color-card-accent: ${link.color}"}">
- ${link.title} ${if hasAttr "key" link then "(${link.key})" else ""}
- <div class="card-link">${link.url}</div>
- </a>
- </div>
+ <a href="${link.url}" class="card" style="${withLinkAttr link "color" "" "--color-card-accent: ${link.color}"}">
+ ${link.title} ${if hasAttr "key" link then "(${link.key})" else ""}
+ <div class="card-link">${link.url}</div>
+ ${if hasAttr "altUrl" link then ''<div class="card-link">(Alt: ${link.altUrl})</div>'' else ""}
+ </a>
'';
script = ''
@@ -86,6 +85,14 @@ let
padding-top: 1em;
color: gray;
}
+ button {
+ background: none;
+ padding: 0;
+ text-decoration: underline;
+ color: gray;
+ margin: 0;
+ border: 0;
+ }
'';
headerHTML = ''