blob: d0a3ead6c97e697de0c79a8218029926cdd7584a (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
{% extends "base.html" %}
{% block css %}
<style type="text/css">
h3 {
color: #336699;
}
table tbody th {
width: 18em;
}
table tbody th,
table tbody td {
padding: 3px;
}
table {
margin-left: 1em;
max-width: 60em !important;
}
</style>
{% endblock %}
{% block content %}
{{ flash_me() }}
<div class = "container container-fluid">
<h2>GeneWiki Entry History</h2>
{% if most_recent %}
<h3>
<strong>Most Recent Version:</strong>
</h3>
<table class="table table-responsive table-bordered">
<tbody>
<tr>
<th>Gene Symbol:</th>
<td>{{ most_recent["symbol"] }}</td>
</tr>
{% if most_recent["species"] %}
<tr>
<th>Species:</th>
<td>{{ most_recent["species"] }}</td>
</tr>
{% endif %}
{% if most_recent["pubmed_ids"] %}
<tr>
<th>PubMed IDs:</th>
<td>
{% for id in most_recent["pubmed_ids"] %}
<a href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids={{ id }}&dopt=Abstract">{{ id }}</a>
{% endfor %}
</td>
</tr>
{% endif %}
{% if most_recent["web_url"] %}
<tr>
<th>Web URL:</th>
<td>{{ most_recent["web_url"] }}</td>
</tr>
{% endif %}
<tr>
<th>Entry:</th>
<td>{{ most_recent["comment"] }}</td>
</tr>
{% if most_recent["categories"] %}
<tr>
<th>Category:</th>
<td>{{ '; '.join(most_recent["categories"]) }}</td>
</tr>
{% endif %}
<tr>
<th>Add Time:</th>
<td>{{ most_recent["created"] }}</td>
</tr>
{% if most_recent["reason"] %}
<tr>
<th>Reason for Modification:</th>
<td>{{ most_recent["reason"] }}</td>
</tr>
{% endif %}
</tbody>
</table>
{% endif %}
<h3>
<strong>Previous Version:</strong>
</h3>
{% if previous_versions %}
{% for version in previous_versions %}
<table class="table table-responsive table-bordered">
<tr>
<th>Gene Symbol:</th>
<td>{{ version["symbol"] }}</td>
</tr>
{% if version["species"] %}
<tr>
<th>Species:</th>
<td>{{ version["species"] }}</td>
</tr>
{% endif %}
{% if version["pubmed_ids"] %}
<tr>
<th>PubMed IDs:</th>
<td>
{% for id in version["pubmed_ids"] %}
<a href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids={{ id }}&dopt=Abstract">{{ id }}</a>
{% endfor %}
</td>
</tr>
{% endif %}
{% if version["web_url"] %}
<tr>
<th>Web URL:</th>
<td>{{ version["web_url"] }}</td>
</tr>
{% endif %}
<tr>
<th>Entry:</th>
<td>{{ version["comment"] }}</td>
</tr>
{% if version["categories"] %}
<tr>
<th>Category:</th>
<td>{{ '; '.join(version["categories"]) }}</td>
</tr>
{% endif %}
<tr>
<th>Add Time:</th>
<td>{{ version["created"] }}</td>
</tr>
{% if version["reason"] %}
<tr>
<th>Reason for Modification:</th>
<td>{{ version["reason"] }}</td>
</tr>
{% endif %}
</table>
{% endfor %}
{% else %}
<p>No Previous History</p>
{% endif %}
</div>
{% endblock %}
|