From dd3404501ab59f14feb0ac1834806fd5699a6e90 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 27 Aug 2024 10:18:40 +0300 Subject: Apply dj-lint jinja linter against genewiki.html. * gn2/wqflask/templates/genewiki.html: Run: ``` djlint gn2/wqflask/templates/genewiki.html \ --profile=jinja --reformat --format-css \ --format-js ``` Signed-off-by: Munyoki Kilyungi --- gn2/wqflask/templates/genewiki.html | 189 ++++++++++++++++++------------------ 1 file changed, 92 insertions(+), 97 deletions(-) (limited to 'gn2/wqflask') diff --git a/gn2/wqflask/templates/genewiki.html b/gn2/wqflask/templates/genewiki.html index ac815b43..e2632bea 100644 --- a/gn2/wqflask/templates/genewiki.html +++ b/gn2/wqflask/templates/genewiki.html @@ -1,101 +1,96 @@ -{% extends "base.html" %} - -{% block title %} -GeneWiki Entry for {{ symbol }} -{% endblock %} - +{% 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 %} -
+
+

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 < b > {{ 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 %} + < a href="http://rdf.ncbi.nlm.nih.gov/pubmed/{{ id }}" target="_blank" > {{ id }} < /a> + {% endfor %} + ) + {{ entry.createdOn.value }} + {% endif %} +
  2. + {% endfor %} +
+ {% else %} +

+ There are no NCBI entries for < b > {{ symbol }}. +

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