Skip to content

Commit

Permalink
Merge pull request #194 from neoformit/fix-header-cards
Browse files Browse the repository at this point in the history
Refactor header-cards component to use embedded snippet
  • Loading branch information
bebatut authored Oct 17, 2024
2 parents e0d9747 + 82aa52e commit 207e3b1
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion communities/genome/lab/annotation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ tabs:
<p>
The flowchart below shows how you might use your input data (in green) with different Galaxy tools (in blue) to annotate a genome assembly. For example, one pathway would be taking an assembled genome, plus information about repeats, and data from RNA-seq, to run in the Maker pipeline. The annotatations can then be viewed in JBrowse.
</p>
<img class="img-fluid" src="/static/home/labs/genome/static/annotation-overview.png" alt="Genome annotation flowchart">
<img class="img-fluid" src="./static/annotation-overview.png" alt="Genome annotation flowchart">
<p class="text-center">
A graphical representation of genome annotation
</p>
Expand Down
2 changes: 1 addition & 1 deletion communities/genome/lab/assembly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ tabs:
<li>Assessment - at any stage, the assembly can be assessed for number of contigs, number of base pairs, whether expected genes are present, and many other metrics.</li>
<li>Annotation - identify features on the genome assembly such as gene names and locations.</li>
</ul>
<img class="img-fluid" src="/static/home/labs/genome/static/assembly-overview.png" alt="Genome assembly flowchart">
<img class="img-fluid" src="./static/assembly-overview.png" alt="Genome assembly flowchart">
<p class="text-center">
A graphical representation of genome assembly
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,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
4 changes: 2 additions & 2 deletions communities/proteomics/lab/templates/intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
What is this page?
</a>
<p>
Welcome to the {{ site_name }} {{ lab_name }}. Get quick access to the
Welcome to the Galaxy {{ site_name }} {{ lab_name }}. Get quick access to the
tools, workflows and tutorials you need to get started with proteomics on
Galaxy.
</p>
Expand All @@ -17,7 +17,7 @@
This page is currently under development in consultation with the
<a href="https://www.biocommons.org.au/proteomics-community" target="_blank">
Australian Proteomics Bioinformatics community</a>.
</p>
</p>
</section>

<hr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
{% include 'home/snippets/header-cards.html' %}
<iframe id="headerCardsIframe" style="width: 100%;" src="https://site.usegalaxy.org.au/embed/home/snippets/header-cards.html?overflow=hidden"></iframe>
<script>
window.addEventListener("message", function(event) {
document.getElementById('headerCardsIframe').style.height = event.data.height + 'px';
}, false);
</script>
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<iframe id="footerIframe" style="width: 100%;" src="https://site.usegalaxy.org.au/embed/home/snippets/footer.html"></iframe>
<iframe id="footerIframe" style="width: 100%;" src="https://site.usegalaxy.org.au/embed/home/snippets/footer.html?overflow=hidden"></iframe>
<script>
window.addEventListener("message", function(event) {
const iframe = document.getElementById('footerIframe');
const height = event.data.height + 'px';
console.log('Set footer height:', height);
iframe.style.height = height;
document.getElementById('footerIframe').style.height = event.data.height + 'px';
}, false);
</script>

0 comments on commit 207e3b1

Please sign in to comment.