From 3e24008aa89738fe0b481437f4c722c398aadd53 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 26 Mar 2024 19:43:08 +0300 Subject: Format files. Signed-off-by: Munyoki Kilyungi Co-authored-by: Alexander Kabui --- gn2/wqflask/static/new/css/llm.css | 74 ++--- gn2/wqflask/templates/gnqa_answer.html | 545 +++++++++++++++------------------ 2 files changed, 287 insertions(+), 332 deletions(-) diff --git a/gn2/wqflask/static/new/css/llm.css b/gn2/wqflask/static/new/css/llm.css index 5a666a3d..6243f174 100644 --- a/gn2/wqflask/static/new/css/llm.css +++ b/gn2/wqflask/static/new/css/llm.css @@ -1,81 +1,73 @@ - - - - #gnqna_search { +#gnqna_search { padding:15px 10px; border-radius: 15px; border:1px solid blue; - } +} - #gnqna_search{ +#gnqna_search{ font-weight: bold; font-weight: 18px; - } - - #main-search-controller{ - display: flex; - justify-content: center; - align-items: center; } +#main-search-controller{ + display: flex; + justify-content: center; + align-items: center; +} - - - - #gnqa_ref { +#gnqa_ref { min-height: 100vh; overflow: hidden; overflow-y:auto; - /* overflow-y: scroll; */ - } + /* overflow-y: scroll; */ +} - #gnqa_ref_item{ +#gnqa_ref_item{ padding:12px; - } +} - #gnqa_query { +#gnqa_query { font-size: 24px; font-family: serif; color: #3071a9; text-decoration: underline; - } +} - #gnqa_query::first-letter { +#gnqa_query::first-letter { font-size: 30px; - } - +} - #gnqa_answer::first-letter{ +#gnqa_answer::first-letter{ font-weight: bold; text-transform: uppercase; - } - #gnqna_search_home{ - display: flex; - justify-content: center; - align-items: center; - } +} + +#gnqna_search_home{ + display: flex; + justify-content: center; + align-items: center; +} - - #gnqna_search_home input{ +#gnqna_search_home input{ padding:7px 5px; border-radius: 10px; border:1px solid blue; - } +} - #gnqna_search_home input{ +#gnqna_search_home input{ font-weight: bold; - } +} - .container{ - / box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px; */ - } +.container{ + / box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px; */ +} - #loader { +#loader { display: none; position: fixed; top: 0; diff --git a/gn2/wqflask/templates/gnqa_answer.html b/gn2/wqflask/templates/gnqa_answer.html index 8ac121e6..ad22cb9c 100644 --- a/gn2/wqflask/templates/gnqa_answer.html +++ b/gn2/wqflask/templates/gnqa_answer.html @@ -1,367 +1,330 @@ {% extends "base.html" %} {% block title %}GNQNA{% endblock %} -{% block content %} - - {% block css %} -{% endblock %} - - +{% endblock %} -.panel-heading a:before { - font-family: 'Glyphicons Halflings'; - content: "\e114"; - float: right; - transition: all 0.5s; -} -.panel-heading.active a:before { - -webkit-transform: rotate(180deg); - -moz-transform: rotate(180deg); - transform: rotate(180deg); -} +{% block content %} +
+
+
+
+

{{query}}

+

+
+

{{answer}}

+

+
+
- + + +
+
+
+
-
+
+

References

+ {% if references %} +
    -
    - -
    -
    -
    -

    {{query}}

    -

    + {% for reference in references %} -
    -

    {{answer}}

    -

    +
  • +
    + +
    + {% if loop.first %} -
    - -
    -
    -
    +
    +
    +
    +
    + {% if reference.pubmed %} -
    -

    References

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

      {{reference.comboTxt}}

      -
      -
      - {% if reference.pubmed %} -
      - - -
      +
      +
      -
      - {% include 'pubmed_modal.html' %} -
      - - - {% endif %} - -

      {{reference.comboTxt}}

      + {% else %} -
      -
      + - {% else %} - - +
      +
      -
      + {% if reference.pubmed %} -
      +
      - {% if reference.pubmed %} + +
      -
      - - -
      +
      + {% include 'pubmed_modal.html' %} +
      -
      - {% include 'pubmed_modal.html' %} -
      - + {% endif %} - {% endif %} - -

      {{reference.comboTxt}}

      +

      {{reference.comboTxt}}

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

No references available.

- {% endif %} + {% endif %} +
-
- +{% endblock %} - +{% block js %} - - - - - - + - {% endblock %} - -- cgit v1.2.3