BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
075aae25
Commit
075aae25
authored
Dec 28, 2016
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the "users" to "members" matches in the view
Reverted the change from the "expires_at" to "expires_at_groups" in the groups controller
parent
99c263ad
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
13 deletions
+12
-13
group_links_controller.rb
app/controllers/projects/group_links_controller.rb
+3
-3
selects_helper.rb
app/helpers/selects_helper.rb
+1
-1
_index.html.haml
app/views/projects/group_links/_index.html.haml
+3
-3
_index.html.haml
app/views/projects/project_members/_index.html.haml
+2
-2
_new_project_member.html.haml
...ws/projects/project_members/_new_project_member.html.haml
+2
-2
_team.html.haml
app/views/projects/project_members/_team.html.haml
+1
-1
_group.html.haml
app/views/shared/members/_group.html.haml
+0
-1
No files found.
app/controllers/projects/group_links_controller.rb
View file @
075aae25
...
...
@@ -16,13 +16,13 @@ class Projects::GroupLinksController < Projects::ApplicationController
project
.
project_group_links
.
create
(
group:
group
,
group_access:
params
[
:link_group_access
],
expires_at:
params
[
:expires_at
]
||
params
[
:expires_at_groups
]
expires_at:
params
[
:expires_at
]
)
else
flash
[
:alert
]
=
'Please select a group.'
end
redirect_to
namespace_project_
group_link
s_path
(
project
.
namespace
,
project
)
redirect_to
namespace_project_
settings_member
s_path
(
project
.
namespace
,
project
)
end
def
update
...
...
@@ -36,7 +36,7 @@ class Projects::GroupLinksController < Projects::ApplicationController
respond_to
do
|
format
|
format
.
html
do
redirect_to
namespace_project_
group_link
s_path
(
project
.
namespace
,
project
)
redirect_to
namespace_project_
settings_member
s_path
(
project
.
namespace
,
project
)
end
format
.
js
{
head
:ok
}
end
...
...
app/helpers/selects_helper.rb
View file @
075aae25
...
...
@@ -59,7 +59,7 @@ module SelectsHelper
def
users_select_data_attributes
(
opts
)
{
placeholder:
opts
[
:placeholder
]
||
'Search for
a user
'
,
placeholder:
opts
[
:placeholder
]
||
'Search for
members to update or invite
'
,
null_user:
opts
[
:null_user
]
||
false
,
any_user:
opts
[
:any_user
]
||
false
,
email_user:
opts
[
:email_user
]
||
false
,
...
...
app/views/projects/group_links/_index.html.haml
View file @
075aae25
...
...
@@ -8,7 +8,7 @@
.col-lg-9
%h5
.prepend-top-0
Set a group to share
=
form_tag
namespace_project_group_links_path
(
@project
.
namespace
,
@project
),
class:
'js-requires-input'
,
method: :post
do
=
form_tag
namespace_project_group_links_path
(
@project
.
namespace
,
@project
),
class:
'js-requires-input'
,
method: :post
,
namespace:
'GROUPS'
do
.form-group
=
label_tag
:link_group_id
,
"Group"
,
class:
"label-light"
=
groups_select_tag
(
:link_group_id
,
data:
{
skip_groups:
@skip_groups
},
required:
true
)
...
...
@@ -20,10 +20,10 @@
.form-group
=
label_tag
:expires_at
,
'Access expiration date'
,
class:
'label-light'
.clearable-input
=
text_field_tag
:expires_at
_groups
,
nil
,
class:
'form-control js-access-expiration-date-groups'
,
placeholder:
'Select access expiration date
'
=
text_field_tag
:expires_at
,
nil
,
class:
'form-control js-access-expiration-date-groups'
,
placeholder:
'Select access expiration date'
,
id:
'expires_at_groups
'
%i
.clear-icon.js-clear-input
.help-block
On this date, all
us
ers in the group will automatically lose access to this project.
On this date, all
memb
ers in the group will automatically lose access to this project.
=
submit_tag
"Share"
,
class:
"btn btn-create"
.col-lg-9.col-lg-offset-3
%hr
...
...
app/views/projects/project_members/_index.html.haml
View file @
075aae25
...
...
@@ -5,7 +5,7 @@
=
link_to
"Import"
,
import_namespace_project_project_members_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-default visible-xs visible-sm pull-right"
,
title:
"Import members from another project"
-
if
can?
(
current_user
,
:admin_project_member
,
@project
)
%p
Add
new us
er to
Add
a new memb
er to
%strong
=
@project
.
name
.col-lg-9
.light.prepend-top-default
...
...
@@ -15,7 +15,7 @@
=
render
'shared/members/requests'
,
membership_source:
@project
,
requesters:
@requesters
.append-bottom-default.clearfix
%h5
.member.existing-title
Existing
us
ers and groups
Existing
memb
ers and groups
-
if
@group_links
.
any?
=
render
'projects/project_members/groups'
,
group_links:
@group_links
...
...
app/views/projects/project_members/_new_project_member.html.haml
View file @
075aae25
...
...
@@ -3,7 +3,7 @@
.col-md-5.col-lg-5
=
users_select_tag
(
:user_ids
,
multiple:
true
,
class:
"input-clamp"
,
scope: :all
,
email_user:
true
)
.help-block.append-bottom-10
Search for
us
ers by name, username, or email, or invite new ones using their email address.
Search for
memb
ers by name, username, or email, or invite new ones using their email address.
.col-md-2.col-lg-2
=
select_tag
:access_level
,
options_for_select
(
ProjectMember
.
access_level_roles
,
@project_member
.
access_level
),
class:
"form-control project-access-select"
...
...
@@ -16,7 +16,7 @@
=
text_field_tag
:expires_at
,
nil
,
class:
'form-control js-access-expiration-date'
,
placeholder:
'Expiration date'
%i
.clear-icon.js-clear-input
.help-block.append-bottom-10
On this date, the
us
er(s) will automatically lose access to this project.
On this date, the
memb
er(s) will automatically lose access to this project.
.col-md-2
=
f
.
submit
"Add to project"
,
class:
"btn btn-create btn-block"
...
...
app/views/projects/project_members/_team.html.haml
View file @
075aae25
.panel.panel-default
.panel-heading
Us
ers with access to
Memb
ers with access to
%strong
#{
@project
.
name
}
%span
.badge
=
@project_members
.
total_count
=
form_tag
namespace_project_settings_members_path
(
@project
.
namespace
,
@project
),
method: :get
,
class:
'form-inline member-search-form'
do
...
...
app/views/shared/members/_group.html.haml
View file @
075aae25
...
...
@@ -37,7 +37,6 @@
%i
.clear-icon.js-clear-input
-
if
can_admin_member
=
link_to
namespace_project_group_link_path
(
@project
.
namespace
,
@project
,
group_link
),
remote:
true
,
method: :delete
,
data:
{
confirm:
"Are you sure you want to remove
#{
group
.
name
}
?"
},
class:
'btn btn-remove prepend-left-10'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment