aboutsummaryrefslogtreecommitdiff
path: root/modules/dashboard/dashboard-template.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 = ''