actions: Add narrowing to the popover

This addresses another usability problem from #470.

I decided it was too confusing to have menu options for both stream and subject
narrowing, so I went with the latter.

(imported from commit 948fca954a265029ceb27c72ae178015d513785d)
This commit is contained in:
Keegan McAllister 2013-02-09 02:47:01 -05:00
parent 3609f5fdee
commit acf61d9c48
1 changed files with 18 additions and 1 deletions

View File

@ -17,11 +17,28 @@
</a>
</li>
{{/if}}
{{#if message.is_stream}}
<li>
<a onclick="narrow.from_popover({{message.id}}); narrow.by_subject();">
<i class="icon-bullhorn"></i>
Narrow to this subject on stream <b>{{message.display_recipient}}</b>
</a>
</li>
{{else}}
<li>
<a onclick="narrow.from_popover({{message.id}}); narrow.by_recipient();">
<i class="icon-user"></i>
Narrow to this private message conversation
</a>
</li>
{{/if}}
<li>
<a onclick="respond_to_message();">
<i class="icon-share-alt"></i>
{{#if message.is_stream}}
Reply to stream <b>{{message.display_recipient}}</b> on this subject
Reply to this subject on stream <b>{{message.display_recipient}}</b>
{{else}}
Reply to this private message
{{/if}}