From 505899f424c043d05de31188a1ef145fc03a1a6c Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 27 Mar 2024 12:14:59 +0300 Subject: Clean up gnqa answer page. Signed-off-by: Munyoki Kilyungi Co-authored-by: Alexander Kabui --- gn2/wqflask/templates/gnqa.html | 5 +- gn2/wqflask/templates/gnqa_answer.html | 375 +++++++-------------------------- 2 files changed, 77 insertions(+), 303 deletions(-) diff --git a/gn2/wqflask/templates/gnqa.html b/gn2/wqflask/templates/gnqa.html index 1c373289..1b08deb2 100644 --- a/gn2/wqflask/templates/gnqa.html +++ b/gn2/wqflask/templates/gnqa.html @@ -56,7 +56,9 @@ #gnqna_search_home { field-sizing: normal; } - + .answers { + width: 75%; + } {% endblock %} @@ -103,6 +105,7 @@
- -{% endblock %} - -{% block content %} - -
-
-
-
-

{{query}}

-

- -
-

{{answer}}

-

- -
-
- - - - -
- +
+

+ {{ query }} +

+
+

{{ answer }}

+
+ +
- -
- - -
-

References

- {% if references %} -
    - - {% for reference in references %} - -
  • -
    - -
    - {% if loop.first %} - - - - -
    -
    - -
    -
    - {% if reference.pubmed %} - -
    - - -
    - - -
    - {% include 'pubmed_modal.html' %} -
    - - - {% endif %} - -

    {{reference.comboTxt}}

    - - +
    +

    References

    + {% if references %} + +
      + {% for reference in references %} +
    • +
      +
      + {% if loop.first %} + +
      +
      +
      -
      - - - - {% else %} - - - - - -
      - -
      - - - {% if reference.pubmed %} - - -
      - - -
      - - - -
      - {% include 'pubmed_modal.html' %} - -
      - - - - {% endif %} + {% if reference.pubmed %} +

      {{reference.comboTxt}}

      - -
      +
      + 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 %}
      - {% endif %} -
      - + {% else %} + -
    • - {% endfor %} -
    - {% else %} -

    No references available.

    - {% endif %} -
    -
    -
    -{% endblock %} - -{% block js %} - - - - - -{% endblock %} +
    +
    + {% endif %} +
+
+ + {% endfor %} + + + {% else %} +

No references available.

+ {% endif %} +
+ -- cgit v1.2.3