diff options
author | Daniel García Moreno <danigm@soleta.eu> | 2021-06-08 12:36:55 +0200 |
---|---|---|
committer | Daniel García Moreno <danigm@soleta.eu> | 2021-06-08 12:36:55 +0200 |
commit | 514fb84a565e8bc9eb550164d545fa72d77c2b38 (patch) | |
tree | 2afdc9b7a225cd9066ca11e77bcc862986fbe65e /ogcp/templates/base.html | |
parent | 22dcea19ff74871b7200bfc7f976836f436c5342 (diff) |
Add chart to dashboard
This patch adds an example chart using chartjs to the dashboard to show
the disk usage.
https://www.chartjs.org/docs/latest/getting-started/
Diffstat (limited to 'ogcp/templates/base.html')
-rw-r--r-- | ogcp/templates/base.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html index dca6205..372381a 100644 --- a/ogcp/templates/base.html +++ b/ogcp/templates/base.html @@ -53,6 +53,8 @@ <script src="{{ url_for('static', filename='AdminLTE/plugins/bootstrap/js/bootstrap.bundle.min.js') }}"></script> <!-- AdminLTE App --> <script src="{{ url_for('static', filename='AdminLTE/dist/js/adminlte.min.js') }}"></script> + <!-- ChartJS --> + <script src="{{ url_for('static', filename='AdminLTE/plugins/chart.js/Chart.min.js') }}"></script> <script> // error messages @@ -74,5 +76,7 @@ }) {% endfor %} </script> + + {% block extrabody %}{% endblock %} </body> </html> |