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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
e3d7ce2c
Commit
e3d7ce2c
authored
Jan 05, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests are fixed now
parent
0a94640e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
23 deletions
+19
-23
app/assets/stylesheets/sections/events.scss
app/assets/stylesheets/sections/events.scss
+6
-0
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+1
-1
app/views/admin/projects/_form.html.haml
app/views/admin/projects/_form.html.haml
+9
-9
app/views/events/event/_note.html.haml
app/views/events/event/_note.html.haml
+2
-3
spec/models/merge_request_spec.rb
spec/models/merge_request_spec.rb
+1
-1
spec/models/protected_branch_spec.rb
spec/models/protected_branch_spec.rb
+0
-9
No files found.
app/assets/stylesheets/sections/events.scss
View file @
e3d7ce2c
...
@@ -47,6 +47,12 @@
...
@@ -47,6 +47,12 @@
.event-info
{
.event-info
{
color
:
#666
;
color
:
#666
;
}
}
.event-note
{
padding-top
:
5px
;
padding-left
:
5px
;
display
:
inline-block
;
color
:
#777
;
}
}
}
.avatar
{
.avatar
{
position
:
relative
;
position
:
relative
;
...
...
app/controllers/projects_controller.rb
View file @
e3d7ce2c
...
@@ -101,7 +101,7 @@ class ProjectsController < ProjectResourceController
...
@@ -101,7 +101,7 @@ class ProjectsController < ProjectResourceController
return
access_denied!
unless
can?
(
current_user
,
:remove_project
,
project
)
return
access_denied!
unless
can?
(
current_user
,
:remove_project
,
project
)
# Delete team first in order to prevent multiple gitolite calls
# Delete team first in order to prevent multiple gitolite calls
project
.
t
runcate_team
project
.
t
eam
.
truncate
project
.
destroy
project
.
destroy
...
...
app/views/admin/projects/_form.html.haml
View file @
e3d7ce2c
...
@@ -11,18 +11,18 @@
...
@@ -11,18 +11,18 @@
.input
.input
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"xxlarge"
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"xxlarge"
-
if
project
.
repo_exists?
%fieldset
.adv_settings
%fieldset
.adv_settings
%legend
Advanced settings:
%legend
Advanced settings:
.clearfix
.clearfix
=
f
.
label
:path
do
=
f
.
label
:path
do
Path
Path
.input
.input
=
text_field_tag
:ppath
,
@project
.
path_to_repo
,
class:
"xlarge"
,
disabled:
true
=
text_field_tag
:ppath
,
@project
.
repository
.
path_to_repo
,
class:
"xlarge"
,
disabled:
true
-
if
project
.
repo_exists?
.clearfix
.clearfix
=
f
.
label
:default_branch
,
"Default Branch"
=
f
.
label
:default_branch
,
"Default Branch"
.input
=
f
.
select
(
:default_branch
,
repository
.
heads
.
map
(
&
:name
),
{},
style:
"width:210px;"
)
.input
=
f
.
select
(
:default_branch
,
@project
.
repository
.
heads
.
map
(
&
:name
),
{},
style:
"width:210px;"
)
%fieldset
.adv_settings
%fieldset
.adv_settings
%legend
Features:
%legend
Features:
...
...
app/views/events/event/_note.html.haml
View file @
e3d7ce2c
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
=
event
.
project_name
=
event
.
project_name
.event-body
.event-body
%span
.hint
%span
.event-note
%i
.icon-comment-alt
%i
.icon-comment
=
truncate
event
.
target
.
note
,
length:
70
=
truncate
event
.
target
.
note
,
length:
70
spec/models/merge_request_spec.rb
View file @
e3d7ce2c
...
@@ -40,7 +40,7 @@ describe MergeRequest do
...
@@ -40,7 +40,7 @@ describe MergeRequest do
let!
(
:merge_request
)
{
create
(
:merge_request
)
}
let!
(
:merge_request
)
{
create
(
:merge_request
)
}
before
do
before
do
merge_request
.
stub
(
:commits
)
{
[
merge_request
.
project
.
commit
]
}
merge_request
.
stub
(
:commits
)
{
[
merge_request
.
project
.
repository
.
commit
]
}
create
(
:note
,
commit_id:
merge_request
.
commits
.
first
.
id
,
noteable_type:
'Commit'
)
create
(
:note
,
commit_id:
merge_request
.
commits
.
first
.
id
,
noteable_type:
'Commit'
)
create
(
:note
,
noteable:
merge_request
)
create
(
:note
,
noteable:
merge_request
)
end
end
...
...
spec/models/protected_branch_spec.rb
View file @
e3d7ce2c
...
@@ -39,13 +39,4 @@ describe ProtectedBranch do
...
@@ -39,13 +39,4 @@ describe ProtectedBranch do
branch
.
destroy
branch
.
destroy
end
end
end
end
describe
'#commit'
do
let
(
:branch
)
{
create
(
:protected_branch
)
}
it
'commits itself to its project'
do
branch
.
project
.
repository
.
should_receive
(
:commit
).
with
(
branch
.
name
)
branch
.
commit
end
end
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