Skip to content

Commit a7fb3f6

Browse files
committed
Add a button for CSAT entries
1 parent 4db17ba commit a7fb3f6

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ See [the Team Compass blog documentation](https://compass.2i2c.org/communication
2323

2424
## Website-specific features
2525

26+
### Add a Feedback button to a page or post
27+
28+
Use the `{{< feedback >}}` short-code to add a button that provides a feedback link for the current page. See more information in [our feedback process docs](https://docs.google.com/document/d/1bH5fN2lXcZ-vjQ4Pb4lfaeQbmoCBkN1QYjA7ZaxkmsY/edit?tab=t.dxyyjksnpswv#heading=h.kh8meot2eulc).
29+
2630
### Automatic GitHub link shortening
2731

2832
This theme will automatically shorten GitHub links and add a little GitHub icon to the front. For example, see the [Jack Eddy Symposium blog post](https://2i2c.org/blog/2022/eddy-symposium-report/).

content/blog/2025/status-page/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ draft: false
1111
One of 2i2c's goals is to **make the cloud safe for science**.
1212
A big part of this is making the black box of commercial cloud infrastructure more predictable and reliable, while running a network of community hubs that all operate autonomously.
1313

14+
{{< feedback >}}
15+
1416
As part of this effort, we've created a **status page for 2i2c's network of community hubs**. This is a source of truth to provide a high-level picture of the stability of our infrastructure, and to give us a heads up when things aren't working as expected. You can check it out at:
1517

1618
👉 [**`status.2i2c.org`**](https:status.2i2c.org)

layouts/shortcodes/feedback.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{{/* Hugo shortcode for generating a feedback callout with button */}}
2+
{{ $url := .Get "url" | default .Page.Permalink }}
3+
{{ $feedbackForm := "https://docs.google.com/forms/d/e/1FAIpQLSff-u-sWFuwO1-VTgk2Ir7f1nfUUlLevQk_Vkk_jnmcI1nJnw/viewform?usp=pp_url&entry.648332035=" }}
4+
{{ $fullUrl := printf "%s%s" $feedbackForm $url }}
5+
6+
<a href="{{ $fullUrl }}" target="_blank" rel="noopener" class="text-decoration-none">
7+
<div class="alert alert-info d-flex align-items-start p-3" role="button" style="transition: all 0.2s ease;" onmouseover="this.style.backgroundColor='#b3e5fc'" onmouseout="this.style.backgroundColor=''" onfocus="this.style.backgroundColor='#b3e5fc'" onblur="this.style.backgroundColor=''">
8+
<div class="fw-bold mb-1"><span style="font-weight:bold">Give us feedback!</span> Click here to provide feedback that will help us make this more impactful.</div>
9+
</div>
10+
</a>

0 commit comments

Comments
 (0)