debian-mirror-gitlab/app/views/groups/group_members/index.html.haml

42 lines
1.5 KiB
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Members"
2015-09-25 12:07:36 +05:30
- header_title group_title(@group, "Members", group_group_members_path(@group))
2015-11-26 14:37:03 +05:30
- if should_user_see_group_roles?(current_user, @group)
2014-09-02 18:07:02 +05:30
%p.light
Members of group have access to all group projects.
Read more about permissions
%strong= link_to "here", help_page_path("permissions", "permissions"), class: "vlink"
.clearfix.js-toggle-container
2015-04-26 12:48:37 +05:30
= form_tag group_group_members_path(@group), method: :get, class: 'form-inline member-search-form' do
2014-09-02 18:07:02 +05:30
.form-group
2015-10-24 18:46:33 +05:30
= search_field_tag :search, params[:search], { placeholder: 'Find existing member by name', class: 'form-control search-text-input', spellcheck: false }
2015-04-26 12:48:37 +05:30
= button_tag 'Search', class: 'btn'
2014-09-02 18:07:02 +05:30
2015-09-11 14:41:01 +05:30
- if current_user && current_user.can?(:admin_group_member, @group)
2014-09-02 18:07:02 +05:30
.pull-right
2015-04-26 12:48:37 +05:30
= button_tag class: 'btn btn-new js-toggle-button', type: 'button' do
2014-09-02 18:07:02 +05:30
Add members
2015-04-26 12:48:37 +05:30
%i.fa.fa-chevron-down
2014-09-02 18:07:02 +05:30
.js-toggle-content.hide.new-group-member-holder
= render "new_group_member"
.panel.panel-default.prepend-top-20
.panel-heading
%strong #{@group.name}
group members
%small
(#{@members.total_count})
%ul.well-list
- @members.each do |member|
2015-11-26 14:37:03 +05:30
= render 'groups/group_members/group_member', member: member, show_controls: true
2015-04-26 12:48:37 +05:30
2014-09-02 18:07:02 +05:30
= paginate @members, theme: 'gitlab'
2015-11-26 14:37:03 +05:30
:javascript
$('form.member-search-form').on('submit', function(event) {
event.preventDefault();
Turbolinks.visit(this.action + '?' + $(this).serialize());
});