aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorJohn Nduli2024-09-02 20:22:57 +0300
committerBonfaceKilz2024-09-11 16:56:35 +0300
commit7c127e5eea986dc81b900b9f6f40f887bc49054d (patch)
tree8f6537af752808dfca10e8b6b89b8f8b0b8bff89 /gn2
parent80d68113689f7fde09d9ddc3444f077513fb4b7d (diff)
downloadgenenetwork2-7c127e5eea986dc81b900b9f6f40f887bc49054d.tar.gz
refactor: align search llm tooltip to be vertical
Diffstat (limited to 'gn2')
-rw-r--r--gn2/wqflask/templates/gsearch_gene.html35
-rw-r--r--gn2/wqflask/views.py2
2 files changed, 19 insertions, 18 deletions
diff --git a/gn2/wqflask/templates/gsearch_gene.html b/gn2/wqflask/templates/gsearch_gene.html
index c32f1ee1..f75c4e8b 100644
--- a/gn2/wqflask/templates/gsearch_gene.html
+++ b/gn2/wqflask/templates/gsearch_gene.html
@@ -10,26 +10,27 @@
<div class="container">
- <div class="row">
- <div class="col-sm-7">
- <h3>GN searched for the term(s) <b>"{{ terms }}"</b> in 754 datasets and 39,765,944 traits across 10 species<br/>
- and found <b>{{ trait_count }}</b> results that match your query.<br/>
- You can filter these results by adding key words in the fields below<br/>
- and you can also sort results on most columns.</h3>
- <p>To study a record, click on its Record ID below.<br />Check records below and click Add button to add to selection.</p>
- </div>
- {% if ai_result %}
- <div class="col-sm-5">
- <div class="panel panel-info">
- <div class="panel-heading">AI Search: {{ ai_result["search_term"] }}</div>
- <div class="panel-body">
- <p>{{ ai_result["search_result"] }}</p>
- <p><a class="btn btn-default" href="{{ ai_result["search_url"] }}" role="button">See References</a></p>
- </div>
+ <div class="row">
+ <h3>GN searched for the term(s) <b>"{{ terms }}"</b> in 754 datasets and 39,765,944 traits across 10 species<br/>
+ and found <b>{{ trait_count }}</b> results that match your query.<br/>
+ </h3>
+ </div>
+
+ {% if ai_result %}
+ <div class="row">
+ <div class="col-sm-6">
+ <div class="panel panel-info">
+ <div class="panel-heading">AI Search: {{ ai_result["search_term"] }}</div>
+ <div class="panel-body">
+ <p>{{ ai_result["search_result"] }}</p>
+ <p><a class="btn btn-default" href="{{ ai_result["search_url"] }}" role="button">See References</a></p>
</div>
- {% endif %}
</div>
</div>
+ </div>
+ {% endif %}
+
+ <p>To study a record, click on its Record ID below.<br />Check records below and click Add button to add to selection.</p>
<div>
<br />
<button class="btn btn-default" id="select_all"><span class="glyphicon glyphicon-ok"></span> Select All</button>
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py
index 2383e455..6cc4f2a7 100644
--- a/gn2/wqflask/views.py
+++ b/gn2/wqflask/views.py
@@ -246,7 +246,7 @@ def gsearchact():
ai_result = None
if current_app.config.get("AI_SEARCH_ENABLED"):
ai_result = {
- "search_term": "which animal has the same number of chromosomes as human",
+ "search_term": "glioma human gtex_v8",
"search_result": "The Bama miniature pig has the same number of chromosomes as humans",
# we need to modify the search to use url params so that we can easily link
"search_url": "https://qa.genenetwork.org/gnqna"