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

45 lines
1.4 KiB
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Members"
2014-09-02 18:07:02 +05:30
- show_roles = should_user_see_group_roles?(current_user, @group)
2015-04-26 12:48:37 +05:30
2014-09-02 18:07:02 +05:30
%h3.page-title
Group members
- if show_roles
%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"
%hr
.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-09-11 14:41:01 +05:30
= search_field_tag :search, params[:search], { placeholder: 'Find existing member by name', class: 'form-control search-text-input' }
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-04-26 12:48:37 +05:30
= render 'groups/group_members/group_member', member: member, show_roles: show_roles, show_controls: true
2014-09-02 18:07:02 +05:30
= paginate @members, theme: 'gitlab'
:coffeescript
$('form.member-search-form').on 'submit', (event) ->
event.preventDefault()
Turbolinks.visit @.action + '?' + $(@).serialize()