Commits

Arnaud Grausem committed 8b12444

Bug fixed: Bad display of the proportion column in the report view

Comments (0)

Files changed (5)

media/css/report.css

 
 th.percentage
 {
-    width: 50px;
     text-align: center;
 }
 
 {
     border-left: 1px solid #DDDDDD;
     border-right: 1px solid #DDDDDD;
+    width: 60px;
 }
 
 td.total, th.total, td.hours, td.percentage

templates/report/includes/group_report.html

 <td class="comment">{{ activity.comment }}</td>
 <td class="hours">{{ activity.hours }}</td>
 {% else %}
-<td class="percentage">{{ activity.percentage|floatformat:2 }}</td>
+<td class="percentage">{{ activity.percentage|floatformat:2 }} %</td>
 <td class="hours">{{ activity.by_task }}</td>
 {% endif %}
 {% endblock %}

templates/report/includes/report.html

             {% block user_total %}
             <td class="user">{% trans "Total" %}</td>
             {% if not detailed %}
-            <td class="percentage total">100.00</td>
+            <td class="percentage total">100.00 %</td>
             {% endif %} 
             <td class="user total" {% if detailed %}colspan="3"{% endif %}>{{ report.total }}</td>
             {% endblock %}

templates/report/includes/task_report.html

 <td class="comment">{{ activity.comment|default:"&nbsp;" }}</td>
 <td class="hours">{{ activity.hours }}</td>
 {% else %}
-<td class="percentage">{{ activity.percentage|floatformat:2 }}</td>
+<td class="percentage">{{ activity.percentage|floatformat:2 }} %</td>
 <td class="hours">{{ activity.by_task }}</td>
 {% endif %}
 {% endblock %}

templates/report/includes/user_report.html

 <td class="comment">{{ activity.comment|default:"&nbsp;" }}</td>
 <td class="hours">{{ activity.hours }}</td>
 {% else %}
-<td class="percentage">{{ activity.percentage|floatformat:2 }}</td>
+<td class="percentage">{{ activity.percentage|floatformat:2 }} %</td>
 <td class="hours">{{ activity.by_task }}</td>
 {% endif %}
 {% endblock %}