mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Apply patch
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,27 @@
|
||||
<%def name="jqs_style()">
|
||||
<style>
|
||||
.jqstooltip {
|
||||
-webkit-box-sizing: content-box;
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
</style>
|
||||
</%def>
|
||||
|
||||
<%def name="make_sparkline(id, data, sparktype, length)">
|
||||
<%
|
||||
color = '<span style="color: {{color}}">●</span>'
|
||||
if sparktype == "bar":
|
||||
tooltip = color + '{{value}} ' + length + '</span>'
|
||||
else:
|
||||
tooltip = color + '{{prefix}}{{y}} ' + length + '{{suffix}}</span>'
|
||||
%>
|
||||
<script>
|
||||
$(document).ready(function(e) {
|
||||
$("#${id}").sparkline(${data}, {
|
||||
type: '${sparktype}',
|
||||
tooltipFormat: '${tooltip}'
|
||||
}).css("width", "1%");
|
||||
})
|
||||
</script>
|
||||
</%def>
|
||||
Reference in New Issue
Block a user