8000 External link button to link to a component by aperullo · Pull Request #223 · cstate/cstate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

External link button to link to a component #223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions exampleSite/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ params:
category: North Coast
- name: Backup Gateway
category: North Coast
- name: Website
description: The web frontend for the application.
category: Uncategorized
link: https://example.com/
- name: API
description: The guts of the application.
category: Uncategorized
Expand Down
8 changes: 8 additions & 0 deletions layouts/partials/index/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" }}
Expand Down
5 changes: 5 additions & 0 deletions layouts/partials/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@
.padding { padding: 12px; }
.clicky { cursor: pointer; }

.link-style { border: none; }
.span-icon {
float: right;
margin-left: 16px;
}

/**
* Categories
Expand Down
0