From bbf79eeec5dfc23dfe4583af61b8ebe4ce97aa6f Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 27 Aug 2024 10:03:25 +0300 Subject: Rename generif -> genewiki. Signed-off-by: Munyoki Kilyungi --- gn2/wqflask/templates/generif.html | 101 ------------------------------------ gn2/wqflask/templates/genewiki.html | 101 ++++++++++++++++++++++++++++++++++++ gn2/wqflask/views.py | 4 +- 3 files changed, 103 insertions(+), 103 deletions(-) delete mode 100644 gn2/wqflask/templates/generif.html create mode 100644 gn2/wqflask/templates/genewiki.html diff --git a/gn2/wqflask/templates/generif.html b/gn2/wqflask/templates/generif.html deleted file mode 100644 index ac815b43..00000000 --- a/gn2/wqflask/templates/generif.html +++ /dev/null @@ -1,101 +0,0 @@ -{% extends "base.html" %} - -{% block title %} -GeneWiki Entry for {{ symbol }} -{% endblock %} - -{% block css %} - - -{% endblock %} -{% block content %} - - -
-

GeneWiki For {{ symbol }}

-

GeneWiki enables you to enrich the annotation of genes and transcripts.

- -

- GeneNetwork - - {{ entries.gn_entries|length if entries.gn_entries[0] else 0 }} - : -

- {% if entries.gn_entries[0] %} - - - {% else %} - -

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

- - {% endif %} - -

- GeneRIF from NCBI - - {{ entries.ncbi_entries|length if entries.ncbi_entries[0] else 0 }} - : -

- {% if entries.ncbi_entries[0] %} -
    - {% for entry in entries.ncbi_entries %} -
  1. - {{ entry.entry.value }} - ({{ entry["speciesBinomialName"]["value"] }}) - {% if entry.PubMedId.value != "" %} - {% set pmids = entry.PubMedId.value.split(",") %} - (PubMed: {% for id in pmids %} {{ id }}{% endfor %}) - {{ entry.createdOn.value }} - {% endif %} -
  2. - {% endfor %} -
- {% else %} -

There are no NCBI entries for {{ symbol }}.

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

GeneWiki For {{ symbol }}

+

GeneWiki enables you to enrich the annotation of genes and transcripts.

+ +

+ GeneNetwork + + {{ entries.gn_entries|length if entries.gn_entries[0] else 0 }} + : +

+ {% if entries.gn_entries[0] %} + + + {% else %} + +

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

+ + {% endif %} + +

+ GeneRIF from NCBI + + {{ entries.ncbi_entries|length if entries.ncbi_entries[0] else 0 }} + : +

+ {% if entries.ncbi_entries[0] %} +
    + {% for entry in entries.ncbi_entries %} +
  1. + {{ entry.entry.value }} + ({{ entry["speciesBinomialName"]["value"] }}) + {% if entry.PubMedId.value != "" %} + {% set pmids = entry.PubMedId.value.split(",") %} + (PubMed: {% for id in pmids %} {{ id }}{% endfor %}) + {{ entry.createdOn.value }} + {% endif %} +
  2. + {% endfor %} +
+ {% else %} +

There are no NCBI entries for {{ symbol }}.

+ {% endif %} +
+{% endblock %} diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index 2442da03..9346c22b 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -1221,7 +1221,7 @@ def display_diffs_users(): @app.route("/genewiki/") -def display_generif_page(symbol): +def display_genewiki_page(symbol): """Fetch GeneRIF metadata from GN3 and display it""" entries = requests.get( urljoin( @@ -1230,7 +1230,7 @@ def display_generif_page(symbol): ) ).json() return render_template( - "generif.html", + "genewiki.html", symbol=symbol, entries=entries ) -- cgit v1.2.3