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
iv
gitlab-ce
Commits
b510223e
Commit
b510223e
authored
Feb 26, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into route-helper
parents
6de4e4a6
01660f0d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
15 deletions
+19
-15
app/assets/javascripts/diff.js.coffee
app/assets/javascripts/diff.js.coffee
+2
-1
app/assets/javascripts/issue.js.coffee
app/assets/javascripts/issue.js.coffee
+6
-5
app/assets/javascripts/merge_request.js.coffee
app/assets/javascripts/merge_request.js.coffee
+7
-5
app/assets/stylesheets/sections/diff.scss
app/assets/stylesheets/sections/diff.scss
+1
-0
app/controllers/import/gitlab_controller.rb
app/controllers/import/gitlab_controller.rb
+1
-1
app/controllers/import/gitorious_controller.rb
app/controllers/import/gitorious_controller.rb
+1
-1
app/views/projects/deploy_keys/_deploy_key.html.haml
app/views/projects/deploy_keys/_deploy_key.html.haml
+1
-1
db/migrate/20150223022001_set_missing_last_activity_at.rb
db/migrate/20150223022001_set_missing_last_activity_at.rb
+0
-1
No files found.
app/assets/javascripts/diff.js.coffee
View file @
b510223e
class
@
Diff
UNFOLD_COUNT
=
20
constructor
:
->
$
(
document
).
off
(
'click'
,
'.js-unfold'
)
$
(
document
).
on
(
'click'
,
'.js-unfold'
,
(
event
)
=>
target
=
$
(
event
.
target
)
unfoldBottom
=
target
.
hasClass
(
'js-unfold-bottom'
)
...
...
@@ -36,7 +37,7 @@ class @Diff
)
)
$
(
'.diff-header'
).
stick_in_parent
(
offset_top
:
$
(
'.navbar'
).
height
())
$
(
'.diff-header'
).
stick_in_parent
(
recalc_every
:
1
,
offset_top
:
$
(
'.navbar'
).
height
())
lineNumbers
:
(
line
)
->
return
([
0
,
0
])
unless
line
.
children
().
length
...
...
app/assets/javascripts/issue.js.coffee
View file @
b510223e
...
...
@@ -16,8 +16,9 @@ class @Issue
updateTaskState
)
$
(
'.issuable-affix'
).
affix
offset
:
top
:
->
@
top
=
$
(
'.issue-details'
).
outerHeight
(
true
)
+
25
bottom
:
->
@
bottom
=
$
(
'.footer'
).
outerHeight
(
true
)
$
(
'.issue-details'
).
waitForImages
->
$
(
'.issuable-affix'
).
affix
offset
:
top
:
->
@
top
=
$
(
'.issue-details'
).
outerHeight
(
true
)
+
25
bottom
:
->
@
bottom
=
$
(
'.footer'
).
outerHeight
(
true
)
app/assets/javascripts/merge_request.js.coffee
View file @
b510223e
...
...
@@ -20,11 +20,12 @@ class @MergeRequest
if
$
(
"a.btn-close"
).
length
$
(
"li.task-list-item input:checkbox"
).
prop
(
"disabled"
,
false
)
$
(
'.issuable-affix'
).
affix
offset
:
top
:
->
@
top
=
$
(
'.merge-request-details'
).
outerHeight
(
true
)
+
70
bottom
:
->
@
bottom
=
$
(
'.footer'
).
outerHeight
(
true
)
$
(
'.merge-request-details'
).
waitForImages
->
$
(
'.issuable-affix'
).
affix
offset
:
top
:
->
@
top
=
$
(
'.merge-request-details'
).
outerHeight
(
true
)
+
91
bottom
:
->
@
bottom
=
$
(
'.footer'
).
outerHeight
(
true
)
# Local jQuery finder
$
:
(
selector
)
->
...
...
@@ -95,6 +96,7 @@ class @MergeRequest
this
.
$
(
'.merge-request-tabs .diffs-tab'
).
addClass
'active'
this
.
loadDiff
()
unless
@
diffs_loaded
this
.
$
(
'.diffs'
).
show
()
$
(
".diff-header"
).
trigger
(
"sticky_kit:recalc"
)
when
'commits'
this
.
$
(
'.merge-request-tabs .commits-tab'
).
addClass
'active'
this
.
$
(
'.commits'
).
show
()
...
...
app/assets/stylesheets/sections/diff.scss
View file @
b510223e
...
...
@@ -8,6 +8,7 @@
border-bottom
:
1px
solid
#CCC
;
padding
:
5px
5px
5px
10px
;
color
:
#555
;
z-index
:
10
;
>
span
{
font-family
:
$monospace_font
;
...
...
app/controllers/import/gitlab_controller.rb
View file @
b510223e
...
...
@@ -17,7 +17,7 @@ class Import::GitlabController < Import::BaseController
@already_added_projects
=
current_user
.
created_projects
.
where
(
import_type:
"gitlab"
)
already_added_projects_names
=
@already_added_projects
.
pluck
(
:import_source
)
@repos
.
to_a
.
reject!
{
|
repo
|
already_added_projects_names
.
include?
repo
[
"path_with_namespace"
]
}
@repos
=
@repos
.
to_a
.
reject
{
|
repo
|
already_added_projects_names
.
include?
repo
[
"path_with_namespace"
]
}
end
def
jobs
...
...
app/controllers/import/gitorious_controller.rb
View file @
b510223e
...
...
@@ -15,7 +15,7 @@ class Import::GitoriousController < Import::BaseController
@already_added_projects
=
current_user
.
created_projects
.
where
(
import_type:
"gitorious"
)
already_added_projects_names
=
@already_added_projects
.
pluck
(
:import_source
)
@repos
.
to_a
.
reject!
{
|
repo
|
already_added_projects_names
.
include?
repo
.
full_name
}
@repos
.
reject!
{
|
repo
|
already_added_projects_names
.
include?
repo
.
full_name
}
end
def
jobs
...
...
app/views/projects/deploy_keys/_deploy_key.html.haml
View file @
b510223e
...
...
@@ -13,7 +13,7 @@
=
link_to
'Remove'
,
namespace_project_deploy_key_path
(
@project
.
namespace
,
@project
,
deploy_key
),
data:
{
confirm:
'You are going to remove deploy key. Are you sure?'
},
method: :delete
,
class:
"btn btn-remove delete-key btn-small pull-right"
=
key_project
=
deploy_key
.
projects
.
include?
(
@project
)
?
@project
:
deploy_key
.
projects
.
first
-
key_project
=
deploy_key
.
projects
.
include?
(
@project
)
?
@project
:
deploy_key
.
projects
.
first
=
link_to
namespace_project_deploy_key_path
(
key_project
.
namespace
,
key_project
,
deploy_key
)
do
%i
.fa.fa-key
%strong
=
deploy_key
.
title
...
...
db/migrate/20150223022001_set_missing_last_activity_at.rb
View file @
b510223e
...
...
@@ -4,6 +4,5 @@ class SetMissingLastActivityAt < ActiveRecord::Migration
end
def
down
raise
ActiveRecord
::
IrreversibleMigration
end
end
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