mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
30b4eb07f7
- This is a first pass at getting a more logical structure. The focus is on moving from admin/frontend to client/server. - The location of the databases is highly important, this isn't expected to change again In the future - client/assets should probably become public/ - more stuff should be shared (helpers etc) - cleanup some confusion around tpl and views
32 lines
818 B
Handlebars
32 lines
818 B
Handlebars
{{#contentFor 'bodyScripts'}}
|
|
<script src="/public/vendor/chart.min.js"></script>
|
|
<script>
|
|
$(document).ready(function(){
|
|
var ctx = $("#poststats").get(0).getContext("2d");
|
|
var data = [
|
|
{
|
|
value: 9,
|
|
color:"#9ec14a"
|
|
},
|
|
{
|
|
value : 4,
|
|
color : "#f9e15d"
|
|
},
|
|
{
|
|
value : 2,
|
|
color : "#EB5700"
|
|
}
|
|
];
|
|
var options = {
|
|
animationEasing: 'easeOutQuart',
|
|
percentageInnerCutout: 60,
|
|
segmentStrokeColor : "#efefef"
|
|
};
|
|
var poststats = new Chart(ctx).Doughnut(data, options);
|
|
});
|
|
</script>
|
|
{{/contentFor}}
|
|
|
|
{{!< default}}
|
|
<section class="js-widget-container">
|
|
</section> |