Skip to content
Open
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: 2 additions & 2 deletions communities/genome/lab/usegalaxy.org.au/templates/intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@
<h5 class="modal-title">Galaxy {{ site_name }}</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>

<div class="modal-body">
<p>
This site <em>{{ subdomain }}.{{ root_domain }}</em> is connected to the same server as <em>{{ root_domain }}</em>, but with an interface dedicated to helping our {{ nationality }} researchers. Your history, jobs and data quota are shared with the "Base" website.
</p>

<div class="my-3">
Switch between sites quickly using the dropdown in Galaxy {{ site_name }}'s main navigation bar:
<img class="w-100 my-3 mx-auto" src="https://github.com/usegalaxy-au/galaxy-media-site/blob/dev/webapp/home/static/home/img/subdomains/site-switcher.png?raw=true" alt="Switch site button">
</div>

<p><a class="ga-btn" href="{{ galaxy_base_url }}" target="_blank">Take me back to Galaxy {{ site_name }}</a></p>
<p><a class="ga-btn" href="/about">What is Galaxy {{ site_name }}?</a></p>
<p><a class="ga-btn" href="/request/support">Galaxy {{ site_name }} support</a></p>
</div>

<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
Expand Down
6 changes: 4 additions & 2 deletions sources/bin/labs_post_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from pathlib import Path

from github import Github
from github.IssueComment import IssueComment
from github.PullRequest import PullRequest

COMMENT_TITLE_TEMPLATE = "Preview changes to {lab_name} Lab <!--=-->"
URL_TEMPLATE = (
Expand All @@ -31,9 +33,9 @@


def get_comment(
pull_request: Github.PullRequest.PullRequest,
pull_request: PullRequest,
id_string: str,
) -> Github.IssueComment.IssueComment | None:
) -> IssueComment | None:
"""Fetches PR comments and scans for the COMMENT_TITLE_TEMPLATE."""
for comment in pull_request.get_issue_comments():
if id_string in comment.body:
Expand Down