Skip to content

Commit

Permalink
Remove some tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Jan 23, 2010
1 parent 88a31da commit d65af79
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -17,5 +17,5 @@ Using histograms in other pages

You can use the built-in ``histogram_for`` template tag::

{% load histograms %}
{% histogram_for 'appname.Model' 'histogram_field' %}
{% load histograms %}
{% histogram_for 'appname.Model' 'histogram_field' %}
44 changes: 22 additions & 22 deletions django_histograms/templates/histograms/report.html
@@ -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 %}

0 comments on commit d65af79

Please sign in to comment.