diff options
author | Alexander_Kabui | 2024-09-13 10:49:31 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-09-13 10:49:31 +0300 |
commit | 3617205075688b2de4f2318578babfd709272b65 (patch) | |
tree | 53326f8c78c3699563be0cc3562e5624c2cad66f /gn2/wqflask/templates/gnqa_answer.html | |
parent | 6441bdde2a5705aa04b1e556366b40f6b4e5b8e4 (diff) | |
parent | 63de4403b6e2186c5758443ec9163fc57b8a012f (diff) | |
download | genenetwork2-3617205075688b2de4f2318578babfd709272b65.tar.gz |
Merge branch 'testing' of https://github.com/genenetwork/genenetwork2 into feature/xapian-to-llm-text-transformer
Diffstat (limited to 'gn2/wqflask/templates/gnqa_answer.html')
-rw-r--r-- | gn2/wqflask/templates/gnqa_answer.html | 40 |
1 files changed, 15 insertions, 25 deletions
diff --git a/gn2/wqflask/templates/gnqa_answer.html b/gn2/wqflask/templates/gnqa_answer.html index 91fa4981..2e182375 100644 --- a/gn2/wqflask/templates/gnqa_answer.html +++ b/gn2/wqflask/templates/gnqa_answer.html @@ -1,7 +1,7 @@ <section class="container-fluid answers gnqa-copy"> <div class="row container gnqa-answer" style="margin-bottom: 1em"> <p class="row lead"> - <mark style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif"><b><i>{{ query }}</i></b></mark> + <mark class="linux-libertine-font"><b><i>{{ query }}</i></b></mark> <br /> <span style="white-space: pre-line">{{ answer|safe }}</span> </p> @@ -20,32 +20,24 @@ title="Vote Down"> <i class="fa fa-thumbs-down fa-sm fa-1x" aria-hidden="true"></i> </button> - <sub id="rate" class="text-info"> - </sub> + <sub id="rate" class="text-info"></sub> </div> </div> <div class="row container"> <details open> <summary> - <h3 style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif">References</h3> + <h3 class="linux-libertine-font">References</h3> </summary> {% if references %} <ul class="list-unstyled"> {% for reference in references %} <li> - <div class="panel-group" - role="tablist" - aria-multiselectable="true" - style="margin-bottom:0"> + <div class="panel-group" role="tablist" aria-multiselectable="true" style="margin-bottom:0"> <div class="panel panel-default"> {% if loop.first %} - <div class="panel-heading active" - role="tab" - id="heading{{ reference.doc_id }}"> - <h4 class="panel-title" - style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif"> - <a class="collapsed" - role="button" + <div class="panel-heading active" role="tab" id="heading{{ reference.doc_id }}"> + <h4 class="panel-title linux-libertine-font"> + <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse{{ reference.doc_id }}" @@ -65,8 +57,7 @@ {% if reference.pubmed %} <details open> <summary>See PubMed Info</summary> - <div style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif; - margin-top:1.4em"> + <div class="linux-libertine-font" style="margin-top:1.4em"> <h3> <b>{{ reference.pubmed[0].get("title") }}:</b> </h3> @@ -90,8 +81,7 @@ </div> {% else %} <div class="panel-heading" role="tab" id="heading{{ reference.doc_id }}"> - <h4 class="panel-title" - style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif"> + <h4 class="panel-title linux-libertine-font"> <a class="collapsed" role="button" data-toggle="collapse" @@ -113,8 +103,7 @@ {% if reference.pubmed %} <details> <summary>See PubMed Info</summary> - <div style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif; - margin-top:1.4em"> + <div class="linux-libertine-font" style="margin-top:1.4em"> <h3> <b>{{ reference.pubmed[0].get("title") }}:</b> </h3> @@ -154,8 +143,9 @@ </div> </div> </section> -{% block js %} - <script> + +<script> +$(document).ready(function() { function updateRatingHandler(target, responseObj, args){ let {status, response} = responseObj.xhr if (status == 200 && args == "upvote"){ @@ -187,5 +177,5 @@ htmx.on("#upvote", "click", function(evt){ handler: (target, obj)=> updateRatingHandler(target,obj, "downvote"), swap:"innerHTML", values: {'query': query, 'answer': answer}})}); - </script> -{% endblock %} +}) +</script> |