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:: You can use the built-in ``histogram_for`` template tag::


{% load histograms %} {% load histograms %}
{% histogram_for 'appname.Model' 'histogram_field' %} {% histogram_for 'appname.Model' 'histogram_field' %}
44 changes: 22 additions & 22 deletions django_histograms/templates/histograms/report.html
@@ -1,31 +1,31 @@
{% if css %} {% if css %}
<style type="text/css"> <style type="text/css">
{{ css }} {{ css }}
</style> </style>
{% endif %} {% endif %}


{% if results.1 %} {% if results.1 %}
<p class="histogram-note"> <p class="histogram-note">
During this time period there were {{ total }} entries. During this time period there were {{ total }} entries.
</p> </p>
{% endif %} {% endif %}


{% for label, data, count in results %} {% for label, data, count in results %}
<div class="histogram"> <div class="histogram">
<h2 style="padding-top: 1em;">{{ label }} ({{ count }})</h2> <h2 style="padding-top: 1em;">{{ label }} ({{ count }})</h2>
<ul> <ul>
{% for num in data %} {% for num in data %}
<li> <li>
<a href="#" title="{{ num }}"> <a href="#" title="{{ num }}">
{% if day_labels %} {% if day_labels %}
<span class="label">{{ forloop.counter }}</span> <span class="label">{{ forloop.counter }}</span>
{% endif %} {% endif %}
<span class="count" style="height: {% widthratio num total 100 %}%"> <span class="count" style="height: {% widthratio num total 100 %}%">
({{ num }}) ({{ num }})
</span> </span>
</a> </a>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
{% endfor %} {% endfor %}

0 comments on commit d65af79

Please sign in to comment.