Apply patch

This commit is contained in:
Airistotal
2015-06-16 15:26:27 -05:00
parent 0ba756e0f2
commit 7e0ccbe214
3 changed files with 3082 additions and 0 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+27
View File
@@ -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}}">&#9679;</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>