Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
24 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
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,31 +1,31 @@ | ||
{% if css %} | ||
<style type="text/css"> | ||
{{ css }} | ||
</style> | ||
<style type="text/css"> | ||
{{ css }} | ||
</style> | ||
{% endif %} | ||
|
||
{% if results.1 %} | ||
<p class="histogram-note"> | ||
During this time period there were {{ total }} entries. | ||
<p class="histogram-note"> | ||
During this time period there were {{ total }} entries. | ||
</p> | ||
{% endif %} | ||
|
||
{% for label, data, count in results %} | ||
<div class="histogram"> | ||
<h2 style="padding-top: 1em;">{{ label }} ({{ count }})</h2> | ||
<ul> | ||
{% for num in data %} | ||
<li> | ||
<a href="#" title="{{ num }}"> | ||
{% if day_labels %} | ||
<span class="label">{{ forloop.counter }}</span> | ||
{% endif %} | ||
<span class="count" style="height: {% widthratio num total 100 %}%"> | ||
({{ num }}) | ||
</span> | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<div class="histogram"> | ||
<h2 style="padding-top: 1em;">{{ label }} ({{ count }})</h2> | ||
<ul> | ||
{% for num in data %} | ||
<li> | ||
<a href="#" title="{{ num }}"> | ||
{% if day_labels %} | ||
<span class="label">{{ forloop.counter }}</span> | ||
{% endif %} | ||
<span class="count" style="height: {% widthratio num total 100 %}%"> | ||
({{ num }}) | ||
</span> | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endfor %} |