Skip to content

Commit

Permalink
i done a stupid with escaping - closes #41
Browse files Browse the repository at this point in the history
  • Loading branch information
tsumaru720 committed Feb 23, 2020
1 parent ab49a81 commit 413107d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions themes/default/html/breakdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@
datasets: [
{% for dataset in log %}
{
label: '{{ dataset.name|raw }}',
backgroundColor: pastel_colour('{{ dataset.name|raw }}'),
borderColor: pastel_colour('{{ dataset.name|raw }}'),
label: '{{ dataset.name|escape('js') }}',
backgroundColor: pastel_colour('{{ dataset.name|escape('js') }}'),
borderColor: pastel_colour('{{ dataset.name|escape('js') }}'),
borderWidth: 1,
data: [
{% for data in dataset.data %}
Expand Down Expand Up @@ -151,7 +151,7 @@

var labels = [
{% for asset in mostRecent %}
'{{ asset.name|raw }}',
'{{ asset.name|escape('js') }}',
{% endfor %}
];

Expand All @@ -160,7 +160,7 @@
datasets: [{
backgroundColor: [
{% for asset in mostRecent %}
pastel_colour('{{ asset.name|raw }}'),
pastel_colour('{{ asset.name|escape('js') }}'),
{% endfor %}
],
borderWidth: 1,
Expand Down

0 comments on commit 413107d

Please sign in to comment.