Skip to content

Commit

Permalink
[CTID-29] Add a "Close Button" on the Analyze Page (#159)
Browse files Browse the repository at this point in the history
- Enclose the index link inside a block modify its content on the analyze page to provide a button with more relevant text.
  • Loading branch information
emmanvg authored Feb 23, 2022
1 parent 5374aa3 commit 95d5fd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tram/templates/analyze.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
</script>
{% endblock %}

{% block back-to-index-link %}
<a class="btn btn btn-outline-light" href="/">Close Report</a>
{% endblock %}

{% block body %}

<h3 class="display-4 text-center">{{ report_name }}</h3>
Expand Down
2 changes: 2 additions & 0 deletions src/tram/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ <h1 style="color: white">
</h1>
<ul class="navbar-nav d-flex m-0">
<li class="navbar-item me-1">
{% block back-to-index-link %}
<a class="btn btn btn-outline-light" href="/">Reports</a>
{% endblock %}
</li>
<li class="navbar-item me-1">
<a class="btn btn btn-outline-light" href="/ml">ML Admin</a>
Expand Down

0 comments on commit 95d5fd9

Please sign in to comment.