mirror of https://github.com/zulip/zulip.git
group PMs: Fix hrefs in right sidebar for groups.
For the "GROUP PMs" part of the right sidebar, we now have accurate hrefs when you hover over the groups or right-click to copy links or open links in new tabs.
This commit is contained in:
parent
c94b8c39d0
commit
c0281498e6
|
@ -354,6 +354,7 @@ exports.update_huddles = function () {
|
||||||
return {
|
return {
|
||||||
user_ids_string: huddle,
|
user_ids_string: huddle,
|
||||||
name: exports.full_huddle_name(huddle),
|
name: exports.full_huddle_name(huddle),
|
||||||
|
href: narrow.huddle_with_uri(huddle),
|
||||||
fraction_present: exports.huddle_fraction_present(huddle, exports.presence_info),
|
fraction_present: exports.huddle_fraction_present(huddle, exports.presence_info),
|
||||||
short_name: exports.short_huddle_name(huddle),
|
short_name: exports.short_huddle_name(huddle),
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<li data-user-ids="{{user_ids_string}}" class="group-pms-sidebar-entry narrow-filter">
|
<li data-user-ids="{{user_ids_string}}" class="group-pms-sidebar-entry narrow-filter">
|
||||||
<span class="selectable_sidebar_block">
|
<span class="selectable_sidebar_block">
|
||||||
<span class="group-pm-status-indicator" style="background:rgba(68,194,29,{{fraction_present}});"></span>
|
<span class="group-pm-status-indicator" style="background:rgba(68,194,29,{{fraction_present}});"></span>
|
||||||
<a href="#" data-name="{{name}}" title="{{name}}" class="group-pm-link">{{short_name}}</a>
|
<a href="{{href}}" data-name="{{name}}" title="{{name}}" class="group-pm-link">{{short_name}}</a>
|
||||||
</span>
|
</span>
|
||||||
<span class="count"><span class="value"></span></span>
|
<span class="count"><span class="value"></span></span>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue