Files
zulip/static/templates/user_group_info_popover_content.handlebars
Eric Eslinger 786bda674c popovers: Add a popover for group mentions.
This adds a click handler to `.user-group-mention` which works in a
fashion that is quite similar to `.user-mention`. It generates and
displays a popover.

The popover has a list of members, their online status (if they are
not bots) or their bot status if they are bots (it's not clear whether
ultimately bots should be able to be members of usergroups, but I'm
able to add one, so I thought it would be worth supporting).

The popover's `UL` element has max-height and overflow-y atttributes
so large groups will grow a scrollbar.

Fixes #8300.
2018-02-16 13:37:02 -08:00

31 lines
868 B
Handlebars

{{! Contents of the "user group info" popup }}
<div class="group-info">
<div class="group-name"> {{group_name}} </div>
<div class="group-description">
{{group_description}}
</div>
</div>
<hr>
<ul class="nav nav-list member-list">
{{#each members}}
<li class="user_{{presence_status}}">
{{#if is_active }}
{{#if is_bot}}
<i class="zulip-icon bot" aria-hidden="true"></i>
{{else}}
<span class="user-status-indicator popover_user_presence" title="{{user_last_seen_time_status}}"></span>
{{/if}}
{{/if}}
<span>{{full_name}}</span>
</li>
{{/each}}
</ul>
<ul class="nav nav-list">
<li>
<a href="#organization/user-groups-admin">
<i class="icon-vector-cog"></i>
{{t 'Manage user groups' }}
</a>
</li>
</ul>