Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add ideas to mobile statistics tab (bug 663512)

  • Loading branch information...
commit 0403b847a9276af8978001006f19bbe858bbc521 1 parent bb08d1f
Matthew Riley MacPherson tofumatt authored

Showing 1 changed file with 10 additions and 2 deletions. Show diff stats Hide diff stats

  1. +10 2 apps/dashboard/templates/dashboard/mobile/overview.html
12 apps/dashboard/templates/dashboard/mobile/overview.html
@@ -2,7 +2,7 @@
2 2 <h2><a class="toggle" href="#">{{ _('Type of Feedback') }}</a></h2>
3 3
4 4 <ul class="collapsee filters bars">
5   - {% if not defaults['sentiment'] == 'sad' %}
  5 + {% if defaults['sentiment'] not in ('sad', 'ideas'): %}
6 6 {% with sel = (defaults['sentiment'] == 'happy') %}
7 7 {{ mobile_bar(name='sentiment', id='praise_bar', value='happy',
8 8 selected=sel, count=sent.happy, total=sent.total,
@@ -10,12 +10,20 @@
10 10 {% endwith %}
11 11 {% endif %}
12 12
13   - {% if not defaults['sentiment'] == 'happy' %}
  13 + {% if defaults['sentiment'] not in ('happy', 'ideas'): %}
14 14 {% with sel = (defaults['sentiment'] == 'sad') %}
15 15 {{ mobile_bar(name='sentiment', id='issue_bar', value='sad',
16 16 selected=sel, count=sent.sad, total=sent.total,
17 17 label=_('Issues')) }}
18 18 {% endwith %}
19 19 {% endif %}
  20 +
  21 + {% if defaults['sentiment'] not in ('happy', 'sad'): %}
  22 + {% with sel = (defaults['sentiment'] == 'ideas') %}
  23 + {{ mobile_bar(name='sentiment', id='idea_bar', value='ideas',
  24 + selected=sel, count=sent.ideas, total=sent.total,
  25 + label=_('Ideas')) }}
  26 + {% endwith %}
  27 + {% endif %}
20 28 </ul>
21 29 </div>

0 comments on commit 0403b84

Please sign in to comment.
Something went wrong with that request. Please try again.