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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
73176c9e
Commit
73176c9e
authored
Nov 19, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #131 from randaalex/admin-panel-disign
The simple update of design admin panel
parents
c359eadf
7c5e83c0
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
128 additions
and
83 deletions
+128
-83
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+2
-1
app/assets/stylesheets/style.scss
app/assets/stylesheets/style.scss
+16
-3
app/views/admin/projects/_form.html.haml
app/views/admin/projects/_form.html.haml
+1
-0
app/views/admin/projects/edit.html.haml
app/views/admin/projects/edit.html.haml
+3
-3
app/views/admin/projects/index.html.haml
app/views/admin/projects/index.html.haml
+1
-3
app/views/admin/projects/new.html.haml
app/views/admin/projects/new.html.haml
+1
-1
app/views/admin/projects/show.html.haml
app/views/admin/projects/show.html.haml
+45
-29
app/views/admin/team_members/show.html.haml
app/views/admin/team_members/show.html.haml
+2
-2
app/views/admin/users/_form.html.haml
app/views/admin/users/_form.html.haml
+1
-1
app/views/admin/users/edit.html.haml
app/views/admin/users/edit.html.haml
+1
-1
app/views/admin/users/index.html.haml
app/views/admin/users/index.html.haml
+1
-4
app/views/admin/users/show.html.haml
app/views/admin/users/show.html.haml
+54
-35
No files found.
app/assets/stylesheets/projects.css.scss
View file @
73176c9e
...
@@ -54,6 +54,7 @@
...
@@ -54,6 +54,7 @@
table
.round-borders
{
table
.round-borders
{
float
:left
;
float
:left
;
text-align
:
left
;
}
}
a
{
a
{
...
@@ -207,7 +208,7 @@ input.ssh_project_url {
...
@@ -207,7 +208,7 @@ input.ssh_project_url {
.lite_button
{
.lite_button
{
display
:block
;
display
:block
;
float
:left
;
float
:left
;
margin
:
0px
5px
;
margin
:
0px
5px
0px
0px
;
padding
:
5px
10px
;
padding
:
5px
10px
;
font-family
:
"Helvetica Neue"
,
Arial
,
Helvetica
,
sans-serif
;
font-family
:
"Helvetica Neue"
,
Arial
,
Helvetica
,
sans-serif
;
...
...
app/assets/stylesheets/style.scss
View file @
73176c9e
...
@@ -11,8 +11,8 @@ html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-
...
@@ -11,8 +11,8 @@ html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-
body
{
margin
:
0
;
font-size
:
13px
;
line-height
:
1
.231
;
}
body
{
margin
:
0
;
font-size
:
13px
;
line-height
:
1
.231
;
}
body
,
button
,
input
,
select
,
textarea
{
font-family
:
sans-serif
;
color
:
#222
;
}
body
,
button
,
input
,
select
,
textarea
{
font-family
:
sans-serif
;
color
:
#222
;
}
::-moz-selection
{
background
:
#
fe57a1
;
color
:
#fff
;
text-shadow
:
none
;
}
::-moz-selection
{
background
:
#
79c3e0
;
color
:
#fff
;
text-shadow
:
none
;
}
::selection
{
background
:
#
fe57a1
;
color
:
#fff
;
text-shadow
:
none
;
}
::selection
{
background
:
#
79c3e0
;
color
:
#fff
;
text-shadow
:
none
;
}
a
{
color
:
#00e
;
}
a
{
color
:
#00e
;
}
a
:hover
{
color
:
#06e
;
}
a
:hover
{
color
:
#06e
;
}
...
@@ -315,6 +315,19 @@ body.login-page{background-color: #f1f1f1; padding-top: 10%}
...
@@ -315,6 +315,19 @@ body.login-page{background-color: #f1f1f1; padding-top: 10%}
}
}
/* eo Errors */
/* eo Errors */
/* Notices */
#notice
{
background
:
#dfffe1
;
padding
:
20px
;
margin-bottom
:
20px
;
border-radius
:
5px
;
color
:
green
;
font-size
:
1
.3em
;}
/* eo Notices */
/* InfoBlock */
#infoblock
{
background
:
#eeeeee
;
padding
:
20px
;
margin-bottom
:
20px
;
border-radius
:
5px
;
}
/* eo InfoBlock */
/* General */
/* General */
#container
{
background-color
:
white
;
overflow
:
hidden
;
}
#container
{
background-color
:
white
;
overflow
:
hidden
;
}
body
.collapsed
#container
{
margin
:
auto
;
width
:
980px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,.
22
);
border-top
:
0
;
box-shadow
:
0
0
0px
4px
rgba
(
0
,
0
,
0
,.
04
)}
body
.collapsed
#container
{
margin
:
auto
;
width
:
980px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,.
22
);
border-top
:
0
;
box-shadow
:
0
0
0px
4px
rgba
(
0
,
0
,
0
,.
04
)}
...
@@ -588,7 +601,7 @@ body.project-page h2.icon .project-name i.arrow{float: right;
...
@@ -588,7 +601,7 @@ body.project-page h2.icon .project-name i.arrow{float: right;
}
}
body
.project-page
h2
.icon
span
{
background-position
:
-78px
-68px
;
}
body
.project-page
h2
.icon
span
{
background-position
:
-78px
-68px
;
}
body
.project-page
.project-container
{
position
:
relative
;
float
:
left
;
width
:
100%
;
height
:
100%
;
}
body
.project-page
.project-container
{
position
:
relative
;
float
:
left
;
width
:
100%
;
height
:
100%
;
padding-bottom
:
10px
;
}
body
.project-page
.page-title
{
margin-bottom
:
0
}
body
.project-page
.page-title
{
margin-bottom
:
0
}
body
.project-page
.project-sidebar
{
width
:
220px
;
left
:
0
;
top
:
0
;
height
:
100%
;
bottom
:
0
;
position
:
absolute
;
background-color
:
#f7f7f7
;
float
:
left
;
display
:
inline-block
;
background
:
#f7f7f7
;
padding
:
20px
0
20px
2%
;
margin
:
0
;
}
body
.project-page
.project-sidebar
{
width
:
220px
;
left
:
0
;
top
:
0
;
height
:
100%
;
bottom
:
0
;
position
:
absolute
;
background-color
:
#f7f7f7
;
float
:
left
;
display
:
inline-block
;
background
:
#f7f7f7
;
padding
:
20px
0
20px
2%
;
margin
:
0
;
}
...
...
app/views/admin/projects/_form.html.haml
View file @
73176c9e
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
%br
%br
=
f
.
text_area
:description
=
f
.
text_area
:description
.clear
.clear
%hr
.actions
.actions
=
f
.
submit
'Save'
,
:class
=>
"lbutton"
=
f
.
submit
'Save'
,
:class
=>
"lbutton"
...
...
app/views/admin/projects/edit.html.haml
View file @
73176c9e
%h2
=
@admin_project
.
name
=
render
'form'
=
render
'form'
=
link_to
'Show'
,
[
:admin
,
@admin_project
]
=
link_to
'Back'
,
admin_projects_path
,
:class
=>
"right lbutton"
\|
=
link_to
'Show'
,
[
:admin
,
@admin_project
],
:class
=>
"right lbutton"
=
link_to
'Back'
,
admin_projects_path
\ No newline at end of file
app/views/admin/projects/index.html.haml
View file @
73176c9e
...
@@ -20,7 +20,5 @@
...
@@ -20,7 +20,5 @@
%td
=
link_to
'Edit'
,
edit_admin_project_path
(
project
),
:id
=>
"edit_
#{
dom_id
(
project
)
}
"
%td
=
link_to
'Edit'
,
edit_admin_project_path
(
project
),
:id
=>
"edit_
#{
dom_id
(
project
)
}
"
%td
=
link_to
'Destroy'
,
[
:admin
,
project
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
%td
=
link_to
'Destroy'
,
[
:admin
,
project
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
%br
=
paginate
@admin_projects
=
paginate
@admin_projects
=
link_to
'New Project'
,
new_admin_project_path
=
link_to
'New Project'
,
new_admin_project_path
,
:class
=>
"lbutton"
app/views/admin/projects/new.html.haml
View file @
73176c9e
...
@@ -2,4 +2,4 @@
...
@@ -2,4 +2,4 @@
=
render
'form'
=
render
'form'
=
link_to
'Back'
,
admin_projects_path
=
link_to
'Back'
,
admin_projects_path
,
:class
=>
'right lbutton'
\ No newline at end of file
app/views/admin/projects/show.html.haml
View file @
73176c9e
%p
#notice
=
notice
-
unless
notice
.
nil?
%p
#notice
=
notice
.span-8.colborder
%h2
=
@admin_project
.
name
%h2
=
@admin_project
.
name
%p
%b
Name:
%table
.round-borders
=
@admin_project
.
name
%tr
%p
%td
%b
Code:
%b
=
@admin_project
.
code
Name:
%p
%td
%b
Path:
=
@admin_project
.
name
=
@admin_project
.
path
%tr
%p
%td
%b
Description:
%b
=
@admin_project
.
description
Code:
%td
=
link_to
'Edit'
,
edit_admin_project_path
(
@admin_project
)
=
@admin_project
.
code
\|
%tr
=
link_to
'Back'
,
admin_projects_path
%td
%b
Path:
%td
=
@admin_project
.
path
%tr
%td
%b
Description:
%td
=
@admin_project
.
description
%tr
%td
{
:colspan
=>
2
}
=
link_to
'Edit'
,
edit_admin_project_path
(
@admin_project
),
:class
=>
"lbutton"
=
link_to
'Back'
,
admin_projects_path
,
:class
=>
"right lbutton"
.span-14
.span-14
%h2
Team
%h2
Team
%table
.round-borders
%table
.round-borders
%tr
%thead
%th
Name
%tr
%th
Added
%th
Name
%th
Web
%th
Added
%th
Git
%th
Web
%th
Admin
%th
Git
%th
%th
Admin
%th
-
@admin_project
.
users_projects
.
each
do
|
tm
|
-
@admin_project
.
users_projects
.
each
do
|
tm
|
%tr
%tr
...
@@ -42,4 +58,4 @@
...
@@ -42,4 +58,4 @@
%td
.span-2
=
check_box_tag
"admin"
,
1
,
@admin_project
.
admins
.
include?
(
tm
.
user
),
:disabled
=>
:disabled
%td
.span-2
=
check_box_tag
"admin"
,
1
,
@admin_project
.
admins
.
include?
(
tm
.
user
),
:disabled
=>
:disabled
%td
=
link_to
'Destroy'
,
admin_team_member_path
(
tm
),
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
%td
=
link_to
'Destroy'
,
admin_team_member_path
(
tm
),
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
=
link_to
'New Team Member'
,
new_admin_team_member_path
(
:team_member
=>
{
:project_id
=>
@admin_project
.
id
})
=
link_to
'New Team Member'
,
new_admin_team_member_path
(
:team_member
=>
{
:project_id
=>
@admin_project
.
id
})
,
:class
=>
"lbutton"
app/views/admin/team_members/show.html.haml
View file @
73176c9e
%p
#notice
=
notice
%p
#notice
=
notice
.span-10
#infoblock
%p
%p
%b
Name:
%b
Name:
=
@admin_team_member
.
user_name
=
@admin_team_member
.
user_name
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
%b
Since:
%b
Since:
=
@admin_team_member
.
updated_at
=
@admin_team_member
.
updated_at
.span-10
#infoblock
.span-6
.span-6
%b
Access:
%b
Access:
.span-8
.span-8
...
...
app/views/admin/users/_form.html.haml
View file @
73176c9e
...
@@ -44,6 +44,6 @@
...
@@ -44,6 +44,6 @@
%br
%br
=
f
.
text_field
:twitter
=
f
.
text_field
:twitter
.clear
.clear
%
b
r
%
h
r
.actions
.actions
=
f
.
submit
'Save'
,
:class
=>
"lbutton"
=
f
.
submit
'Save'
,
:class
=>
"lbutton"
app/views/admin/users/edit.html.haml
View file @
73176c9e
=
render
'form'
=
render
'form'
=
link_to
'Show'
,
[
:admin
,
@admin_user
],
:class
=>
"right lbutton"
=
link_to
'Back'
,
admin_users_path
,
:class
=>
"right lbutton"
=
link_to
'Back'
,
admin_users_path
,
:class
=>
"right lbutton"
=
link_to
'Show'
,
[
:admin
,
@admin_user
],
:class
=>
"right lbutton"
app/views/admin/users/index.html.haml
View file @
73176c9e
...
@@ -18,8 +18,5 @@
...
@@ -18,8 +18,5 @@
%td
=
link_to
'Edit'
,
edit_admin_user_path
(
user
),
:id
=>
"edit_
#{
dom_id
(
user
)
}
"
%td
=
link_to
'Edit'
,
edit_admin_user_path
(
user
),
:id
=>
"edit_
#{
dom_id
(
user
)
}
"
%td
=
link_to
'Destroy'
,
[
:admin
,
user
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
%td
=
link_to
'Destroy'
,
[
:admin
,
user
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
%br
=
paginate
@admin_users
=
paginate
@admin_users
=
link_to
'New User'
,
new_admin_user_path
,
:class
=>
"lbutton"
=
link_to
'New User'
,
new_admin_user_path
app/views/admin/users/show.html.haml
View file @
73176c9e
%p
#notice
=
notice
-
unless
notice
.
nil?
%p
#notice
=
notice
.span-8.colborder
%h2
=
@admin_user
.
name
%p
%b
Name:
=
@admin_user
.
name
%p
%b
Email:
=
@admin_user
.
email
%p
%b
Admin:
=
@admin_user
.
admin
%p
%b
Projects limit:
=
@admin_user
.
projects_limit
%p
%table
.round-borders
%b
Skype:
%tr
=
@admin_user
.
skype
%td
%p
%b
%b
LinkedIn:
Email:
=
@admin_user
.
linkedin
%td
%p
=
@admin_user
.
email
%b
Twitter:
%tr
=
@admin_user
.
twitter
%td
%b
.clear
Admin:
=
link_to
'Edit'
,
edit_admin_user_path
(
@admin_user
)
%td
=
check_box_tag
"admin"
,
1
,
@admin_user
.
admin
,
:disabled
=>
:disabled
\|
%tr
=
link_to
'Back'
,
admin_users_path
%td
%b
Projects limit:
%td
=
@admin_user
.
projects_limit
-
unless
@admin_user
.
skype
.
empty?
%tr
%td
%b
Skype:
%td
=
@admin_user
.
skype
-
unless
@admin_user
.
linkedin
.
empty?
%tr
%td
%b
Linkedin:
%td
=
@admin_user
.
linkedin
-
unless
@admin_user
.
twitter
.
empty?
%tr
%td
%b
Twitter:
%td
=
@admin_user
.
twitter
%tr
%td
{
:colspan
=>
2
}
=
link_to
'Edit'
,
edit_admin_user_path
(
@admin_user
),
:class
=>
"lbutton"
=
link_to
'Back'
,
admin_users_path
,
:class
=>
"right lbutton"
.span-14
.span-14
%h2
Projects
%h2
Projects
%table
.round-borders
%table
.round-borders
%tr
%tr
%th
Name
%thead
%th
Added
%th
Name
%th
Web
%th
Added
%th
Git
%th
Web
%th
Admin
%th
Git
%th
%th
Admin
%th
-
@admin_user
.
users_projects
.
each
do
|
tm
|
-
@admin_user
.
users_projects
.
each
do
|
tm
|
-
project
=
tm
.
project
-
project
=
tm
.
project
...
@@ -52,4 +71,4 @@
...
@@ -52,4 +71,4 @@
%td
=
link_to
'Edit'
,
edit_admin_team_member_path
(
tm
)
%td
=
link_to
'Edit'
,
edit_admin_team_member_path
(
tm
)
%td
=
link_to
'Cancel'
,
admin_team_member_path
(
tm
),
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
%td
=
link_to
'Cancel'
,
admin_team_member_path
(
tm
),
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
=
link_to
'Add To Another Project'
,
new_admin_team_member_path
(
:team_member
=>
{
:user_id
=>
@admin_user
.
id
})
=
link_to
'Add To Another Project'
,
new_admin_team_member_path
(
:team_member
=>
{
:user_id
=>
@admin_user
.
id
})
,
:class
=>
"lbutton"
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