BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
bcfa62b6
Commit
bcfa62b6
authored
May 07, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ui-fixes' into 'master'
Ui fixes * Fix merge request widget UI * Improve jquery UI * truncate long branch names on MR index
parents
02ae038c
97eb2240
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
34 deletions
+40
-34
jquery.scss
app/assets/stylesheets/generic/jquery.scss
+28
-11
issues.scss
app/assets/stylesheets/sections/issues.scss
+0
-8
_merge_request.html.haml
app/views/projects/merge_requests/_merge_request.html.haml
+3
-7
_state_widget.html.haml
...iews/projects/merge_requests/show/_state_widget.html.haml
+9
-8
No files found.
app/assets/stylesheets/generic/jquery.scss
View file @
bcfa62b6
...
...
@@ -8,7 +8,7 @@
width
:
270px
;
.ui-datepicker-header
{
background
:
#
EEE
;
background
:
#
FFF
;
border-color
:
#DDD
;
}
...
...
@@ -19,20 +19,37 @@
}
&
.ui-autocomplete
{
@include
border-radius
(
0px
);
border-color
:
#DDD
;
padding
:
0
;
margin-top
:
2px
;
z-index
:
1001
;
.ui-menu-item
a
{
color
:
#777
;
&
:hover
{
background
:
$hover
;
border-color
:
$primary_color
;
@include
border-radius
(
0px
);
color
:
#333
;
}
padding
:
4px
10px
;
}
}
}
.ui-state-default
{
border
:
1px
solid
#FFF
;
background
:
#FFF
;
color
:
#777
;
}
.ui-state-highlight
{
border
:
1px
solid
#EEE
;
background
:
#EEE
;
}
.ui-state-active
{
border
:
1px
solid
$bg_style_color
;
background
:
$bg_style_color
;
color
:
#FFF
;
}
.ui-state-hover
,
.ui-state-focus
{
border
:
1px
solid
$hover
;
background
:
$hover
;
color
:
#333
;
}
}
app/assets/stylesheets/sections/issues.scss
View file @
bcfa62b6
...
...
@@ -45,14 +45,6 @@
padding
:
6px
10px
;
border
:
1px
solid
#ccc
;
@include
border-radius
(
4px
);
input
.check_all_issues
{
padding
:
0
;
margin
:
0
;
position
:
relative
;
top
:
3px
;
}
}
.issues_content
{
...
...
app/views/projects/merge_requests/_merge_request.html.haml
View file @
bcfa62b6
...
...
@@ -11,13 +11,9 @@
-
if
merge_request
.
for_fork?
%span
.light
#{
merge_request
.
source_project_namespace
}
:
=
merge_request
.
source_branch
%i
.icon-angle-right.light
=
merge_request
.
target_branch
-
else
=
merge_request
.
source_branch
%i
.icon-angle-right.light
=
merge_request
.
target_branch
=
truncate
merge_request
.
source_branch
,
length:
25
%i
.icon-angle-right.light
=
merge_request
.
target_branch
.merge-request-info
-
if
merge_request
.
author
authored by
#{
link_to_member
(
merge_request
.
source_project
,
merge_request
.
author
)
}
...
...
app/views/projects/merge_requests/show/_state_widget.html.haml
View file @
bcfa62b6
...
...
@@ -21,14 +21,6 @@
#{
time_ago_with_tooltip
(
@merge_request
.
merge_event
.
created_at
)
}
=
render
"projects/merge_requests/show/remove_source_branch"
-
if
!
@closes_issues
.
empty?
&&
@merge_request
.
open?
.alert.alert-info.alert-info
%span
%i
.icon-ok
Accepting this merge request will close
#{
@closes_issues
.
size
==
1
?
'issue'
:
'issues'
}
=
succeed
'.'
do
!=
gfm
(
@closes_issues
.
map
{
|
i
|
"#
#{
i
.
iid
}
"
}.
to_sentence
)
-
unless
@commits
.
any?
%h4
Nothing to merge
%p
...
...
@@ -38,3 +30,12 @@
%span
.label-branch
#{
@merge_request
.
target_branch
}
%br
Try to use different branches or push new code.
-
if
!
@closes_issues
.
empty?
&&
@merge_request
.
open?
.panel-footer
%span
%i
.icon-ok
Accepting this merge request will close
#{
@closes_issues
.
size
==
1
?
'issue'
:
'issues'
}
=
succeed
'.'
do
!=
gfm
(
@closes_issues
.
map
{
|
i
|
"#
#{
i
.
iid
}
"
}.
to_sentence
)
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