Permalink
Browse files

Remove some tabs.

  • Loading branch information...
1 parent 88a31da commit d65af79c86508e1d8ae9622814913019dbf5442f @alex committed Jan 23, 2010
Showing with 24 additions and 24 deletions.
  1. +2 −2 README.rst
  2. +22 −22 django_histograms/templates/histograms/report.html
View
@@ -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' %}
@@ -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.