Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
fa3cb28c
Commit
fa3cb28c
authored
Dec 16, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
team member show page restyle
parent
aafb9763
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
25 deletions
+70
-25
app/views/team_members/show.html.haml
app/views/team_members/show.html.haml
+70
-25
No files found.
app/views/team_members/show.html.haml
View file @
fa3cb28c
-
allow_admin
=
can?
current_user
,
:admin_project
,
@project
-
user
=
@team_member
.
user
-
user
=
@team_member
.
user
.span-2
%div
=
image_tag
gravatar_icon
(
user
.
email
),
:class
=>
"left"
,
:width
=>
60
,
:style
=>
"padding-right:5px;"
%span
.entity-info
%p
=
link_to
team_project_path
(
@project
)
do
%b
Name:
.entity-button
Back
%i
=
image_tag
gravatar_icon
(
user
.
email
),
:class
=>
"left"
,
:width
=>
40
,
:style
=>
"padding-right:5px;"
%span
.commit-title
%strong
=
user
.
name
=
user
.
name
%p
%span
.commit-author
%b
Email:
%strong
=
user
.
email
=
user
.
email
%hr
%br
%table
.no-borders
%tr
%td
Name
%td
=
user
.
name
%tr
%td
Email
%td
=
user
.
email
%tr
%td
Member since
%td
=
@team_member
.
created_at
.
stamp
(
"Aug 21, 2011"
)
%tr
%td
Project Access
%td
=
form_for
(
@team_member
,
:as
=>
:team_member
,
:url
=>
project_team_member_path
(
@project
,
@team_member
))
do
|
f
|
=
f
.
select
:project_access
,
options_for_select
(
Project
.
access_options
,
@team_member
.
project_access
),
{},
:class
=>
"project-access-select"
,
:disabled
=>
!
allow_admin
%tr
%td
Repository Access
%td
=
form_for
(
@team_member
,
:as
=>
:team_member
,
:url
=>
project_team_member_path
(
@project
,
@team_member
))
do
|
f
|
=
f
.
select
:repo_access
,
options_for_select
(
Repository
.
access_options
,
@team_member
.
repo_access
),
{},
:class
=>
"repo-access-select"
,
:disabled
=>
!
allow_admin
-
unless
user
.
skype
.
empty?
%tr
%td
Skype:
%td
=
user
.
skype
%br
-
unless
user
.
linkedin
.
empty?
%tr
%td
LinkedIn:
%td
=
user
.
linkedin
-
unless
user
.
skype
.
empty?
-
unless
user
.
twitter
.
empty?
.div
%tr
%b
Skype
:
%td
Twitter
:
=
user
.
skype
%td
=
user
.
twitter
-
unless
user
.
linkedin
.
empty?
-
if
can?
current_user
,
:admin_project
,
@project
.
div
.
merge-tabs
%b
LinkedIn:
.right
=
user
.
linkedin
=
link_to
'Remove from team'
,
[
@project
,
@issue
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:class
=>
"red-button"
-
unless
user
.
twitter
.
empty?
:javascript
.div
$
(
function
(){
%b
Twitter:
$
(
'
.repo-access-select, .project-access-select
'
).
live
(
"
change
"
,
function
()
{
=
user
.
twitter
$
(
this
.
form
).
submit
();
});
})
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