aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/wiki/history.html
blob: bda802d39a6f63552c7e2bc3cbdc153248d3b5ea (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
48
49
50
51
52
53
54
55
56
57
{% extends "base.html" %}
{% block content %}
    {{ flash_me() }}
    <div class = "container container-fluid">
        <div class="row">
            <div class="col-sm-9">
                <h2 class="text-info">GeneWiki Entry History</h2>
                {% for entry in entries %}
                    <h3 class="text-info">
                        {% if loop.index0 == 0 %}
                            <strong>Most Recent Version:</strong>
                        {% elif loop.index0 == 1 %}
                            <strong>Previous Version:</strong>
                        {% endif %}
                    </h3>
                    <table class="table table-responsive table-bordered">
                        <tbody>
                            <tr>
                                <th>Gene Symbol:</th>
                                <td>{{ entry.symbol }}</td>
                            </tr>
                            <tr>
                                <th>PubMed IDs:</th>
                                <td>
                                    {% for id in entry.pubmed_ids %}
                                        <a href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids={{ id }}&dopt=Abstract">{{ id }}</a>&nbsp;
                                    {% endfor %}
                                    {% if not entry.pubmed_ids %}Not Available{% endif %}
                                </td>
                            </tr>
                            <tr>
                                <th>Web URL:</th>
                                <td>{{ entry.web_url or "Not Available" }}</td>
                            </tr>
                            <tr>
                                <th>Entry:</th>
                                <td>{{ entry.comment }}</td>
                            </tr>
                            <tr>
                                <th>Category:</th>
                                <td>{{ '; '.join(entry.categories) or "Not Available" }}</td>
                            </tr>
                            <tr>
                                <th>Add Time:</th>
                                <td>{{ entry.created }}</td>
                            </tr>
                            <tr>
                                <th>Reason for Modification:</th>
                                <td>{{ entry.reason or "Not Available" }}</td>
                            </tr>
                        </tbody>
                    </table>
                {% endfor %}
            </div>
        </div>
    </div>
{% endblock %}