aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/wiki/genewiki.html
blob: 06fa1f3aa55f8d79418be4f70f960a186c46c1f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{% extends "index_page.html" %}
{% block title %}GeneWiki Entry for {{ symbol }}{% endblock %}
{% block content %}
    {{ flash_me() }}
    <div class = "container">
        <h1 class = "page-header">GeneWiki Entries</h1>
        <p>
            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 <a href="https://gn1.genenetwork.org/GeneWikihelp.html" target="_blank">help document</a>.
        </p>
        <h3>GeneWiki For {{ symbol }}:</h3>
        <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") }}
                                {% 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>
                                {% endif %}
                                <sup><small>[<a href="/genewiki/{{ entry.id }}/history" target="_blank">history</a>]</small></sup>
                            </div>
                        </div>
                    </li>
                {% endfor %}
            </ol>
        {% else %}
            <p class = "well">
                <u> There are no GeneNetwork entries for <b> {{ symbol }}.</b></u>
            </p>
        {% endif %}
    </div>
{% endblock %}