Skip to content

Commit

Permalink
Merge pull request #18 from usegalaxy-au/dev
Browse files Browse the repository at this point in the history
Open internal usegalaxy links with target="_top"
  • Loading branch information
neoformit authored Dec 12, 2024
2 parents 3dc638c + f37098a commit 079b465
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 33 deletions.
2 changes: 0 additions & 2 deletions app/labs/templates/labs/components/accordion.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ <h2 class="accordion-header" id="{{ section.id }}-{{ tab_id }}-{{ forloop.counte
title="{{ item.button_tip|default:'Run tool' }}"
data-bs-toggle="tooltip"
data-bs-placement="left"
target="_blank"
>
{% if item.button_icon %}
<span class="material-icons">{{ item.button_icon|iconkey }}</span>
Expand All @@ -55,7 +54,6 @@ <h2 class="accordion-header" id="{{ section.id }}-{{ tab_id }}-{{ forloop.counte
<a
href="{{ item.view_link }}"
class="btn btn-galaxy"
target="_blank"
{% if item.view_tip %}
title="{{ item.view_tip }}"
data-bs-toggle="tooltip"
Expand Down
29 changes: 0 additions & 29 deletions app/labs/templates/labs/components/info-modal.html

This file was deleted.

7 changes: 5 additions & 2 deletions app/labs/templates/labs/exported.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,12 @@
if (
item.href
&& item.href.slice(0, 1) !== "/"
&& !item.href.includes("{{ galaxy_base_url }}")
) {
item.target = '_blank';
if (item.href.includes("{{ galaxy_base_url }}")) {
item.target = '_top';
} else {
item.target = '_blank';
}
}
});
{% endblock %}

0 comments on commit 079b465

Please sign in to comment.