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
Jérome Perrin
gitlab-ce
Commits
37eeeb9f
Commit
37eeeb9f
authored
Apr 06, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redesign issues, mr lists
parent
39f46046
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
180 additions
and
99 deletions
+180
-99
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+1
-1
app/assets/stylesheets/sections/dashboard.scss
app/assets/stylesheets/sections/dashboard.scss
+48
-0
app/assets/stylesheets/sections/issues.scss
app/assets/stylesheets/sections/issues.scss
+25
-8
app/assets/stylesheets/sections/merge_requests.scss
app/assets/stylesheets/sections/merge_requests.scss
+28
-12
app/assets/stylesheets/sections/votes.scss
app/assets/stylesheets/sections/votes.scss
+0
-5
app/helpers/merge_requests_helper.rb
app/helpers/merge_requests_helper.rb
+1
-1
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+1
-1
app/views/dashboard/issues.html.haml
app/views/dashboard/issues.html.haml
+1
-1
app/views/dashboard/projects.html.haml
app/views/dashboard/projects.html.haml
+1
-1
app/views/dashboard/show.html.haml
app/views/dashboard/show.html.haml
+1
-1
app/views/groups/issues.html.haml
app/views/groups/issues.html.haml
+1
-1
app/views/groups/show.html.haml
app/views/groups/show.html.haml
+2
-2
app/views/issues/_issue.html.haml
app/views/issues/_issue.html.haml
+29
-24
app/views/issues/index.html.haml
app/views/issues/index.html.haml
+2
-2
app/views/merge_requests/_merge_request.html.haml
app/views/merge_requests/_merge_request.html.haml
+25
-28
app/views/merge_requests/index.html.haml
app/views/merge_requests/index.html.haml
+1
-1
app/views/milestones/show.html.haml
app/views/milestones/show.html.haml
+1
-1
app/views/repositories/tags.html.haml
app/views/repositories/tags.html.haml
+1
-1
app/views/teams/issues.html.haml
app/views/teams/issues.html.haml
+1
-1
app/views/teams/show.html.haml
app/views/teams/show.html.haml
+2
-2
app/views/votes/_votes_inline.html.haml
app/views/votes/_votes_inline.html.haml
+8
-5
No files found.
app/assets/stylesheets/common.scss
View file @
37eeeb9f
...
@@ -279,7 +279,7 @@ li.note {
...
@@ -279,7 +279,7 @@ li.note {
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.merge
_
request
,
.merge
-
request
,
.issue
{
.issue
{
&
.today
{
&
.today
{
background
:
#EFE
;
background
:
#EFE
;
...
...
app/assets/stylesheets/sections/dashboard.scss
0 → 100644
View file @
37eeeb9f
.dashboard
{
@extend
.row
;
.activities
{
}
.side
{
@extend
.pull-right
;
.ui-box
{
margin
:
3px
;
>
.title
{
padding
:
2px
15px
;
}
.nav-projects-tabs
li
{
padding
:
0
;
}
.well-list
{
li
{
padding
:
15px
;
}
.arrow
{
float
:
right
;
padding
:
10px
;
margin
:
0
;
}
.last_activity
{
padding-top
:
5px
;
display
:
block
;
span
,
strong
{
font-size
:
12px
;
color
:
#666
;
}
}
}
@extend
.ui-box
;
}
}
}
.dashboard-search-filter
{
padding
:
5px
;
.search-text-input
{
float
:left
;
@extend
.span2
;
}
.btn
{
margin-left
:
5px
;
float
:left
;
}
}
app/assets/stylesheets/sections/issues.scss
View file @
37eeeb9f
.issues
_table
{
.issues
-list
{
.issue
{
.issue
{
padding
:
10px
;
padding
:
10px
;
position
:
relative
;
.issue-title
{
margin-bottom
:
5px
;
font-size
:
14px
;
}
.issue-info
{
color
:
#999
;
}
.issue
_
check
{
.issue
-
check
{
float
:
left
;
float
:
left
;
padding
:
8px
0
;
padding
:
8px
0
;
padding-right
:
8px
;
padding-right
:
8px
;
min-width
:
15px
;
min-width
:
15px
;
}
}
p
{
.issue-labels
{
padding-top
:
0
;
display
:
inline-block
;
padding-bottom
:
2px
;
}
}
img
.avatar
{
.issue-actions
{
width
:
32px
;
display
:
none
;
margin-top
:
1px
;
position
:
absolute
;
top
:
10px
;
right
:
2px
;
}
&
:hover
{
.issue-actions
{
display
:
block
;
}
}
}
}
}
}
}
...
...
app/assets/stylesheets/sections/merge_requests.scss
View file @
37eeeb9f
...
@@ -53,18 +53,6 @@
...
@@ -53,18 +53,6 @@
}
}
}
}
li
.merge_request
{
padding
:
10px
;
img
.avatar
{
width
:
32px
;
margin-top
:
1px
;
}
p
{
padding
:
0px
;
padding-bottom
:
2px
;
}
}
.merge-in-progress
{
.merge-in-progress
{
@extend
.padded
;
@extend
.padded
;
@extend
.append-bottom-10
;
@extend
.append-bottom-10
;
...
@@ -97,3 +85,31 @@ li.merge_request {
...
@@ -97,3 +85,31 @@ li.merge_request {
.mr_direction_tip
{
.mr_direction_tip
{
margin-top
:
40px
margin-top
:
40px
}
}
.label-branch
{
@include
border-radius
(
4px
);
padding
:
2px
4px
;
border
:
none
;
font-size
:
14px
;
background
:
#474D57
;
color
:
#fff
;
font-family
:
$monospace_font
;
text-shadow
:
0
1px
1px
#111
;
font-weight
:
normal
;
}
.mr-list
{
.merge-request
{
padding
:
10px
;
position
:
relative
;
.merge-request-title
{
margin-bottom
:
5px
;
font-size
:
14px
;
}
.merge-request-info
{
color
:
#999
;
}
}
}
app/assets/stylesheets/sections/votes.scss
View file @
37eeeb9f
...
@@ -35,9 +35,4 @@
...
@@ -35,9 +35,4 @@
.votes-inline
{
.votes-inline
{
display
:
inline-block
;
display
:
inline-block
;
margin
:
0
8px
;
margin
:
0
8px
;
.progress
{
display
:
inline-block
;
padding
:
0
0
2px
;
width
:
45px
;
}
}
}
app/helpers/merge_requests_helper.rb
View file @
37eeeb9f
...
@@ -11,7 +11,7 @@ module MergeRequestsHelper
...
@@ -11,7 +11,7 @@ module MergeRequestsHelper
end
end
def
mr_css_classes
mr
def
mr_css_classes
mr
classes
=
"merge
_
request"
classes
=
"merge
-
request"
classes
<<
" closed"
if
mr
.
closed?
classes
<<
" closed"
if
mr
.
closed?
classes
<<
" merged"
if
mr
.
merged?
classes
<<
" merged"
if
mr
.
merged?
classes
classes
...
...
app/helpers/projects_helper.rb
View file @
37eeeb9f
...
@@ -25,7 +25,7 @@ module ProjectsHelper
...
@@ -25,7 +25,7 @@ module ProjectsHelper
author_html
=
""
author_html
=
""
# Build avatar image tag
# Build avatar image tag
author_html
<<
image_tag
(
gravatar_icon
(
author
.
try
(
:email
)),
width:
16
,
class:
"
lil_av
"
)
if
opts
[
:avatar
]
author_html
<<
image_tag
(
gravatar_icon
(
author
.
try
(
:email
)),
width:
16
,
class:
"
avatar avatar-inline s16
"
)
if
opts
[
:avatar
]
# Build name span tag
# Build name span tag
author_html
<<
content_tag
(
:span
,
sanitize
(
author
.
name
),
class:
'author'
)
author_html
<<
content_tag
(
:span
,
sanitize
(
author
.
name
),
class:
'author'
)
...
...
app/views/dashboard/issues.html.haml
View file @
37eeeb9f
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
-
project
=
group
[
0
]
-
project
=
group
[
0
]
%h5
.title
%h5
.title
=
link_to_project
project
=
link_to_project
project
%ul
.well-list.issues
_table
%ul
.well-list.issues
-list
-
group
[
1
].
each
do
|
issue
|
-
group
[
1
].
each
do
|
issue
|
=
render
issue
=
render
issue
%hr
%hr
...
...
app/views/dashboard/projects.html.haml
View file @
37eeeb9f
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
=
button_tag
type:
'submit'
,
class:
'btn'
do
=
button_tag
type:
'submit'
,
class:
'btn'
do
%i
.icon-search
%i
.icon-search
%ul
.
well
-list
%ul
.
bordered
-list
-
@projects
.
each
do
|
project
|
-
@projects
.
each
do
|
project
|
%li
.clearfix
%li
.clearfix
.clearfix
.clearfix
...
...
app/views/dashboard/show.html.haml
View file @
37eeeb9f
-
if
@has_authorized_projects
-
if
@has_authorized_projects
.
projects
.
dashboard
.activities.span8
.activities.span8
=
render
'activities'
=
render
'activities'
.side.span4
.side.span4
...
...
app/views/groups/issues.html.haml
View file @
37eeeb9f
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
-
project
=
group
[
0
]
-
project
=
group
[
0
]
%h5
.title
%h5
.title
=
link_to_project
project
=
link_to_project
project
%ul
.well-list.issues
_table
%ul
.well-list.issues
-list
-
group
[
1
].
each
do
|
issue
|
-
group
[
1
].
each
do
|
issue
|
=
render
issue
=
render
issue
%hr
%hr
...
...
app/views/groups/show.html.haml
View file @
37eeeb9f
.
projects
.
dashboard
.activities.span8
.activities.span8
=
render
"events/event_last_push"
,
event:
@last_push
=
render
"events/event_last_push"
,
event:
@last_push
=
link_to
dashboard_path
,
class:
'btn btn-tiny'
do
=
link_to
dashboard_path
,
class:
'btn btn-tiny'
do
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
.loading.hide
.loading.hide
.side.span4
.side.span4
-
if
@group
.
description
.
present?
-
if
@group
.
description
.
present?
.description.well.light
.description.well.
well-small.
light
=
@group
.
description
=
@group
.
description
=
render
"projects"
,
projects:
@projects
=
render
"projects"
,
projects:
@projects
.prepend-top-20
.prepend-top-20
...
...
app/views/issues/_issue.html.haml
View file @
37eeeb9f
%li
{
id:
dom_id
(
issue
),
class:
issue_css_classes
(
issue
),
url:
project_issue_path
(
issue
.
project
,
issue
)
}
%li
{
id:
dom_id
(
issue
),
class:
issue_css_classes
(
issue
),
url:
project_issue_path
(
issue
.
project
,
issue
)
}
-
if
controller
.
controller_name
==
'issues'
-
if
controller
.
controller_name
==
'issues'
.issue
_
check
.issue
-
check
=
check_box_tag
dom_id
(
issue
,
"selected"
),
nil
,
false
,
'data-id'
=>
issue
.
id
,
class:
"selected_issue"
,
disabled:
!
can?
(
current_user
,
:modify_issue
,
issue
)
=
check_box_tag
dom_id
(
issue
,
"selected"
),
nil
,
false
,
'data-id'
=>
issue
.
id
,
class:
"selected_issue"
,
disabled:
!
can?
(
current_user
,
:modify_issue
,
issue
)
.pull-right
.issue-title
%span
.light
=
"#
#{
issue
.
id
}
"
=
link_to_gfm
truncate
(
issue
.
title
,
length:
100
),
project_issue_path
(
issue
.
project
,
issue
),
class:
"row_title"
.issue-info
-
if
issue
.
assignee
assigned to
#{
link_to_member
(
@project
,
issue
.
assignee
)
}
-
else
unassigned
-
if
issue
.
votes_count
>
0
=
render
'votes/votes_inline'
,
votable:
issue
-
if
issue
.
notes
.
any?
-
if
issue
.
notes
.
any?
%span
.btn.btn-small.disabled.grouped
%span
%i
.icon-comment
%i
.icon-comment
s
=
issue
.
notes
.
count
=
issue
.
notes
.
count
-
if
issue
.
milestone_id?
%span
%i
.icon-time
=
issue
.
milestone
.
title
.pull-right
%small
updated
#{
time_ago_in_words
(
issue
.
updated_at
)
}
ago
.issue-labels
-
issue
.
labels
.
each
do
|
label
|
%span
.label.label-info
%i
.icon-tag
=
label
.
name
.issue-actions
-
if
can?
current_user
,
:modify_issue
,
issue
-
if
can?
current_user
,
:modify_issue
,
issue
-
if
issue
.
closed?
-
if
issue
.
closed?
=
link_to
'Reopen'
,
project_issue_path
(
issue
.
project
,
issue
,
issue:
{
state_event: :reopen
},
status_only:
true
),
method: :put
,
class:
"btn btn-small grouped reopen_issue"
,
remote:
true
=
link_to
'Reopen'
,
project_issue_path
(
issue
.
project
,
issue
,
issue:
{
state_event: :reopen
},
status_only:
true
),
method: :put
,
class:
"btn btn-small grouped reopen_issue"
,
remote:
true
...
@@ -16,24 +41,4 @@
...
@@ -16,24 +41,4 @@
%i
.icon-edit
%i
.icon-edit
Edit
Edit
-
if
issue
.
assignee
=
image_tag
gravatar_icon
(
issue
.
assignee_email
),
class:
"avatar"
-
else
=
image_tag
"no_avatar.png"
,
class:
"avatar"
%p
=
link_to_gfm
truncate
(
issue
.
title
,
length:
100
),
project_issue_path
(
issue
.
project
,
issue
),
class:
"row_title"
%span
.update-author
%span
.cdark
=
"#
#{
issue
.
id
}
"
-
if
issue
.
assignee
assigned to
#{
issue
.
assignee_name
}
-
else
-
if
issue
.
votes_count
>
0
=
render
'votes/votes_inline'
,
votable:
issue
%span
-
issue
.
labels
.
each
do
|
label
|
%span
.label.label-info
%i
.icon-tag
=
label
.
name
app/views/issues/index.html.haml
View file @
37eeeb9f
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
=
form_tag
search_project_issues_path
(
@project
),
method: :get
,
remote:
true
,
id:
"issue_search_form"
,
class:
'pull-right'
do
=
form_tag
search_project_issues_path
(
@project
),
method: :get
,
remote:
true
,
id:
"issue_search_form"
,
class:
'pull-right'
do
=
hidden_field_tag
:project_id
,
@project
.
id
,
{
id:
'project_id'
}
=
hidden_field_tag
:project_id
,
@project
.
id
,
{
id:
'project_id'
}
=
hidden_field_tag
:status
,
params
[
:status
]
=
hidden_field_tag
:status
,
params
[
:status
]
=
search_field_tag
:issue_search
,
nil
,
{
placeholder:
'Search'
,
class:
'issue_search
span3 pull-right neib
search-text-input'
}
=
search_field_tag
:issue_search
,
nil
,
{
placeholder:
'Search'
,
class:
'issue_search
input-xlarge append-right-10
search-text-input'
}
.clearfix
.clearfix
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
=
select_tag
(
:milestone_id
,
options_from_collection_for_select
([
unassigned_filter
]
+
issues_active_milestones
,
"id"
,
"title"
,
params
[
:milestone_id
]),
prompt:
"Milestone"
)
=
select_tag
(
:milestone_id
,
options_from_collection_for_select
([
unassigned_filter
]
+
issues_active_milestones
,
"id"
,
"title"
,
params
[
:milestone_id
]),
prompt:
"Milestone"
)
=
hidden_field_tag
:status
,
params
[
:status
]
=
hidden_field_tag
:status
,
params
[
:status
]
%ul
#issues-table
.well-list.issues
_table
%ul
#issues-table
.well-list.issues
-list
=
render
"issues"
=
render
"issues"
:javascript
:javascript
...
...
app/views/merge_requests/_merge_request.html.haml
View file @
37eeeb9f
%li
{
class:
mr_css_classes
(
merge_request
)
}
%li
{
class:
mr_css_classes
(
merge_request
)
}
.pull-right
.merge-request-title
.left
%span
.light
=
"#
#{
merge_request
.
id
}
"
=
link_to_gfm
truncate
(
merge_request
.
title
,
length:
80
),
project_merge_request_path
(
merge_request
.
project
,
merge_request
),
class:
"row_title"
-
if
merge_request
.
merged?
-
if
merge_request
.
merged?
%span
.btn.btn-small.disabled.grouped
%small
.pull-right
%strong
%i
.icon-ok
%i
.icon-ok
=
"MERGED"
=
"MERGED"
-
else
%span
.pull-right
%i
.icon-angle-right
=
merge_request
.
target_branch
.merge-request-info
-
if
merge_request
.
author
authored by
#{
link_to_member
(
@project
,
merge_request
.
author
)
}
-
if
merge_request
.
votes_count
>
0
=
render
'votes/votes_inline'
,
votable:
merge_request
-
if
merge_request
.
notes
.
any?
-
if
merge_request
.
notes
.
any?
%span
.btn.btn-small.disabled.grouped
%span
%i
.icon-comment
%i
.icon-comments
=
merge_request
.
mr_and_commit_notes
.
count
=
merge_request
.
mr_and_commit_notes
.
count
-
if
merge_request
.
milestone_id?
-
if
merge_request
.
milestone_id?
%span
.btn.btn-small.disabled.grouped
%span
%i
.icon-time
%i
.icon-time
=
merge_request
.
milestone
.
title
=
merge_request
.
milestone
.
title
%span
.btn.btn-small.disabled.grouped
=
merge_request
.
source_branch
→
=
merge_request
.
target_branch
=
image_tag
gravatar_icon
(
merge_request
.
author_email
),
class:
"avatar"
%p
=
link_to_gfm
truncate
(
merge_request
.
title
,
length:
80
),
project_merge_request_path
(
merge_request
.
project
,
merge_request
),
class:
"row_title"
%span
.update-author
.pull-right
%small
.cdark
=
"#
#{
merge_request
.
id
}
"
%small
updated
#{
time_ago_in_words
(
merge_request
.
updated_at
)
}
ago
authored by
#{
merge_request
.
author_name
}
=
time_ago_in_words
(
merge_request
.
created_at
)
ago
-
if
merge_request
.
votes_count
>
0
=
render
'votes/votes_inline'
,
votable:
merge_request
app/views/merge_requests/index.html.haml
View file @
37eeeb9f
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
=
hidden_field_tag
:f
,
params
[
:f
]
=
hidden_field_tag
:f
,
params
[
:f
]
.clearfix
.clearfix
%ul
.well-list
%ul
.well-list
.mr-list
=
render
@merge_requests
=
render
@merge_requests
-
if
@merge_requests
.
blank?
-
if
@merge_requests
.
blank?
%li
%li
...
...
app/views/milestones/show.html.haml
View file @
37eeeb9f
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
%h6
Participants:
%h6
Participants:
%div
%div
-
@users
.
each
do
|
user
|
-
@users
.
each
do
|
user
|
=
link_to
user
,
class:
'float-link'
do
=
link_to
user
do
=
link_to_member
(
@project
,
user
)
=
link_to_member
(
@project
,
user
)
.clearfix
.clearfix
app/views/repositories/tags.html.haml
View file @
37eeeb9f
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
%span
.light
%span
.light
=
time_ago_in_words
(
commit
.
committed_date
)
=
time_ago_in_words
(
commit
.
committed_date
)
ago
ago
%div
.prepend-left
%div
.prepend-left
-20
=
link_to
commit
.
short_id
(
8
),
project_commit_path
(
@project
,
commit
),
class:
"monospace"
=
link_to
commit
.
short_id
(
8
),
project_commit_path
(
@project
,
commit
),
class:
"monospace"
–
–
=
link_to_gfm
truncate
(
commit
.
title
,
length:
70
),
project_commit_path
(
@project
,
commit
.
id
),
class:
"cdark"
=
link_to_gfm
truncate
(
commit
.
title
,
length:
70
),
project_commit_path
(
@project
,
commit
.
id
),
class:
"cdark"
...
...
app/views/teams/issues.html.haml
View file @
37eeeb9f
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
-
@project
=
group
[
0
]
-
@project
=
group
[
0
]
%h5
.title
%h5
.title
=
link_to_project
@project
=
link_to_project
@project
%ul
.well-list.issues
_table
%ul
.well-list.issues
-list
-
group
[
1
].
each
do
|
issue
|
-
group
[
1
].
each
do
|
issue
|
=
render
issue
=
render
issue
%hr
%hr
...
...
app/views/teams/show.html.haml
View file @
37eeeb9f
.
projects
.
dashboard
.activities.span8
.activities.span8
=
link_to
dashboard_path
,
class:
'btn btn-tiny'
do
=
link_to
dashboard_path
,
class:
'btn btn-tiny'
do
←
To dashboard
←
To dashboard
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
.loading.hide
.loading.hide
.side.span4
.side.span4
-
if
@team
.
description
.
present?
-
if
@team
.
description
.
present?
.description.well.light
.description.well.
well-small.
light
=
@team
.
description
=
@team
.
description
=
render
"projects"
,
projects:
@projects
=
render
"projects"
,
projects:
@projects
.prepend-top-20
.prepend-top-20
...
...
app/views/votes/_votes_inline.html.haml
View file @
37eeeb9f
.votes.votes-inline
.votes.votes-inline
.upvotes
=
votable
.
upvotes
-
unless
votable
.
upvotes
.
zero?
.progress
.upvotes
.bar.bar-success
{
style:
"width: #{votable.upvotes_in_percent}%;"
}
+
#{
votable
.
upvotes
}
.bar.bar-danger
{
style:
"width: #{votable.downvotes_in_percent}%;"
}
-
unless
votable
.
downvotes
.
zero?
.downvotes
=
votable
.
downvotes
\/
-
unless
votable
.
downvotes
.
zero?
.downvotes
\-
#{
votable
.
downvotes
}
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