From 86f18b45cc1bcb2ef1e1b4c88681c0a0654085a9 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 3 Apr 2024 14:32:01 +0300 Subject: Add pubmed info and styling --- gn2/wqflask/templates/gnqa_answer.html | 51 +++++++++++++++++----------------- 1 file changed, 25 insertions(+), 26 deletions(-) (limited to 'gn2/wqflask/templates') diff --git a/gn2/wqflask/templates/gnqa_answer.html b/gn2/wqflask/templates/gnqa_answer.html index 6759ef72..825b994c 100644 --- a/gn2/wqflask/templates/gnqa_answer.html +++ b/gn2/wqflask/templates/gnqa_answer.html @@ -32,15 +32,18 @@

{{ reference.comboTxt }}

-
+
{% if reference.pubmed %} -
- See PubMed Info -

{{ reference.pubmed[0].get('title') }}

-

Authors: {{ reference.pubmed[0].get('authors') }}

-

PMID: {{ reference.pubmed[0].get('pub_id') }}

-

Abstract: {{ reference.pubmed[0].get('abstract')|safe }}

-

See full Article on Pubmed

+
+ See PubMed Info +
+

{{ reference.pubmed[0].get('title') }}:

+

Authors:{{ reference.pubmed[0].get('authors') }}

+

PMID: {{ reference.pubmed[0].get('pub_id') }}

+

Abstract:

+

{{ reference.pubmed[0].get('abstract')|safe }}

+

See full Article on Pubmed

+
{% endif %}
@@ -54,26 +57,24 @@
-
-
- - +

{{reference.comboTxt}}

+
{% if reference.pubmed %} - - -
- - -
- +
+ See PubMed Info +
+

{{ reference.pubmed[0].get('title') }}:

+

Authors:{{ reference.pubmed[0].get('authors') }}

+

PMID: {{ reference.pubmed[0].get('pub_id') }}

+

Abstract:

+

{{ reference.pubmed[0].get('abstract')|safe }}

+

See full Article on Pubmed

+
+
{% endif %} - -

{{reference.comboTxt}}

- +
{% endif %} @@ -82,11 +83,9 @@ {% endfor %} - {% else %}

No references available.

{% endif %} -
-- cgit v1.2.3 From f586774026565f10772b342521af8eb90cfb687a Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 3 Apr 2024 17:13:08 +0300 Subject: Update UI for gnqa rating to use htmx. --- gn2/wqflask/templates/gnqa_answer.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'gn2/wqflask/templates') diff --git a/gn2/wqflask/templates/gnqa_answer.html b/gn2/wqflask/templates/gnqa_answer.html index 825b994c..bde39329 100644 --- a/gn2/wqflask/templates/gnqa_answer.html +++ b/gn2/wqflask/templates/gnqa_answer.html @@ -5,16 +5,19 @@ {{ query }}
{{ answer }}

-
- - +
+ + + +

References

{% if references %} -
    {% for reference in references %}
  • -- cgit v1.2.3 From 712a6a42d3c0d1e9b29a3c8352ca984a09cd79b1 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Thu, 4 Apr 2024 02:42:58 +0300 Subject: Add gnqa history search page. --- gn2/wqflask/templates/gnqa_search_history.html | 42 ++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 gn2/wqflask/templates/gnqa_search_history.html (limited to 'gn2/wqflask/templates') diff --git a/gn2/wqflask/templates/gnqa_search_history.html b/gn2/wqflask/templates/gnqa_search_history.html new file mode 100644 index 00000000..ce6a01da --- /dev/null +++ b/gn2/wqflask/templates/gnqa_search_history.html @@ -0,0 +1,42 @@ +
    +
    + +
    +
    +
    +
    +

    You search History

    +
    +
    +
    +
    +
    +
    +
    + {% for record in prev_queries %} +
    +
    + +
    + {% for id,val in record.items() %} + + {% endfor %} +
    +
    +
    + {% endfor %} +
    +
    +
+ -- cgit v1.2.3 From b28ebc5a5fe34525801d29332a89bb4ed2e260d0 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Thu, 4 Apr 2024 02:44:09 +0300 Subject: Add get history fetch url on gnqa homepage. --- gn2/wqflask/templates/gnqa.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'gn2/wqflask/templates') diff --git a/gn2/wqflask/templates/gnqa.html b/gn2/wqflask/templates/gnqa.html index 31a04aac..8bcb1b19 100644 --- a/gn2/wqflask/templates/gnqa.html +++ b/gn2/wqflask/templates/gnqa.html @@ -30,6 +30,12 @@ font-size: 14px; } + .search-hist-btn{ + background-color:transparent; + color:#3071a9; + border:none + } + .search-header sup { top: -2em; } @@ -117,7 +123,11 @@

AI Search - [Search History] + + +

@@ -142,7 +152,7 @@ value='' name="querygnqa" hx-post="/gnqna" - hx-target="#swap + hx-target="#swap" hx-swap="innerHTML" hx-indicator="#indicator" /> -- cgit v1.2.3 From 749ba361b2db03380e3bb84408d27feb7856805e Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Thu, 4 Apr 2024 02:56:19 +0300 Subject: Use bootstrap classes for ui. --- gn2/wqflask/templates/gnqa_search_history.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gn2/wqflask/templates') diff --git a/gn2/wqflask/templates/gnqa_search_history.html b/gn2/wqflask/templates/gnqa_search_history.html index ce6a01da..2c07b8c0 100644 --- a/gn2/wqflask/templates/gnqa_search_history.html +++ b/gn2/wqflask/templates/gnqa_search_history.html @@ -5,7 +5,7 @@
-

You search History

+

You search History

@@ -16,7 +16,7 @@ {% for record in prev_queries %}
- +
{% for id,val in record.items() %} {% endfor %}
-- cgit v1.2.3 From 83f4195997e17c89bcd5c8075af9b6cfdfdad843 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Thu, 4 Apr 2024 04:23:41 +0300 Subject: Delete redundant UI codebase. --- gn2/wqflask/templates/gnqa.html | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'gn2/wqflask/templates') diff --git a/gn2/wqflask/templates/gnqa.html b/gn2/wqflask/templates/gnqa.html index 8bcb1b19..1268ef39 100644 --- a/gn2/wqflask/templates/gnqa.html +++ b/gn2/wqflask/templates/gnqa.html @@ -86,37 +86,6 @@ {% endblock %} {% block search %}{% endblock %} - - - {% block content %}
@@ -171,8 +140,6 @@
- - {% endblock %} -- cgit v1.2.3