Skip to content

Commit

Permalink
ui: Fix link to the API when browsing tasks
Browse files Browse the repository at this point in the history
It's intended that the API link changes based on the page.

The playbook list and host list links were fine but it seems we had
forgotten about the task list link.
  • Loading branch information
dmsimard committed Sep 10, 2023
1 parent 3ab5b17 commit 9cadcbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ara/ui/templates/partials/api_link.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
{% else %}
<a href="{% url 'latesthost-list' %}" class="nav-link" target="_blank">API</a>
{% endif %}
{% elif page == "task_index" %}
<a href="{% url 'task-list' %}" class="nav-link" target="_blank">API</a>
{% elif playbook.id %}
<a href="{% url 'playbook-detail' pk=playbook.id %}" class="nav-link" target="_blank">API</a>
{% elif result.id %}
Expand Down

0 comments on commit 9cadcbb

Please sign in to comment.