From 3285757d2e5846089ed1f688e4f9cf448dde378a Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Thu, 29 Aug 2024 11:55:20 +0300 Subject: Move genewiki template to wiki template folder. * gn2/wqflask/templates/genewiki.html: Move this... * gn2/wqflask/templates/genewiki.html: ... here. * gn2/wqflask/views.py (display_genewiki_page): Update the render_template page. Signed-off-by: Munyoki Kilyungi --- gn2/wqflask/templates/genewiki.html | 30 ------------------------------ gn2/wqflask/templates/wiki/genewiki.html | 30 ++++++++++++++++++++++++++++++ gn2/wqflask/views.py | 2 +- 3 files changed, 31 insertions(+), 31 deletions(-) delete mode 100644 gn2/wqflask/templates/genewiki.html create mode 100644 gn2/wqflask/templates/wiki/genewiki.html diff --git a/gn2/wqflask/templates/genewiki.html b/gn2/wqflask/templates/genewiki.html deleted file mode 100644 index 63f36741..00000000 --- a/gn2/wqflask/templates/genewiki.html +++ /dev/null @@ -1,30 +0,0 @@ -{% extends "base.html" %} -{% block title %}GeneWiki Entry for {{ symbol }}{% endblock %} -{% block content %} -
-

GeneWiki Entries

-

- GeneWiki enables you to enrich the annotation of genes and transcripts. Please submit or edit a GeneWiki note (500 characters max) related to a gene, its transcripts, or proteins. When possible include PubMed identifiers or web resource links (URL addresses). Please ensure that the additions will have widespread use. For additional information, check the GeneWiki help document. -

-

GeneWiki For {{ symbol }}:

-
- GeneNetwork: -
- {% if wiki %} -
    - {% for entry in wiki %} -
  1. - {{ entry.get("comment") }} - {% if entry.get("web_url") %} - web - {% endif %} -
  2. - {% endfor %} -
- {% else %} -

- There are no GeneNetwork entries for {{ symbol }}. -

- {% endif %} -
-{% endblock %} diff --git a/gn2/wqflask/templates/wiki/genewiki.html b/gn2/wqflask/templates/wiki/genewiki.html new file mode 100644 index 00000000..63f36741 --- /dev/null +++ b/gn2/wqflask/templates/wiki/genewiki.html @@ -0,0 +1,30 @@ +{% extends "base.html" %} +{% block title %}GeneWiki Entry for {{ symbol }}{% endblock %} +{% block content %} +
+

GeneWiki Entries

+

+ GeneWiki enables you to enrich the annotation of genes and transcripts. Please submit or edit a GeneWiki note (500 characters max) related to a gene, its transcripts, or proteins. When possible include PubMed identifiers or web resource links (URL addresses). Please ensure that the additions will have widespread use. For additional information, check the GeneWiki help document. +

+

GeneWiki For {{ symbol }}:

+
+ GeneNetwork: +
+ {% if wiki %} +
    + {% for entry in wiki %} +
  1. + {{ entry.get("comment") }} + {% if entry.get("web_url") %} + web + {% endif %} +
  2. + {% endfor %} +
+ {% else %} +

+ There are no GeneNetwork entries for {{ symbol }}. +

+ {% endif %} +
+{% endblock %} diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index baed268b..d40cfdb7 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -1230,7 +1230,7 @@ def display_genewiki_page(symbol: str): ) ).json() return render_template( - "genewiki.html", + "wiki/genewiki.html", symbol=symbol, wiki=wiki ) -- cgit v1.2.3