From 6f32de186aa1d9e0814183f354bb01f5b66d1c0e Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 3 Apr 2018 17:35:18 +0800 Subject: [PATCH] UX: Add a "add members" button on group page. --- app/assets/javascripts/discourse/templates/group-index.hbs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/assets/javascripts/discourse/templates/group-index.hbs b/app/assets/javascripts/discourse/templates/group-index.hbs index d2312b8200f..b8a910afe08 100644 --- a/app/assets/javascripts/discourse/templates/group-index.hbs +++ b/app/assets/javascripts/discourse/templates/group-index.hbs @@ -2,6 +2,13 @@ placeholderKey=filterPlaceholder class="group-username-filter no-blur"}} +{{#if canManageGroup}} + {{#link-to "group.manage.members" model.name class="btn btn-primary pull-right"}} + {{d-icon "plus"}} + {{i18n "groups.manage.add_members"}} + {{/link-to}} +{{/if}} + {{#if hasMembers}} {{#load-more selector=".group-members tr" action="loadMore"}}