diff options
author | Munyoki Kilyungi | 2024-10-11 15:32:37 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-10-14 23:53:41 +0300 |
commit | 443c87bc1c419a9973cbad161264642847162781 (patch) | |
tree | 83c482b1debd64215151dae9966075a07adbe4e4 /gn2/wqflask/templates | |
parent | e102579d48bf022c3d75b4aa7d63d4c5b8a4efe3 (diff) | |
download | genenetwork2-443c87bc1c419a9973cbad161264642847162781.tar.gz |
Add display page for NCBI RIF metadata.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2/wqflask/templates')
-rw-r--r-- | gn2/wqflask/templates/wiki/genewiki.html | 37 |
1 files changed, 29 insertions, 8 deletions
diff --git a/gn2/wqflask/templates/wiki/genewiki.html b/gn2/wqflask/templates/wiki/genewiki.html index 06fa1f3a..740e93c9 100644 --- a/gn2/wqflask/templates/wiki/genewiki.html +++ b/gn2/wqflask/templates/wiki/genewiki.html @@ -11,26 +11,22 @@ <h5> <strong>GeneNetwork:</strong> </h5> - {% if wiki %} - <ol class="list-group"> {% for entry in wiki %} <li class="list-group-item"> <div class="row"> - <div class="col-sm-1">{{ loop.index }}.</div> <div class="col-sm-6"> - {{ entry.get("comment") }} + {{ loop.index }}. {{ entry.get("comment") }} {% if entry.get("web_url") %} <sup> <small> <a href = "{{ entry.web_url }}" target = "_blank"> <span class = "glyphicon glyphicon-globe" aria-hidden = "true"></span>web</a></small></sup> {% endif %} </div> - <div class="col-sm-2"> {% if is_logged_in %} - <a href="{{ url_for('edit_wiki', comment_id=entry['id']) }}"> - <span class="glyphicon glyphicon-edit" aria-hidden="true"></span> - </a> + <a href="{{ url_for('edit_wiki', comment_id=entry['id']) }}"> + <span class="glyphicon glyphicon-edit" aria-hidden="true"></span> + </a> {% endif %} <sup><small>[<a href="/genewiki/{{ entry.id }}/history" target="_blank">history</a>]</small></sup> </div> @@ -43,5 +39,30 @@ <u> There are no GeneNetwork entries for <b> {{ symbol }}.</b></u> </p> {% endif %} + <h5> + <strong>GeneRIF from NCBI:</strong> + </h5> + {% if rif %} + <ol class="list-group"> + {% for entry in rif %} + <li class="list-group-item"> + <div class="row"> + <div class="col-sm-12"> + {{ loop.index }}. {{ entry.get("comment") }} + (<a href="http://www.ncbi.nlm.nih.gov/gene?cmd=Retrieve&dopt=Graphics&list_uids={{ entry.gene_id }}" + target="_blank">{{ entry.species }}</a>) + (<a href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids={{ entry.pubmed_id }}&dopt=Abstract" + target="_blank">PubMed</a>) + </div> + </div> + </li> + {% endfor %} + </ol> + {% else %} + <p class = "well"> + <u> There are no NCBI RIF entries for this for<b> {{ symbol }}.</b></u> + </p> + {% endif %} </div> + <div class="container"></div> {% endblock %} |