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
Boxiang Sun
gitlab-ce
Commits
0321a3c9
Commit
0321a3c9
authored
Jun 26, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MR: merged badge. Removed colors from MR list
parent
89d3366e
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
28 additions
and
25 deletions
+28
-25
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+2
-2
app/assets/stylesheets/gitlab_bootstrap.scss
app/assets/stylesheets/gitlab_bootstrap.scss
+3
-0
app/assets/stylesheets/nav.scss
app/assets/stylesheets/nav.scss
+2
-2
app/helpers/merge_requests_helper.rb
app/helpers/merge_requests_helper.rb
+0
-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
+4
-4
app/views/issues/show.html.haml
app/views/issues/show.html.haml
+6
-0
app/views/merge_requests/_merge_request.html.haml
app/views/merge_requests/_merge_request.html.haml
+5
-2
app/views/merge_requests/index.html.haml
app/views/merge_requests/index.html.haml
+0
-13
app/views/merge_requests/show.html.haml
app/views/merge_requests/show.html.haml
+5
-0
No files found.
app/assets/stylesheets/common.scss
View file @
0321a3c9
...
...
@@ -694,8 +694,8 @@ li.note {
}
}
&
.merged
{
background
:
#F
EF
;
border-color
:
#E
DE
;
background
:
#F
5f5f5
;
border-color
:
#E
5E5E5
;
.icon
{
background
:
#DAD
;
border
:
1px
solid
#B8B
;
...
...
app/assets/stylesheets/gitlab_bootstrap.scss
View file @
0321a3c9
...
...
@@ -174,6 +174,9 @@ a:focus {
.label
{
background-color
:
#474D57
;
&
.label-important
{
background-color
:
#B94A48
;
}
}
.nav-tabs
>
li
>
a
,
.nav-pills
>
li
>
a
{
...
...
app/assets/stylesheets/nav.scss
View file @
0321a3c9
...
...
@@ -8,7 +8,7 @@ nav.main_menu {
margin
:
30px
0
;
background
:
#eee
;
border
:
1px
solid
#bbb
;
height
:
3
8
px
;
height
:
3
6
px
;
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
30
,
color-stop
(
0
.066
,
#eee
)
,
to
(
#dfdfdf
));
background-image
:
-webkit-linear-gradient
(
#eee
6
.6%
,
#dfdfdf
);
background-image
:
-moz-linear-gradient
(
#eee
6
.6%
,
#dfdfdf
);
...
...
@@ -55,7 +55,7 @@ nav.main_menu {
border-bottom-left-radius
:
4px
;
border-left
:
0
;
}
padding
:
10
px
25px
;
padding
:
9
px
25px
;
display
:
inline-block
;
color
:
$style_color
;
position
:
relative
;
...
...
app/helpers/merge_requests_helper.rb
View file @
0321a3c9
...
...
@@ -36,7 +36,6 @@ module MergeRequestsHelper
classes
=
"merge_request"
classes
<<
" closed"
if
mr
.
closed
classes
<<
" merged"
if
mr
.
merged?
classes
<<
" today"
if
mr
.
today?
classes
end
end
app/views/issues/_show.html.haml
View file @
0321a3c9
...
...
@@ -19,6 +19,6 @@
%strong
=
issue
.
assignee_name
-
if
issue
.
upvotes
>
0
%span
.badge.badge-success
=
"+
#{
issue
.
upvotes
}
"
=
link_to
project_issue_path
(
issue
.
project
,
issue
)
do
%p
.row_title
=
truncate
(
issue
.
title
,
:length
=>
100
)
app/views/issues/index.html.haml
View file @
0321a3c9
...
...
@@ -16,6 +16,10 @@
%br
.issues_legend
.list_legend
.icon.today
.text
Today
.list_legend
.icon.critical
.text
Critical
...
...
@@ -23,10 +27,6 @@
.list_legend
.icon.closed
.text
Closed
.list_legend
.icon.today
.text
Today
.clearfix
%div
#issues-table-holder
.ui-box
...
...
app/views/issues/show.html.haml
View file @
0321a3c9
%h3
Issue ##{@issue.id}
%small
created at
=
@issue
.
created_at
.
stamp
(
"Aug 21, 2011"
)
...
...
@@ -48,6 +49,11 @@
%strong
=
truncate
(
milestone
.
title
,
:length
=>
20
)
.right
-
if
@issue
.
critical
%span
.label.label-important
Critical
-
if
@issue
.
description
.
present?
.bottom_box_content
=
preserve
do
...
...
app/views/merge_requests/_merge_request.html.haml
View file @
0321a3c9
%li
.wll
{
:class
=>
mr_css_classes
(
merge_request
)
}
.list_legend
.icon
.right
.left
-
if
merge_request
.
merged?
%span
.btn.small.disabled.padded
%strong
%i
.icon-ok
=
"MERGED"
-
if
merge_request
.
notes
.
any?
%span
.btn.small.disabled.padded
=
pluralize
merge_request
.
notes
.
count
,
'note'
%span
.btn.small.disabled.padded
...
...
app/views/merge_requests/index.html.haml
View file @
0321a3c9
...
...
@@ -6,19 +6,6 @@
%br
.mrs_legend
.list_legend
.icon.today
.text
Today
.list_legend
.icon.merged
.text
Merged
.list_legend
.icon.closed
.text
Closed
.clearfix
.ui-box
.title
...
...
app/views/merge_requests/show.html.haml
View file @
0321a3c9
...
...
@@ -6,6 +6,11 @@
%span
.pretty_label.branch
=
@merge_request
.
target_branch
%span
.right
-
if
@merge_request
.
merged?
%span
.btn.small.disabled.padded
%strong
%i
.icon-ok
=
"MERGED"
-
if
can?
(
current_user
,
:modify_merge_request
,
@merge_request
)
-
if
@merge_request
.
open?
=
link_to
'Close'
,
project_merge_request_path
(
@project
,
@merge_request
,
:merge_request
=>
{
:closed
=>
true
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"btn small padded danger"
,
:title
=>
"Close merge request"
...
...
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