From aabf792b5bbc78a954a2ddcb4314699c635b94f4 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 27 Mar 2024 16:30:39 +0300 Subject: Add some styling to gnqa answer page. Signed-off-by: Munyoki Kilyungi Co-authored-by: Alexander Kabui --- gn2/wqflask/templates/gnqa_answer.html | 147 +++++++++++++++++---------------- 1 file changed, 74 insertions(+), 73 deletions(-) (limited to 'gn2/wqflask/templates/gnqa_answer.html') diff --git a/gn2/wqflask/templates/gnqa_answer.html b/gn2/wqflask/templates/gnqa_answer.html index 3a53029a..6759ef72 100644 --- a/gn2/wqflask/templates/gnqa_answer.html +++ b/gn2/wqflask/templates/gnqa_answer.html @@ -1,91 +1,92 @@ +
-

- {{ query }} -

-
-

{{ answer }}

-
- - +
+

+ {{ query }}
+ {{ answer }} +

+
+ +
-

References

- {% if references %} - -
    - {% for reference in references %} -
  • -
    -
    - {% if loop.first %} - -
    -
    -
    -
    - {% 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 %} +
    +

    References

    + {% if references %} + +
      + {% for reference in references %} +
    • +
      +
      + {% if loop.first %} + -
      - {% else %} - +
      +
      +

      {{ 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 %} +
      +
      + {% else %} + -
      +
      +
      - {% if reference.pubmed %} + {% if reference.pubmed %} -
      - -
      +
      + + +
      - {% endif %} + {% endif %} -

      {{reference.comboTxt}}

      +

      {{reference.comboTxt}}

      +
      +
      + {% endif %} +
      +
    • + {% endfor %} +
    + + {% else %} +

    No references available.

    + {% endif %} +
    +
    - {% endif %} -
    -
    -
  • - {% endfor %} -
- - {% else %} -

No references available.

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