Permalink
Browse files

Add ideas to mobile statistics tab (bug 663512)

  • Loading branch information...
1 parent bb08d1f commit 0403b847a9276af8978001006f19bbe858bbc521 @tofumatt tofumatt committed Jun 10, 2011
Showing with 10 additions and 2 deletions.
  1. +10 −2 apps/dashboard/templates/dashboard/mobile/overview.html
@@ -2,20 +2,28 @@
<h2><a class="toggle" href="#">{{ _('Type of Feedback') }}</a></h2>
<ul class="collapsee filters bars">
- {% if not defaults['sentiment'] == 'sad' %}
+ {% if defaults['sentiment'] not in ('sad', 'ideas'): %}
{% with sel = (defaults['sentiment'] == 'happy') %}
{{ mobile_bar(name='sentiment', id='praise_bar', value='happy',
selected=sel, count=sent.happy, total=sent.total,
label=_('Praise')) }}
{% endwith %}
{% endif %}
- {% if not defaults['sentiment'] == 'happy' %}
+ {% if defaults['sentiment'] not in ('happy', 'ideas'): %}
{% with sel = (defaults['sentiment'] == 'sad') %}
{{ mobile_bar(name='sentiment', id='issue_bar', value='sad',
selected=sel, count=sent.sad, total=sent.total,
label=_('Issues')) }}
{% endwith %}
{% endif %}
+
+ {% if defaults['sentiment'] not in ('happy', 'sad'): %}
+ {% with sel = (defaults['sentiment'] == 'ideas') %}
+ {{ mobile_bar(name='sentiment', id='idea_bar', value='ideas',
+ selected=sel, count=sent.ideas, total=sent.total,
+ label=_('Ideas')) }}
+ {% endwith %}
+ {% endif %}
</ul>
</div>

0 comments on commit 0403b84

Please sign in to comment.