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
Tatuya Kamada
gitlab-ce
Commits
4e00330b
Commit
4e00330b
authored
Dec 13, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge request js/css rewrite
parent
3dc94ba8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
50 deletions
+76
-50
app/assets/images/.directory
app/assets/images/.directory
+1
-1
app/assets/javascripts/merge_requests.js
app/assets/javascripts/merge_requests.js
+36
-0
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+22
-36
app/views/merge_requests/show.html.haml
app/views/merge_requests/show.html.haml
+16
-12
vendor/assets/stylesheets/jquery-ui/jquery-ui.css
vendor/assets/stylesheets/jquery-ui/jquery-ui.css
+1
-1
No files found.
app/assets/images/.directory
View file @
4e00330b
[Dolphin]
[Dolphin]
ShowPreview=true
ShowPreview=true
Timestamp=2011,1
0,28,13,16,25
Timestamp=2011,1
2,12,23,25,14
Version=2
Version=2
app/assets/javascripts/merge_requests.js
View file @
4e00330b
var
MergeRequest
=
{
diff_loaded
:
false
,
commits_loaded
:
false
,
init
:
function
()
{
$
(
"
.merge-tabs a
"
).
live
(
"
click
"
,
function
()
{
$
(
"
.merge-tabs a
"
).
removeClass
(
"
active
"
);
$
(
this
).
addClass
(
"
active
"
);
});
$
(
"
.merge-tabs a.merge-commits-tab
"
).
live
(
"
click
"
,
function
()
{
if
(
MergeRequest
.
commits_loaded
)
{
$
(
"
.merge-request-commits
"
).
show
();
}
else
{
MergeRequest
.
loadCommits
();
}
});
},
loadCommits
:
function
()
{
$
(
"
.dashboard-loader
"
).
show
();
$
.
ajax
({
type
:
"
GET
"
,
url
:
location
.
href
+
"
/commits
"
,
complete
:
function
(){
MergeRequest
.
commits_loaded
=
true
;
$
(
"
.dashboard-loader
"
).
hide
()},
dataType
:
"
script
"
});
},
loadDiff
:
function
()
{
}
}
app/assets/stylesheets/projects.css.scss
View file @
4e00330b
...
@@ -438,42 +438,6 @@ body.project-page table.no-borders td{
...
@@ -438,42 +438,6 @@ body.project-page table.no-borders td{
border
:none
;
border
:none
;
}
}
#gitlab-tabs
{
.ui-tabs-nav
{
border-bottom
:
1px
solid
#DEDFE1
;
li
{
background
:
none
;
border
:none
;
font-size
:
16px
;
margin
:
0
;
padding
:
0
;
a
{
margin
:
0
;
padding
:
10px
16px
;
width
:
150px
;
}
&
.ui-tabs-selected
{
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
26
,
color-stop
(
0
.076
,
#fefefe
)
,
to
(
#F6F7F8
));
background-image
:
-webkit-linear-gradient
(
#fefefe
7
.6%
,
#F6F7F8
);
background-image
:
-moz-linear-gradient
(
#fefefe
7
.6%
,
#F6F7F8
);
background-image
:
-o-linear-gradient
(
#fefefe
7
.6%
,
#F6F7F8
);
font-weight
:
bold
;
border
:
1px
solid
#DEDFE1
;
border-bottom
:
1px
solid
#DEDFE1
;
-webkit-border-top-left-radius
:
5px
;
-webkit-border-top-right-radius
:
5px
;
-moz-border-radius-topleft
:
5px
;
-moz-border-radius-topright
:
5px
;
border-top-left-radius
:
5px
;
border-top-right-radius
:
5px
;
}
}
}
}
.ajax-tab-loading
{
.ajax-tab-loading
{
padding
:
40px
;
padding
:
40px
;
display
:none
;
display
:none
;
...
@@ -587,3 +551,25 @@ h4.middle-panel {
...
@@ -587,3 +551,25 @@ h4.middle-panel {
margin-right
:
30px
;
margin-right
:
30px
;
display
:none
;
display
:none
;
}
}
ul
.merge-tabs
{
margin
:
0
;
border
:
1px
solid
#ccc
;
padding
:
10px
;
font-size
:
11px
;
font-weight
:
bold
;
text-transform
:
uppercase
;
background
:
#F7F7F7
;
margin-bottom
:
20px
;
a
{
margin-right
:
5px
;
@include
round-borders-all
(
4px
);
border
:
1px
solid
#ddd
;
background
:none
;
padding
:
4px
10px
;
&
.active
{
background
:
#eaeaea
;
}
}
}
app/views/merge_requests/show.html.haml
View file @
4e00330b
...
@@ -40,20 +40,24 @@
...
@@ -40,20 +40,24 @@
%br
%br
%br
%br
#gitlab-tabs
%ul
.merge-tabs
%ul
=
link_to
"Notes"
,
"#"
,
:class
=>
"merge-notes-tab"
%li
=
link_to
"Notes"
,
"#merge-notes"
=
link_to
"Commits"
,
"#"
,
"data-url"
=>
commits_project_merge_request_path
(
@project
,
@merge_request
),
:class
=>
"merge-commits-tab"
%li
=
link_to
"Commits"
,
commits_project_merge_request_path
(
@project
,
@merge_request
)
=
link_to
"Diff"
,
diffs_project_merge_request_path
(
@project
,
@merge_request
),
:class
=>
"merge-diffs-tab"
%li
=
link_to
"Diff"
,
diffs_project_merge_request_path
(
@project
,
@merge_request
)
%img
{
:src
=>
"/assets/ajax-loader-facebook.gif"
,
:class
=>
"dashboard-loader"
}
#merge-notes
.merge-request-notes
.issue_notes
=
render
"notes/notes"
.issue_notes
=
render
"notes/notes"
.loading
{
:style
=>
"display:none;"
}
.loading
{
:style
=>
"display:none;"
}
%center
=
image_tag
"ajax-loader.gif"
%center
=
image_tag
"ajax-loader.gif"
.clear
.clear
.merge-request-commits
.merge-request-diffs
:javascript
:javascript
$
(
function
(){
$
(
function
(){
$
(
"
#gitlab-tabs
"
).
tabs
();
MergeRequest
.
init
();
})
})
vendor/assets/stylesheets/jquery-ui/jquery-ui.css
View file @
4e00330b
/*
/*
* jQuery UI CSS Framework 1.8.16
* jQuery UI CSS Framework 1.8.16
Patched for GitLab HQ
*
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* Dual licensed under the MIT or GPL Version 2 licenses.
...
...
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