aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorMantas Vilčinskas <hi@mnts.lt>2022-02-12 11:17:38 +0200
committerGitHub <noreply@github.com>2022-02-12 11:17:38 +0200
commitb17f38da158cc46652a27c98fb70cb533ec39142 (patch)
treed9b0ae557d3f93f45689527caaec59981bd53472 /layouts/partials
parent238257cd798decdb6c7ed51ce5eca20adc0001c8 (diff)
parent9b1da2a4626f0b6f1db9c2d8178306df3be6486c (diff)
External link button to link to a component #223
External link button to link to a component
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/index/components.html8
-rw-r--r--layouts/partials/meta.html5
2 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/index/components.html b/layouts/partials/index/components.html
index d3d67bd..835c523 100644
--- a/layouts/partials/index/components.html
+++ b/layouts/partials/index/components.html
@@ -65,6 +65,14 @@
</span>
{{ end }}
+ {{ with .link }}
+ <span class="span-icon">
+ <a href="{{ . }}" class="link-style">
+ 🔗
+ </a>
+ </span>
+ {{ end }}
+
<span class="component-status">
{{ if $thisIsDown }}
{{ T "thisIsDown" }}
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
index 0e8725b..279857c 100644
--- a/layouts/partials/meta.html
+++ b/layouts/partials/meta.html
@@ -115,6 +115,11 @@
.padding { padding: 12px; }
.clicky { cursor: pointer; }
+ .link-style { border: none; }
+ .span-icon {
+ float: right;
+ margin-left: 16px;
+ }
/**
* Categories