about summary refs log tree commit diff
path: root/gn2/wqflask/templates/gn_editor_results_page.html
diff options
context:
space:
mode:
authorAlexander_Kabui2024-08-12 14:55:01 +0300
committerBonfaceKilz2024-08-29 18:58:56 +0300
commit1663442724c43cf763d56592f505981cd911cceb (patch)
tree86814a003dd97cada25244fd8ce79c02383c2f7c /gn2/wqflask/templates/gn_editor_results_page.html
parente2e3a61aa12cd4376fa77431a6ddf03de0fd5b14 (diff)
downloadgenenetwork2-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.html25
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 %}