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
iv
gitlab-ce
Commits
94db8a1c
Commit
94db8a1c
authored
Feb 18, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Usability & design improvements
parent
9a24ccde
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
192 additions
and
91 deletions
+192
-91
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+52
-5
app/assets/stylesheets/tree.scss
app/assets/stylesheets/tree.scss
+10
-3
app/controllers/merge_requests_controller.rb
app/controllers/merge_requests_controller.rb
+2
-0
app/models/commit.rb
app/models/commit.rb
+1
-1
app/models/user.rb
app/models/user.rb
+5
-1
app/views/issues/_show.html.haml
app/views/issues/_show.html.haml
+1
-1
app/views/issues/index.html.haml
app/views/issues/index.html.haml
+22
-22
app/views/issues/show.html.haml
app/views/issues/show.html.haml
+5
-0
app/views/keys/index.html.haml
app/views/keys/index.html.haml
+1
-1
app/views/layouts/_project_menu.html.haml
app/views/layouts/_project_menu.html.haml
+1
-1
app/views/layouts/_projects_side.html.haml
app/views/layouts/_projects_side.html.haml
+6
-6
app/views/layouts/profile.html.haml
app/views/layouts/profile.html.haml
+1
-1
app/views/merge_requests/_merge_request.html.haml
app/views/merge_requests/_merge_request.html.haml
+1
-1
app/views/merge_requests/index.html.haml
app/views/merge_requests/index.html.haml
+16
-9
app/views/merge_requests/show.html.haml
app/views/merge_requests/show.html.haml
+3
-0
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+8
-2
app/views/repositories/show.html.haml
app/views/repositories/show.html.haml
+16
-14
app/views/team_members/show.html.haml
app/views/team_members/show.html.haml
+17
-10
app/views/widgets/_project_member.html.haml
app/views/widgets/_project_member.html.haml
+22
-11
app/views/widgets/_recent_projects.html.haml
app/views/widgets/_recent_projects.html.haml
+2
-1
spec/requests/snippets_spec.rb
spec/requests/snippets_spec.rb
+0
-1
No files found.
app/assets/stylesheets/common.scss
View file @
94db8a1c
...
...
@@ -10,8 +10,12 @@ a {
color
:
$link_color
!
important
;
}
.pills
a
:hover
{
background-color
:
#ccc
;
}
.pills
.active
a
{
background-color
:
#
474D57
;
background-color
:
#
aaa
;
}
.label
{
...
...
@@ -83,7 +87,7 @@ a {
}
.container
.sidebar
{
width
:
2
5
0px
;
width
:
2
2
0px
;
height
:
100%
;
min-height
:
450px
;
float
:right
;
...
...
@@ -131,6 +135,15 @@ nav.main_menu {
margin
:
0
;
float
:left
;
text-shadow
:
0
1px
1px
white
;
&
.home
{
padding
:
7px
35px
;
img
{
position
:relative
;
top
:
4px
;
}
}
&
.current
{
background
:
#DDD
;
}
...
...
@@ -182,7 +195,7 @@ img.lil_av {
p
{
padding-top
:
5px
;
margin
:
0
;
color
:
$style_color
;}
.author
{
color
:
#999
;
}
p
{
color
:
$style_color
;
color
:
#222
;
margin-bottom
:
0
;
img
{
position
:relative
;
...
...
@@ -230,6 +243,27 @@ img.lil_av {
.widget
{
padding
:
20px
;
margin-bottom
:
20px
;
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
30
,
color-stop
(
0
.066
,
#fff
)
,
to
(
#f1f1f1
));
background-image
:
-webkit-linear-gradient
(
#fff
6
.6%
,
#f1f1f1
);
background-image
:
-moz-linear-gradient
(
#fff
6
.6%
,
#f1f1f1
);
background-image
:
-o-linear-gradient
(
#fff
6
.6%
,
#f1f1f1
);
border
:
1px
solid
#DDD
;
border-radius
:
5px
;
.link_holder
{
background
:
#eee
;
position
:relative
;
left
:
-20px
;
top
:
20px
;
padding
:
10px
20px
;
width
:
100%
;
border-top
:
1px
solid
#ccc
;
a
{
font-size
:
14px
;
color
:
#666
;
}
}
}
...
...
@@ -242,15 +276,20 @@ img.lil_av {
margin
:
0
;
}
h5
{
h5
,
.title
{
padding
:
0
10px
;
background
:
#f5f5f5
;
border-bottom
:
1px
solid
#ccc
;
@include
round-borders-top
(
4px
);
border-top
:none
;
form
{
padding-top
:
16px
;
}
}
li
{
li
,
.wll
{
padding
:
10px
;
&
:first-child
{
@include
round-borders-top
(
4px
);
...
...
@@ -266,3 +305,11 @@ img.lil_av {
}
.help
li
{
color
:
#111
}
.back_link
{
text-decoration
:underline
;
font-size
:
14px
;
font-weight
:bold
;
padding
:
10px
0
;
padding-bottom
:
0
;
}
app/assets/stylesheets/tree.scss
View file @
94db8a1c
...
...
@@ -130,14 +130,21 @@ table.highlighttable .linenodiv pre {
}
}
.breadcrumb
a
{
color
:
$style_color
;
.breadcrumb
{
background
:white
;
border
:none
;
a
{
color
:
$link_color
;
font-weight
:bold
;
font-size
:
13px
;
}
}
#tree-slider
{
td
{
padding
:
7px
;
border-color
:
#f1f1f1
;
}
th
{
...
...
app/controllers/merge_requests_controller.rb
View file @
94db8a1c
...
...
@@ -24,7 +24,9 @@ class MergeRequestsController < ApplicationController
@merge_requests
=
@project
.
merge_requests
@merge_requests
=
case
params
[
:f
].
to_i
when
1
then
@merge_requests
when
2
then
@merge_requests
.
closed
when
2
then
@merge_requests
.
opened
.
assigned
(
current_user
)
else
@merge_requests
.
opened
end
...
...
app/models/commit.rb
View file @
94db8a1c
...
...
@@ -42,7 +42,7 @@ class Commit
end
def
author_name
author
.
name
author
.
name
.
force_encoding
(
"UTF-8"
)
end
def
committer_name
...
...
app/models/user.rb
View file @
94db8a1c
...
...
@@ -67,6 +67,10 @@ class User < ActiveRecord::Base
(
0
...
8
).
map
{
(
'a'
..
'z'
).
to_a
[
rand
(
26
)]
}.
join
end
def
first_name
name
.
split
(
" "
).
first
unless
name
.
blank?
end
def
self
.
find_for_ldap_auth
(
omniauth
)
username
=
omniauth
.
sAMAccountName
[
0
]
email
=
omniauth
.
userprincipalname
[
0
]
...
...
app/views/issues/_show.html.haml
View file @
94db8a1c
...
...
@@ -12,7 +12,7 @@
=
image_tag
gravatar_icon
(
issue
.
assignee_email
),
:class
=>
"avatar"
%span
.update-author
assigned to
%strong
=
link_to_issue_assignee
(
issue
)
%strong
=
issue
.
assignee_name
-
if
issue
.
critical
%span
.label.important
critical
-
if
issue
.
today?
...
...
app/views/issues/index.html.haml
View file @
94db8a1c
...
...
@@ -9,7 +9,8 @@
=
link_to
new_project_issue_path
(
@project
),
:class
=>
"right btn small"
,
:title
=>
"New Issue"
,
:remote
=>
true
do
New Issue
%hr
%div
#issues-table-holder
%div
#issues-table-holder
.ui-box
.title
.row
.span8
%ul
.pills.left
...
...
@@ -26,13 +27,12 @@
=
link_to
project_issues_path
(
@project
,
:f
=>
1
)
do
All
.span2
.right
.span3
.right
=
form_tag
search_project_issues_path
(
@project
),
:method
=>
:get
,
:remote
=>
true
,
:id
=>
"issue_search_form"
,
:class
=>
:right
do
=
hidden_field_tag
:project_id
,
@project
.
id
,
{
:id
=>
'project_id'
}
=
hidden_field_tag
:status
,
params
[
:f
]
=
search_field_tag
:issue_search
,
nil
,
{
:placeholder
=>
'Search'
,
:class
=>
'issue_search'
}
%hr
%ul
#issues-table
.unstyled
=
render
"issues"
:javascript
...
...
app/views/issues/show.html.haml
View file @
94db8a1c
...
...
@@ -14,6 +14,11 @@
=
link_to
edit_project_issue_path
(
@project
,
@issue
),
:class
=>
"btn small"
do
Edit
.back_link
=
link_to
project_issues_path
(
@project
)
do
←
To issues list
%hr
-
if
@issue
.
closed
.alert-message.error
Closed
...
...
app/views/keys/index.html.haml
View file @
94db8a1c
...
...
@@ -4,7 +4,7 @@
%hr
%div
#keys-table
{
:class
=>
"update-data ui-box ui-box-small ui-box-big"
}
%div
#keys-table
%ul
.unstyled
-
@keys
.
each
do
|
key
|
=
render
(
:partial
=>
'show'
,
:locals
=>
{
:key
=>
key
})
app/views/layouts/_project_menu.html.haml
View file @
94db8a1c
%nav
.main_menu
=
link_to
project_path
(
@project
),
:class
=>
project_tab_class
do
=
link_to
project_path
(
@project
),
:class
=>
"
#{
project_tab_class
}
"
,
:title
=>
"Project"
do
Project
-
if
@project
.
repo_exists?
...
...
app/views/layouts/_projects_side.html.haml
View file @
94db8a1c
...
...
@@ -4,15 +4,15 @@
You can create at least
=
current_user
.
projects_limit
projects. Click on button to add a new one
%h
r
=
link_to
new_project_path
,
:class
=>
"btn small
"
do
.link_holde
r
=
link_to
new_project_path
,
:class
=>
"
"
do
New Project »
-
if
current_user
.
is_admin?
.widget
You have administrator privilegies. You can configure application following this button:
%h
r
=
link_to
admin_root_path
,
:class
=>
"btn small
"
,
:title
=>
"Admin"
do
.link_holde
r
=
link_to
admin_root_path
,
:class
=>
"
"
,
:title
=>
"Admin"
do
Visit Admin Area »
-
if
current_user
.
projects
.
count
>
0
...
...
app/views/layouts/profile.html.haml
View file @
94db8a1c
...
...
@@ -10,7 +10,7 @@
=
link_to
"Password & token"
,
profile_password_path
,
:class
=>
current_page?
(
:controller
=>
"profile"
,
:action
=>
:password
)
?
"current"
:
nil
=
link_to
"Design"
,
profile_design_path
,
:class
=>
current_page?
(
:controller
=>
"profile"
,
:action
=>
:design
)
?
"current"
:
nil
=
link_to
keys_path
,
:class
=>
controller
.
controller_name
==
"keys"
?
"current"
:
nil
do
Keys
SSH
Keys
.content
.row
.span12
=
yield
...
...
app/views/merge_requests/_merge_request.html.haml
View file @
94db8a1c
%li
.wll
=
image_tag
gravatar_icon
(
merge_request
.
author_email
),
:class
=>
"avatar"
%span
.update-author
%strong
=
link_to_merge_request_author
(
merge_request
)
%strong
=
merge_request
.
author_name
authored
=
time_ago_in_words
(
merge_request
.
created_at
)
ago
...
...
app/views/merge_requests/index.html.haml
View file @
94db8a1c
...
...
@@ -6,14 +6,21 @@
%hr
%ul
.pills
.ui-box
.title
%ul
.pills
%li
{
:class
=>
(
"active"
if
(
params
[
:f
]
==
"0"
||
!
params
[
:f
]))}
=
link_to
project_merge_requests_path
(
@project
,
:f
=>
0
)
do
Open
%li
{
:class
=>
(
"active"
if
params
[
:f
]
==
"2"
)}
=
link_to
project_merge_requests_path
(
@project
,
:f
=>
2
)
do
Closed
%li
{
:class
=>
(
"active"
if
params
[
:f
]
==
"3"
)}
=
link_to
project_merge_requests_path
(
@project
,
:f
=>
3
)
do
To Me
%li
{
:class
=>
(
"active"
if
params
[
:f
]
==
"1"
)}
=
link_to
project_merge_requests_path
(
@project
,
:f
=>
1
)
do
All
%hr
%ul
.unstyled
=
render
@merge_requests
%ul
.unstyled
=
render
@merge_requests
app/views/merge_requests/show.html.haml
View file @
94db8a1c
...
...
@@ -19,6 +19,9 @@
=
link_to
edit_project_merge_request_path
(
@project
,
@merge_request
),
:class
=>
"btn small"
do
Edit
.back_link
=
link_to
project_merge_requests_path
(
@project
)
do
←
To merge requests
%hr
-
if
@merge_request
.
closed
.alert-message.error
Closed
...
...
app/views/projects/show.html.haml
View file @
94db8a1c
=
render
"project_head"
%h3
=
@project
.
name
-
if
can?
current_user
,
:download_code
,
@project
=
link_to
"Download"
,
archive_project_repository_path
(
@project
),
:class
=>
"btn small right"
.back_link
=
link_to
projects_path
do
←
To projects list
%hr
.alert-message.block-message.warning
.input
...
...
@@ -10,7 +15,8 @@
=
simple_format
@project
.
description
%h5
.cgray
Recent Activity
.content_list
=
render
"feed"
.ui-box
%h5
.cgray
Recent Activity
.content_list
=
render
"feed"
app/views/repositories/show.html.haml
View file @
94db8a1c
...
...
@@ -6,14 +6,8 @@
%hr
.alert-message.block-message.warning
.input
.input-prepend
%span
.add-on
git clone
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
:class
=>
"xlarge one_click_select git_clone_url"
%p
.entry
%p
Last commit was
%small
%code
=
@activities
.
first
.
commit
.
id
.
to_s
[
0
..
10
]
...
...
@@ -22,11 +16,19 @@
ago to
=
link_to
project_commits_path
(
@project
,
:ref
=>
@activities
.
first
.
head
.
name
),
:class
=>
"visible_link"
do
%span
.label
=
@activities
.
first
.
head
.
name
.alert-message.block-message.warning
.input
.input-prepend
%span
.add-on
git clone
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
:class
=>
"xlarge one_click_select git_clone_url"
%h4
.cgray
.ui-box
%h5
.cgray
Recent Branches
%ul
.unstyled
%ul
.unstyled
-
@activities
.
each
do
|
update
|
=
render
"repositories/feed"
,
:update
=>
update
,
:project
=>
@project
app/views/team_members/show.html.haml
View file @
94db8a1c
-
allow_admin
=
can?
current_user
,
:admin_project
,
@project
-
user
=
@team_member
.
user
%div
=
link_to
team_project_path
(
@project
),
:class
=>
"btn right"
do
Team »
.media-grid
.media-grid
=
link_to
"#"
do
=
image_tag
gravatar_icon
(
user
.
email
,
90
),
:class
=>
"thumbnail"
%h3
.media_h
=
user
.
name
=
image_tag
gravatar_icon
(
user
.
email
,
60
),
:class
=>
"thumbnail"
,
:width
=>
60
%h3
.media_h
=
user
.
name
%br
%small
=
user
.
email
.back_link
=
link_to
team_project_path
(
@project
),
:class
=>
""
do
←
To team list
%hr
%table
.no-borders
%tr
%td
Name
...
...
@@ -23,7 +27,10 @@
%td
=
@team_member
.
created_at
.
stamp
(
"Aug 21, 2011"
)
%tr
%td
Project Access
%td
Project Access
(
#{
link_to
"read more"
,
help_permissions_path
,
:class
=>
"vlink"
}
)
%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
...
...
app/views/widgets/_project_member.html.haml
View file @
94db8a1c
...
...
@@ -3,20 +3,31 @@
.media-grid
%li
=
link_to
project_team_member_path
(
@project
,
member
),
:title
=>
current_user
.
name
do
=
image_tag
gravatar_icon
(
current_user
.
email
,
90
),
:class
=>
"thumbnail"
.row
.span4
=
image_tag
gravatar_icon
(
current_user
.
email
,
60
),
:class
=>
"thumbnail"
,
:width
=>
60
%h4
=
truncate
(
current_user
.
name
,
:lenght
=>
24
)
-
if
@project
.
owner
==
current_user
%span
.label
Project Owner
Hi,
=
truncate
current_user
.
first_name
,
:lenght
=>
24
!
%p
-
if
@project
.
issues_enabled
Assigned issues:
=
current_user
.
assigned_issues
.
count
%br
-
if
@project
.
merge_requests_enabled
Assigned merge request:
=
current_user
.
assigned_merge_requests
.
count
%br
Your merge requests:
=
current_user
.
assigned_merge_requests
.
count
.link_holder
=
link_to
project_team_member_path
(
@project
,
member
),
:title
=>
current_user
.
name
do
=
"Access:
#{
member
.
project_access_human
}
»"
.span3
%span
.label
=
member
.
project_access_human
-
if
can?
current_user
,
:write_project
,
@project
-#- if can? current_user, :write_project, @project
.widget
- if @project.issues_enabled && @project.merge_requests_enabled
%hr
.span3
%p You have access to create new issue or merge request.
%div
...
...
app/views/widgets/_recent_projects.html.haml
View file @
94db8a1c
...
...
@@ -7,4 +7,5 @@
%li
=
link_to
project_path
(
project
)
do
=
project
.
name
=
link_to
"More » "
,
projects_path
.link_holder
=
link_to
"Projects » "
,
projects_path
spec/requests/snippets_spec.rb
View file @
94db8a1c
...
...
@@ -21,7 +21,6 @@ describe "Snippets" do
it
{
should
have_content
(
@snippet
.
title
[
0
..
10
])
}
it
{
should
have_content
(
@snippet
.
project
.
name
)
}
it
{
should
have_content
(
@snippet
.
author
.
name
)
}
describe
"Destroy"
do
before
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