|
a |
|
b/qiita_pet/templates/public.html |
|
|
1 |
{% extends sitebase.html %} |
|
|
2 |
|
|
|
3 |
{% block head %} |
|
|
4 |
<script type="text/javascript"> |
|
|
5 |
$(document).ready(function() { |
|
|
6 |
$('#artifacts-table').dataTable({"caption": "Artifacts", "order": [[ 1, "asc" ]]}); |
|
|
7 |
}); |
|
|
8 |
</script> |
|
|
9 |
{% end %} |
|
|
10 |
|
|
|
11 |
{% block content %} |
|
|
12 |
|
|
|
13 |
<div class="col-md-12"> |
|
|
14 |
{% if user is not None %} |
|
|
15 |
<h2><a href="{% raw qiita_config.portal_dir %}/study/description/{{study_info['study_id']}}">{{study_info['study_title']}} - ID {{study_info['study_id']}}</a></h2> |
|
|
16 |
{% else %} |
|
|
17 |
<h2>{{study_info['study_title']}} - ID {{study_info['study_id']}}</h2> |
|
|
18 |
{% end %} |
|
|
19 |
|
|
|
20 |
<table border="0"> |
|
|
21 |
<tr> |
|
|
22 |
<td valign="top"> |
|
|
23 |
<b>Alias:</b> {{study_info['study_alias']}}<br /> |
|
|
24 |
<b>Abstract:</b> {{study_info['study_abstract']}}<br /> |
|
|
25 |
<b>Description:</b> {{study_info['study_description']}}<br /> |
|
|
26 |
<b>Owner:</b> {{study_info['owner']}}<br /> |
|
|
27 |
<b>Publications:</b> {% raw study_info['publications'] %}<br /> |
|
|
28 |
<b>PI:</b> {% raw study_info['principal_investigator'] %}<br /> |
|
|
29 |
<b>EBI:</b> {% raw study_info['ebi_study_accession'] %}<br /> |
|
|
30 |
</td> |
|
|
31 |
</tr> |
|
|
32 |
</table> |
|
|
33 |
</div> |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
<div class="col-md-12"> |
|
|
37 |
<hr/> |
|
|
38 |
<table id='artifacts-table' class="display table-bordered table-hover"> |
|
|
39 |
<caption>Artifacts</caption> |
|
|
40 |
<thead> |
|
|
41 |
<tr> |
|
|
42 |
<th>ID</th> |
|
|
43 |
<th>Data Type</th> |
|
|
44 |
<th>Platform</th> |
|
|
45 |
<th>Target Gene</th> |
|
|
46 |
<th>Target Subfragment</th> |
|
|
47 |
<th>Algorithm</th> |
|
|
48 |
</tr> |
|
|
49 |
</thead> |
|
|
50 |
{% for ainfo in artifacts_info %} |
|
|
51 |
{% if not ainfo['deprecated'] and ainfo['active'] %} |
|
|
52 |
<tr> |
|
|
53 |
<td> |
|
|
54 |
{{ainfo['artifact_id']}} <a class="btn btn-default glyphicon glyphicon-download-alt" href="/public_artifact_download/?artifact_id={{ainfo['artifact_id']}}" style="word-spacing: -10px;"></a> |
|
|
55 |
</td> |
|
|
56 |
<td>{{ainfo['data_type']}}</td> |
|
|
57 |
<td>{{ainfo['platform']}}</td> |
|
|
58 |
<td>{{ainfo['target_gene']}}</td> |
|
|
59 |
<td> |
|
|
60 |
{% if ainfo['target_subfragment'] != [None] %} |
|
|
61 |
{{','.join(ainfo['target_subfragment'])}} |
|
|
62 |
{% end %} |
|
|
63 |
</td> |
|
|
64 |
<td>{{ainfo['algorithm']}}</td> |
|
|
65 |
</tr> |
|
|
66 |
{% end %} |
|
|
67 |
{% end %} |
|
|
68 |
</table> |
|
|
69 |
</div> |
|
|
70 |
|
|
|
71 |
{% end %} |