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
d143680c
Commit
d143680c
authored
Jun 13, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #923 from NARKOZ/refactoring-2
Minor cleanup
parents
a243253b
51c30d90
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
20 deletions
+4
-20
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+0
-13
config/application.rb
config/application.rb
+0
-3
spec/requests/last_push_widget_spec.rb
spec/requests/last_push_widget_spec.rb
+4
-4
No files found.
app/controllers/projects_controller.rb
View file @
d143680c
...
@@ -10,19 +10,6 @@ class ProjectsController < ApplicationController
...
@@ -10,19 +10,6 @@ class ProjectsController < ApplicationController
before_filter
:authorize_admin_project!
,
:only
=>
[
:edit
,
:update
,
:destroy
]
before_filter
:authorize_admin_project!
,
:only
=>
[
:edit
,
:update
,
:destroy
]
before_filter
:require_non_empty_project
,
:only
=>
[
:blob
,
:tree
,
:graph
]
before_filter
:require_non_empty_project
,
:only
=>
[
:blob
,
:tree
,
:graph
]
def
index
@projects
=
current_user
.
projects
.
includes
(
:events
).
order
(
"events.created_at DESC"
)
@projects
=
@projects
.
page
(
params
[
:page
]).
per
(
40
)
@events
=
Event
.
where
(
:project_id
=>
current_user
.
projects
.
map
(
&
:id
)).
recent
.
limit
(
20
)
@last_push
=
current_user
.
recent_push
respond_to
do
|
format
|
format
.
html
format
.
atom
{
render
:layout
=>
false
}
end
end
def
new
def
new
@project
=
Project
.
new
@project
=
Project
.
new
end
end
...
...
config/application.rb
View file @
d143680c
...
@@ -44,8 +44,5 @@ module Gitlab
...
@@ -44,8 +44,5 @@ module Gitlab
# Version of your assets, change this if you want to expire all your assets
# Version of your assets, change this if you want to expire all your assets
config
.
assets
.
version
=
'1.0'
config
.
assets
.
version
=
'1.0'
# Extend assets path
config
.
assets
.
paths
<<
Rails
.
root
.
join
(
'vendor'
,
'assets'
,
'images'
,
'jquery-ui'
)
end
end
end
end
spec/requests/last_push_widget_spec.rb
View file @
d143680c
...
@@ -21,7 +21,7 @@ describe "Last Push widget" do
...
@@ -21,7 +21,7 @@ describe "Last Push widget" do
it
{
current_path
.
should
==
new_project_merge_request_path
(
@project
)
}
it
{
current_path
.
should
==
new_project_merge_request_path
(
@project
)
}
it
{
find
(
"#merge_request_source_branch"
).
value
.
should
==
"new_design"
}
it
{
find
(
"#merge_request_source_branch"
).
value
.
should
==
"new_design"
}
it
{
find
(
"#merge_request_target_branch"
).
value
.
should
==
"master"
}
it
{
find
(
"#merge_request_target_branch"
).
value
.
should
==
"master"
}
it
{
find
(
"#merge_request_title"
).
value
.
should
==
"
\n
New Design"
}
it
{
find
(
"#merge_request_title"
).
value
.
should
==
"New Design"
}
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