Skip to content

Commit

Permalink
Disable open tool button
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljcollinsuk committed Dec 4, 2024
1 parent 042a9b5 commit c64cdf6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions controlpanel/frontend/jinja2/tool-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h2 class="govuk-heading-m">{{ tool_info.name }}</h2>
<div class="govuk-grid-column-one-third">
<p class="govuk-!-margin-bottom-1">Status:
<span class="govuk-!-font-weight-bold tool-status-label">
{% if deployment %}
{% if deployment and deployment.tool_id != -1 %}
{{ deployment.status | default("") }}
{% else %}
Not deployed
Expand All @@ -86,7 +86,7 @@ <h2 class="govuk-heading-m">{{ tool_info.name }}</h2>
onclick="window.open('{{ tool_info['url'] }}', '_blank');"
rel="noopener"
target="_blank"
{% if not deployment %} disabled {% endif %}>
{% if not deployment or deployment.tool_id == -1 %} disabled {% endif %}>
Open
</button>

Expand All @@ -108,11 +108,11 @@ <h2 class="govuk-heading-m">{{ tool_info.name }}</h2>
</div>

{% if deployment and deployment.tool_id == -1 %}

<div>
<p class="govuk-body">
Your current deployment <b> ({{ deployment.chart_name}}-{{ deployment.chart_version }}: {{ deployment.image_tag }}) </b>
is not recognised as a current maintained tool release. You can still use it,
but it is recommended to switch to a new version from the dropdown list.
Your previous deployment <b> ({{ deployment.chart_name}}-{{ deployment.chart_version }}: {{ deployment.image_tag }}) </b>
is no longer maintained. You will need to deploy a new version from the dropdown list.
</p>
</div>
{% endif %}
Expand Down

0 comments on commit c64cdf6

Please sign in to comment.