[damned-lies] Get fig_count from the proper object



commit c44fe6c9e7bb8c16ae59e0891f1fa1e36085f647
Author: Claude Paroz <claude 2xlibre net>
Date:   Tue Mar 22 10:59:39 2011 +0100

    Get fig_count from the proper object

 templates/stats_show.html |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/templates/stats_show.html b/templates/stats_show.html
index 492e81e..85632f5 100644
--- a/templates/stats_show.html
+++ b/templates/stats_show.html
@@ -43,7 +43,7 @@
   <table class="stats">
     <thead><tr>
         <th>{% trans "Language" %}</th><th>{% trans "Translated" %}</th>
-        {% if pot_stat.fig_count %}
+        {% if pot_stat.full_po.fig_count %}
         <th></th>
         {% endif %}
         <th>{% trans "Graph" %}</th>
@@ -60,7 +60,7 @@
         {% endwith %}
       </td>
       <td>{{ line.get_translationstat|safe }}</td>
-      {% if pot_stat.fig_count %}
+      {% if pot_stat.full_po.fig_count %}
       <td><a href="{% url stats.views.docimages module_name=module.name,potbase=pot_stat.domain.name,branch_name=branch.name,langcode=line.language.locale %}">
           <img src="{{ MEDIA_URL }}img/figure.png" alt="{% trans "Display document figures" %}"></a>
       </td>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]