Mercurial > kallithea
changeset 6828:b44cc07c2f9b
statistics: only load the Flot library when we need it
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 23 Aug 2017 03:26:58 +0200 |
parents | 4daff1d77dd4 |
children | 322ce5147fe0 |
files | kallithea/templates/base/root.html kallithea/templates/summary/statistics.html |
diffstat | 2 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/base/root.html Wed Aug 23 03:26:58 2017 +0200 +++ b/kallithea/templates/base/root.html Wed Aug 23 03:26:58 2017 +0200 @@ -70,7 +70,6 @@ <script type="text/javascript" src="${h.url('/js/jquery.dataTables.min.js', ver=c.kallithea_version)}"></script> <script type="text/javascript" src="${h.url('/js/bootstrap.js', ver=c.kallithea_version)}"></script> <script type="text/javascript" src="${h.url('/js/select2/select2.js', ver=c.kallithea_version)}"></script> - <script type="text/javascript" src="${h.url('/js/yui.flot.js', ver=c.kallithea_version)}"></script> <script type="text/javascript" src="${h.url('/js/native.history.js', ver=c.kallithea_version)}"></script> <script type="text/javascript" src="${h.url('/js/base.js', ver=c.kallithea_version)}"></script> ## EXTRA FOR JS
--- a/kallithea/templates/summary/statistics.html Wed Aug 23 03:26:58 2017 +0200 +++ b/kallithea/templates/summary/statistics.html Wed Aug 23 03:26:58 2017 +0200 @@ -15,6 +15,7 @@ <%block name="head_extra"> <link href="${h.url('atom_feed_home',repo_name=c.db_repo.repo_name,api_key=request.authuser.api_key)}" rel="alternate" title="${_('%s ATOM feed') % c.repo_name}" type="application/atom+xml" /> <link href="${h.url('rss_feed_home',repo_name=c.db_repo.repo_name,api_key=request.authuser.api_key)}" rel="alternate" title="${_('%s RSS feed') % c.repo_name}" type="application/rss+xml" /> + <script type="text/javascript" src="${h.url('/js/yui.flot.js', ver=c.kallithea_version)}"></script> </%block> <%def name="main()">