Skip to content

Commit

Permalink
Add test to check starred user list.
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikmaji committed Jun 10, 2016
1 parent ca170b2 commit 9d70c8d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
20 changes: 20 additions & 0 deletions frontend_tests/node_tests/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,17 +661,37 @@ function render(template_name, args) {
{
"my_fullname": true,
"type_desc": "Active",
"starred": false,
"type": "active",
"num_unread": 0,
"email": "lear@zulip.com",
"name": "King Lear"
},
{
"type_desc": "Away",
"starred": true,
"type": "away",
"num_unread": 5,
"email": "othello@zulip.com",
"name": "Othello"
},
{
"my_fullname": true,
"type_desc": "Active",
"starred": true,
"type": "active",
"num_unread": 0,
"email": "cordelia@zulip.com",
"name": "Cordelia Lear"
},
{
"my_fullname": true,
"type_desc": "Away",
"starred": false,
"type": "away",
"num_unread": 5,
"email": "prospero@zulip.com",
"name": "Prospero from The Tempest"
}
]
};
Expand Down
4 changes: 1 addition & 3 deletions static/templates/user_presence_row.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
<span class="user-status-indicator"></span>
<span class="user-device-indicator">{{#if mobile}}{{/if}}</span>
<a href="#" data-email="{{email}}" data-name="{{name}}" title="{{name}} {{type_desc}}"
class="{{#if my_fullname}} my_fullname{{/if}}">{{name}}
{{#if starred}}(<span class="icon-vector-star"></span>){{/if}}
</a>
class="{{#if my_fullname}} my_fullname{{/if}}">{{name}}{{#if starred}}(<span class="icon-vector-star"></span>){{/if}}</a>
</span>
<span class="count"><span class="value">{{#if num_unread}}{{num_unread}}{{/if}}</span></span>
<span class="arrow"><i class="icon-vector-chevron-down"></i></span>
Expand Down
1 change: 1 addition & 0 deletions zproject/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@
{'GET': 'list_subscriptions_backend',
'POST': 'add_subscriptions_backend',
'PATCH': 'update_subscriptions_backend'}),

) + patterns('zerver.tornadoviews',
url(r'^events$', 'rest_dispatch',
{'GET': 'get_events_backend',
Expand Down

0 comments on commit 9d70c8d

Please sign in to comment.