Size in toolbar
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
<script>
|
||||
var apiEndpoint = '{{.APIEndpoint}}';
|
||||
|
||||
{{template `util.js`}}
|
||||
|
||||
Chart.defaults.global.defaultFontColor = "#b3b3b3";
|
||||
Chart.defaults.global.defaultFontSize = 15;
|
||||
Chart.defaults.global.defaultFontFamily = "Ubuntu";
|
||||
@@ -79,14 +81,7 @@
|
||||
},
|
||||
ticks: {
|
||||
callback: function(value, index, values) {
|
||||
if (value >= 1e12) {
|
||||
return Math.round(value/1e9)/1e3 + " TB";
|
||||
} else if (value >= 1e9) {
|
||||
return Math.round(value/1e6)/1e3 + " GB";
|
||||
} else if (value >= 1e6) {
|
||||
return Math.round(value/1e3)/1e3 + " MB";
|
||||
}
|
||||
return value/1e3 + " kB";
|
||||
return formatDataVolume(value, 3);
|
||||
}
|
||||
},
|
||||
gridLines: {
|
||||
|
@@ -41,6 +41,8 @@
|
||||
<div id="stat_views" style="text-align: center;">N/A</div>
|
||||
<div id="stat_downloads_label" class="toolbar_label">Downloads</div>
|
||||
<div id="stat_downloads" style="text-align: center;">N/A</div>
|
||||
<div id="stat_size_label" class="toolbar_label">Size</div>
|
||||
<div id="stat_size" style="text-align: center;">N/A</div>
|
||||
|
||||
<button id="btn_download" class="toolbar_button button_full_width">
|
||||
{{template `save.svg` .}}
|
||||
|
Reference in New Issue
Block a user