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
5b2aa853
Commit
5b2aa853
authored
Dec 31, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compare view and services
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
d7a48443
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
40 additions
and
35 deletions
+40
-35
app/assets/stylesheets/generic/forms.scss
app/assets/stylesheets/generic/forms.scss
+4
-0
app/assets/stylesheets/generic/ui_box.scss
app/assets/stylesheets/generic/ui_box.scss
+2
-1
app/assets/stylesheets/sections/commits.scss
app/assets/stylesheets/sections/commits.scss
+2
-2
app/views/projects/compare/_form.html.haml
app/views/projects/compare/_form.html.haml
+18
-18
app/views/projects/compare/show.html.haml
app/views/projects/compare/show.html.haml
+1
-1
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+8
-8
app/views/projects/new_tree/show.html.haml
app/views/projects/new_tree/show.html.haml
+2
-2
app/views/projects/services/_form.html.haml
app/views/projects/services/_form.html.haml
+3
-3
No files found.
app/assets/stylesheets/generic/forms.scss
View file @
5b2aa853
...
@@ -33,3 +33,7 @@ fieldset legend {
...
@@ -33,3 +33,7 @@ fieldset legend {
label
.control-label
{
label
.control-label
{
@extend
.col-sm-2
;
@extend
.col-sm-2
;
}
}
.inline-input-group
{
width
:
250px
;
}
app/assets/stylesheets/generic/ui_box.scss
View file @
5b2aa853
...
@@ -158,7 +158,8 @@
...
@@ -158,7 +158,8 @@
.title
{
.title
{
background
:
#D65
;
background
:
#D65
;
color
:
#fff
;
color
:
#fff
;
text-shadow
:
0
1px
1px
#900
;
text-shadow
:
none
;
font-weight
:
500
;
}
}
}
}
...
...
app/assets/stylesheets/sections/commits.scss
View file @
5b2aa853
...
@@ -399,8 +399,8 @@
...
@@ -399,8 +399,8 @@
.commits-compare-switch
{
.commits-compare-switch
{
background
:
url("switch_icon.png")
no-repeat
center
center
;
background
:
url("switch_icon.png")
no-repeat
center
center
;
width
:
2
2px
;
width
:
3
2px
;
height
:
2
2px
;
height
:
3
2px
;
text-indent
:
-9999px
;
text-indent
:
-9999px
;
float
:
left
;
float
:
left
;
margin-right
:
9px
;
margin-right
:
9px
;
...
...
app/views/projects/compare/_form.html.haml
View file @
5b2aa853
=
form_tag
project_compare_index_path
(
@project
),
method: :post
do
=
form_tag
project_compare_index_path
(
@project
),
method: :post
,
class:
'form-inline'
do
.clearfix
.clearfix
.append-bottom-20
.pull-left
-
if
params
[
:to
]
&&
params
[
:from
]
-
if
params
[
:to
]
&&
params
[
:from
]
=
link_to
'switch'
,
{
from:
params
[
:to
],
to:
params
[
:from
]},
{
class:
'commits-compare-switch has_tooltip'
,
title:
'Switch base of comparison'
}
=
link_to
'switch'
,
{
from:
params
[
:to
],
to:
params
[
:from
]},
{
class:
'commits-compare-switch has_tooltip'
,
title:
'Switch base of comparison'
}
.form-group
.input-
prepend
.input-
group.inline-input-group
%span
.
add-
on
from
%span
.
input-group-add
on
from
=
text_field_tag
:from
,
params
[
:from
],
class:
"
span3 input-xpadding
"
=
text_field_tag
:from
,
params
[
:from
],
class:
"
form-control
"
=
"..."
=
"..."
.input-prepend
.form-group
%span
.add-on
to
.input-group.inline-input-group
=
text_field_tag
:to
,
params
[
:to
],
class:
"span3 input-xpadding"
%span
.input-group-addon
to
.pull-left
=
text_field_tag
:to
,
params
[
:to
],
class:
"form-control"
=
submit_tag
"Compare"
,
class:
"btn btn-create commits-compare-btn"
=
submit_tag
"Compare"
,
class:
"btn btn-create commits-compare-btn"
-
if
compare_to_mr_button?
-
if
compare_to_mr_button?
=
link_to
compare_mr_path
,
class:
'prepend-left-10'
do
=
link_to
compare_mr_path
,
class:
'prepend-left-10'
do
%strong
Make a merge request
%strong
Make a merge request
:javascript
:javascript
...
...
app/views/projects/compare/show.html.haml
View file @
5b2aa853
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
=
render
"form"
=
render
"form"
-
if
@commits
.
size
>
100
-
if
@commits
.
size
>
100
.alert.alert-
block
.alert.alert-
warning
%p
%p
%strong
Warning! This comparison includes more than 100 commits.
%strong
Warning! This comparison includes more than 100 commits.
%p
To preserve performance the line diff is not shown.
%p
To preserve performance the line diff is not shown.
...
...
app/views/projects/edit.html.haml
View file @
5b2aa853
...
@@ -134,9 +134,9 @@
...
@@ -134,9 +134,9 @@
.title
Transfer project
.title
Transfer project
.errors-holder
.errors-holder
.form-holder
.form-holder
=
form_for
(
@project
,
url:
transfer_project_path
(
@project
),
method: :put
,
remote:
true
,
html:
{
class:
'transfer-project'
})
do
|
f
|
=
form_for
(
@project
,
url:
transfer_project_path
(
@project
),
method: :put
,
remote:
true
,
html:
{
class:
'transfer-project
form-horizontal
'
})
do
|
f
|
.form-group
.form-group
=
f
.
label
:namespace_id
do
=
f
.
label
:namespace_id
,
class:
'control-label'
do
%span
Namespace
%span
Namespace
.col-sm-10
.col-sm-10
.form-group
.form-group
...
@@ -154,15 +154,15 @@
...
@@ -154,15 +154,15 @@
.title
Rename repository
.title
Rename repository
.errors-holder
.errors-holder
.form-holder
.form-holder
=
form_for
(
@project
)
do
|
f
|
=
form_for
(
@project
,
html:
{
class:
'form-horizontal'
}
)
do
|
f
|
.form-group
.form-group
=
f
.
label
:path
do
=
f
.
label
:path
,
class:
'control-label'
do
%span
Path
%span
Path
.col-sm-
10
.col-sm-
9
.form-group
.form-group
.input-
append
.input-
group
=
f
.
text_field
:path
=
f
.
text_field
:path
,
class:
'form-control'
%span
.
add-
on
.git
%span
.
input-group-add
on
.git
%ul
%ul
%li
Be careful. Renaming a project's repository can have unintended side effects.
%li
Be careful. Renaming a project's repository can have unintended side effects.
%li
You will need to update your local repositories to point to the new location.
%li
You will need to update your local repositories to point to the new location.
...
...
app/views/projects/new_tree/show.html.haml
View file @
5b2aa853
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
.col-sm-10
.col-sm-10
%span
.monospace
=
@path
[
-
1
]
==
"/"
?
@path
:
@path
+
"/"
%span
.monospace
=
@path
[
-
1
]
==
"/"
?
@path
:
@path
+
"/"
=
text_field_tag
'file_name'
,
params
[
:file_name
],
placeholder:
"sample.rb"
,
required:
true
=
text_field_tag
'file_name'
,
params
[
:file_name
],
placeholder:
"sample.rb"
,
required:
true
,
class:
'form-control'
%span
%span
on
on
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
=
label_tag
'commit_message'
,
class:
"control-label"
do
=
label_tag
'commit_message'
,
class:
"control-label"
do
Commit message
Commit message
.col-sm-10
.col-sm-10
=
text_area_tag
'commit_message'
,
params
[
:commit_message
],
placeholder:
"Added new file"
,
required:
true
,
rows:
3
=
text_area_tag
'commit_message'
,
params
[
:commit_message
],
placeholder:
"Added new file"
,
required:
true
,
rows:
3
,
class:
'form-control'
.file-holder
.file-holder
.file-title
.file-title
...
...
app/views/projects/services/_form.html.haml
View file @
5b2aa853
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
%hr
%hr
=
form_for
(
@service
,
as: :service
,
url:
project_service_path
(
@project
,
@service
.
to_param
),
method: :put
)
do
|
f
|
=
form_for
(
@service
,
as: :service
,
url:
project_service_path
(
@project
,
@service
.
to_param
),
method: :put
,
html:
{
class:
'form-horizontal'
}
)
do
|
f
|
-
if
@service
.
errors
.
any?
-
if
@service
.
errors
.
any?
.alert.alert-danger
.alert.alert-danger
%ul
%ul
...
@@ -32,9 +32,9 @@
...
@@ -32,9 +32,9 @@
=
f
.
label
name
,
class:
"control-label"
=
f
.
label
name
,
class:
"control-label"
.col-sm-10
.col-sm-10
-
if
type
==
'text'
-
if
type
==
'text'
=
f
.
text_field
name
,
class:
"
input-lg
"
,
placeholder:
placeholder
=
f
.
text_field
name
,
class:
"
form-control
"
,
placeholder:
placeholder
-
elsif
type
==
'textarea'
-
elsif
type
==
'textarea'
=
f
.
text_area
name
,
rows:
5
,
class:
"
input-lg
"
,
placeholder:
placeholder
=
f
.
text_area
name
,
rows:
5
,
class:
"
form-control
"
,
placeholder:
placeholder
-
elsif
type
==
'checkbox'
-
elsif
type
==
'checkbox'
=
f
.
check_box
name
=
f
.
check_box
name
...
...
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