forked from bimberlabinternal/BimberLabKeyModules
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquickLinks.html
More file actions
42 lines (38 loc) · 2.18 KB
/
quickLinks.html
File metadata and controls
42 lines (38 loc) · 2.18 KB
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
<style type="text/css">
ul.mgapList {
padding-left: 20px;
padding-top: 5px;
}
</style>
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext4.onReady(function (){
var releaseId = mGAP.Utils.getMGapReleaseId();
var jbrowseId = mGAP.Utils.getMGapJBrowseSession();
var humanJbrowseId = mGAP.Utils.getHumanMGapJBrowseSession();
var releaseHasLuceneIndex = mGAP.Utils.releaseHasLuceneIndex();
if (releaseId){
Ext4.fly(Ext4.query('#currentReleaseDiv')[0]).update(
'<span>Current Release:</span>' +
'<ul class="mgapList">' +
'<li><a href="' + LABKEY.ActionURL.buildURL('mgap', 'variantList', null) + '">Predicted Damaging Variants</a></li>' +
(jbrowseId ? '<li><a href="' + LABKEY.ActionURL.buildURL('jbrowse', 'browser', null, {database: jbrowseId}) + '">Genome Browser (Macaque)</a></li>' : '') +
(humanJbrowseId ? '<li><a href="' + LABKEY.ActionURL.buildURL('jbrowse', 'browser', null, {database: humanJbrowseId}) + '">Genome Browser (Human)</a></li>' : '') +
(releaseHasLuceneIndex ? '<li><a href="' + LABKEY.ActionURL.buildURL('mgap', 'genomeBrowser', null, {target: 'variantSearch'}) + '">Full-text Variant Search</a></li>' : '') +
'</ul>'
);
}
});
</script>
<span id="currentReleaseDiv"></span>
<p></p>
<span>Other Links:</span><br>
<ul class="mgapList">
<li><a href="<%=contextPath%>/project/<%=containerPath%>/begin.view?pageId=variants" >All Variant Catalog Releases</a></li>
<li><a href="<%=contextPath%>/project/<%=containerPath%>/begin.view?pageId=datasets" >Raw Sequence Data</a></li>
<li><a href="<%=contextPath%>/mgap/<%=containerPath%>/annotation.view" >Annotation Strategy</a></li>
<li><a href="<%=contextPath%>/mgap/<%=containerPath%>/externalData.view" >Datasets and Cohorts</a></li>
</ul>
<br>
<div style="max-width: 350px;">
We'd love to hear your feedback! <a href="<%=contextPath%><%=containerPath%>/mgap-contact.view">Click here</a> to send a help or feature request, or email <a href="mailto:mgap@ohsu.edu">mgap@ohsu.edu</a> for any questions.
</div>