Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'patrik-graph' into 'master'
Fix graphs loading See merge request ikus-soft/rdiffweb!287
- Loading branch information
Showing
6 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{% extends 'graphs.html' %} | ||
{% from 'include/chartkick.html' import bar_chart %} | ||
{% import 'include/chartkick.html' as chartkick with context %} | ||
{% set active_graph_page='activities' %} | ||
{% block graph_body %} | ||
<h2>{% trans %}Activities{% endtrans %}</h2> | ||
<p>{% trans %}Cumulative number of new, deleted and changed files by period of time.{% endtrans %}</p> | ||
{% set height=(22 * limit)|string + "px" %} | ||
{{ bar_chart(data.activities, stacked=True, height=height) }} | ||
{{ chartkick.bar_chart(data.activities, stacked=True, height=height) }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{% extends 'graphs.html' %} | ||
{% from 'include/chartkick.html' import line_chart %} | ||
{% import 'include/chartkick.html' as chartkick with context %} | ||
{% block graph_body %} | ||
<h2>{% trans %}Errors{% endtrans %}</h2> | ||
<p>{% trans %}Cumulative number of errors by period of time.{% endtrans %}</p> | ||
{{ line_chart(data.errors, colors=["#dc3912"]) }} | ||
{{ chartkick.line_chart(data.errors, colors=["#dc3912"]) }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{% extends 'graphs.html' %} | ||
{% from 'include/chartkick.html' import line_chart %} | ||
{% import 'include/chartkick.html' as chartkick with context %} | ||
{% block graph_body %} | ||
<h2>{% trans %}File count{% endtrans %}</h2> | ||
<p>{% trans %}Number of files excluding history data.{% endtrans %}</p> | ||
{{ line_chart(data.filecount) }} | ||
{{ chartkick.line_chart(data.filecount) }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{% extends 'graphs.html' %} | ||
{% from 'include/chartkick.html' import line_chart %} | ||
{% import 'include/chartkick.html' as chartkick with context %} | ||
{% block graph_body %} | ||
<h2>{% trans %}Source file size{% endtrans %}</h2> | ||
<p>{% trans %}Repository size excluding history data.{% endtrans %}</p> | ||
{{ line_chart(data.sourcefilesize) }} | ||
{{ chartkick.line_chart(data.sourcefilesize) }} | ||
<h2>{% trans %}Increment file size{% endtrans %}</h2> | ||
{{ line_chart(data.filesize) }} | ||
{{ chartkick.line_chart(data.filesize) }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{% extends 'graphs.html' %} | ||
{% from 'include/chartkick.html' import line_chart %} | ||
{% import 'include/chartkick.html' as chartkick with context %} | ||
{% block graph_body %} | ||
<h2>{% trans %}Elapsed Time{% endtrans %}</h2> | ||
<p>{% trans %}Average time to complete backup.{% endtrans %}</p> | ||
{{ line_chart(data.elapsedtime, prefix='min') }} | ||
{{ chartkick.line_chart(data.elapsedtime, prefix='min') }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters