Skip to content

Commit

Permalink
Template conclusion.html help links
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Jul 7, 2024
1 parent 9a34cdf commit 2746a54
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 37 deletions.
18 changes: 17 additions & 1 deletion subdomains/singlecell/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,24 @@ galaxy_base_url: https://singlecell.usegalaxy.org.au
subdomain: singlecell
root_domain: usegalaxy.org.au

# More variables here...
# This will enable a feedback form on the webpage:
# feedback_email: [email protected]

support_url: https://help.usegalaxy.org.au
help_links:
- title: "Single Cell community help forum"
url: "https://usegalaxy-eu.github.io/scrna"
- title: "General Galaxy help forum"
url: "https://help.galaxyproject.org/c/usegalaxy-eu-support/6"
- title: "Single cell Galaxy user community chat room"
url: "https://matrix.to/#/#Galaxy-Training-Network_galaxy-single-cell:gitter.im"
- title: "Galaxy Training Community chat"
url: "https://matrix.to/#/#Galaxy-Training-Network_Lobby:gitter.im"
- title: "Usegalaxy.eu chat"
url: "https://matrix.to/#/#usegalaxy-eu_Lobby:gitter.im"
- title: "Usegalaxy.org chat"
url: "https://matrix.to/#/#galaxyproject_Lobby:gitter.im"


# -----------------------------------------------------------------------------
# Custom content relative to this file URL
Expand Down
51 changes: 17 additions & 34 deletions subdomains/singlecell/templates/conclusion.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<section class="my-5">
<h4 class="mb-3">What's happening in {{ nationality }} Single Cell and Spatial Omics research?</h4>
<button
class="ga-btn"
data-bs-toggle="modal"
data-bs-target="#communityConnectModal"
>
Explore
</button>
<br>
<br>
<h4 class="mb-3">What do you think of the {{ site_name }}?</h4>
{% if help_links %}
<h4 class="mb-3">Community support for {{ nationality }} Single Cell and Spatial Omics research</h4>
<ul>
{% for link in help_links %}
<li>
<a href="{{ link.url }}" target="_blank">{{ link.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</section>

<section class="my-5">
<h4 class="my-3">What do you think of the {{ lab_name }}?</h4>
<button
class="ga-btn"
data-bs-toggle="modal"
Expand All @@ -35,7 +38,7 @@ <h5 class="modal-title">Feedback</h5>
<div class="modal-body">
<div class="default-content">
<p>
We'd love to hear your feedback on the Galaxy Australia {{ site_name }}. Please let us know what
We'd love to hear your feedback on the Galaxy {{ site_name }} {{ lab_name }}. Please let us know what
you think!
</p>
<div class="mb-3">
Expand Down Expand Up @@ -71,27 +74,6 @@ <h5 class="modal-title">Feedback</h5>
</div>
</div>

<div class="modal fade" id="communityConnectModal" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Australian genomics research</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p>
<p><a href="https://www.biocommons.org.au/genomics-domain" target="_blank">Discover more genomics activities and services supported by Australian BioCommons</a></p>
<p><a href="https://groups.google.com/a/biocommons.org.au/g/genome-assembly" target="_blank">Join the Australian BioCommons Genome Assembly Community Group</a></p>
<p><a href="https://groups.google.com/a/biocommons.org.au/g/genome-annotation" target="_blank">Join the Australian BioCommons Genome Annotation Community Group</a></p>
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>


<script>
function clearForm() {
Expand All @@ -118,8 +100,9 @@ <h5 class="modal-title">Australian genomics research</h5>
formData.append('name', $('#nameInput').val());
formData.append('email', $('#emailInput').val());
formData.append('message', $('#messageInput').val());
formData.append('feedback_email', '{{ feedback_email }}');

fetch('/feedback/{{ subdomain }}', {
fetch('/lab/feedback/{{ subdomain }}', {
method: 'POST',
headers: {
'X-CSRFToken': getCsrfToken(),
Expand Down
14 changes: 14 additions & 0 deletions subdomains/singlecell/usegalaxy.eu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ root_domain: usegalaxy.eu
# More variables here...
support_url: https://help.galaxyproject.org/

ask_for_help:
- title: "Single Cell community help forum"
url: "https://usegalaxy-eu.github.io/scrna"
- title: "General Galaxy help forum"
url: "https://help.galaxyproject.org/c/usegalaxy-eu-support/6"
- title: "Single cell Galaxy user community chat room"
url: "https://matrix.to/#/#Galaxy-Training-Network_galaxy-single-cell:gitter.im"
- title: "Galaxy Training Community chat"
url: "https://matrix.to/#/#Galaxy-Training-Network_Lobby:gitter.im"
- title: "Usegalaxy.eu chat"
url: "https://matrix.to/#/#usegalaxy-eu_Lobby:gitter.im"
- title: "Usegalaxy.org chat"
url: "https://matrix.to/#/#galaxyproject_Lobby:gitter.im"

# -----------------------------------------------------------------------------
# Custom content relative to this file URL

Expand Down
15 changes: 13 additions & 2 deletions subdomains/singlecell/usegalaxy.org.au.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://site.usegalaxy.org.au/lab/export?content_root=https://raw.githubusercontent.com/nomadscientist/galaxy_codex/subdomain_unification/subdomains/singlecell/main.yml

# -----------------------------------------------------------------------------
# Use these variables in HTML templates like:
# Use these variables in MD/HTML templates like:
# "Welcome to the Galaxy {{ site_name }} {{ lab_name }}"
# To make the content more generic and reusable across sites

Expand All @@ -17,8 +17,19 @@ galaxy_base_url: https://singlecell.usegalaxy.org.au
subdomain: singlecell
root_domain: usegalaxy.org.au

# More variables here...
# More variables for MD/HTML templating
support_url: https://site.usegalaxy.org.au/request
help_links:
- title: "Single Cell community help forum"
url: "https://usegalaxy-eu.github.io/scrna"
- title: "General Galaxy help forum"
url: "https://help.galaxyproject.org/c/usegalaxy-eu-support/6"
- title: "Single cell Galaxy user community chat room"
url: "https://matrix.to/#/#Galaxy-Training-Network_galaxy-single-cell:gitter.im"
- title: "Galaxy Training Community chat"
url: "https://matrix.to/#/#Galaxy-Training-Network_Lobby:gitter.im"
- title: "Usegalaxy.org chat"
url: "https://matrix.to/#/#galaxyproject_Lobby:gitter.im"

# -----------------------------------------------------------------------------
# Custom content relative to this file URL
Expand Down
13 changes: 13 additions & 0 deletions subdomains/singlecell/usegalaxy.org.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ root_domain: usegalaxy.org

# More variables here...
support_url: https://help.galaxyproject.org/
help_links:
- title: "Galaxy AU support"
url: "https://site.usegalaxy.org.au/request"
- title: "Single Cell community help forum"
url: "https://usegalaxy-eu.github.io/scrna"
- title: "General Galaxy help forum"
url: "https://help.galaxyproject.org/c/usegalaxy-eu-support/6"
- title: "Single cell Galaxy user community chat room"
url: "https://matrix.to/#/#Galaxy-Training-Network_galaxy-single-cell:gitter.im"
- title: "Galaxy Training Community chat"
url: "https://matrix.to/#/#Galaxy-Training-Network_Lobby:gitter.im"
- title: "Usegalaxy.org chat"
url: "https://matrix.to/#/#galaxyproject_Lobby:gitter.im"

# -----------------------------------------------------------------------------
# Custom content relative to this file URL
Expand Down

0 comments on commit 2746a54

Please sign in to comment.