diff options
author | Alexander_Kabui | 2024-08-12 14:55:01 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-08-29 18:58:56 +0300 |
commit | 1663442724c43cf763d56592f505981cd911cceb (patch) | |
tree | 86814a003dd97cada25244fd8ce79c02383c2f7c /gn2/wqflask/templates/gn_editor_results_page.html | |
parent | e2e3a61aa12cd4376fa77431a6ddf03de0fd5b14 (diff) | |
download | genenetwork2-1663442724c43cf763d56592f505981cd911cceb.tar.gz |
Use localstorage to track current commit.
Diffstat (limited to 'gn2/wqflask/templates/gn_editor_results_page.html')
-rw-r--r-- | gn2/wqflask/templates/gn_editor_results_page.html | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/gn2/wqflask/templates/gn_editor_results_page.html b/gn2/wqflask/templates/gn_editor_results_page.html index 9453ba02..8cfa35dc 100644 --- a/gn2/wqflask/templates/gn_editor_results_page.html +++ b/gn2/wqflask/templates/gn_editor_results_page.html @@ -2,26 +2,39 @@ <div class="col-sm-10 col-sm-offset-1"> <div> <div> - <h2> <i>Results status</i></h2> + <h2> <i>Results status - {{status}}</i></h2> </div> </div> <br> {% if error %} - <h1> error occurred *error message hereh </h1> + <h1> Error-type: <mark style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif;"><b><i>{{error}}</i></b></mark></h1> + <h3>Error-message: + <mark style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif;"><b><i>{{msg}}</i></b></mark></h3> {% else %} <div> - <h3>Commit Sha: <span class="lead"> - <mark style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif;"><b><i>commit hash</i></b></mark> + <h3>New Commit Sha: <span class="lead"> + <mark style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif;"><b><i>{{commit_sha}}</i></b></mark> </span></h3> <br/> <div class="lead"> <h3>Commit Message: - <mark style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif;"><b><i>commit message</i></b></mark> + <mark style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif;"><b><i>{{message}}</i></b></mark> </h3> </div> </div> {% endif %} - <br> + <br> </div> </section> +{% block js %} + +<script> + var commitSha = "{{ commit_sha }}"; + if (commitSha !="" && commitSha!= undefined){ + localStorage.setItem("gn_editor_sha", commitSha) + } + +</script> + +{% endblock %} |