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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
a8c523d9
Commit
a8c523d9
authored
Feb 22, 2018
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move project presenter instance creation to controller
parent
dcac35b4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+2
-0
app/views/projects/empty.html.haml
app/views/projects/empty.html.haml
+0
-1
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+0
-1
No files found.
app/controllers/projects_controller.rb
View file @
a8c523d9
...
@@ -114,6 +114,8 @@ class ProjectsController < Projects::ApplicationController
...
@@ -114,6 +114,8 @@ class ProjectsController < Projects::ApplicationController
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
do
format
.
html
do
@notification_setting
=
current_user
.
notification_settings_for
(
@project
)
if
current_user
@notification_setting
=
current_user
.
notification_settings_for
(
@project
)
if
current_user
@project
=
@project
.
present
(
current_user:
current_user
)
render_landing_page
render_landing_page
end
end
...
...
app/views/projects/empty.html.haml
View file @
a8c523d9
-
@no_container
=
true
-
@no_container
=
true
-
breadcrumb_title
"Details"
-
breadcrumb_title
"Details"
-
@project
=
@project
.
present
(
current_user:
current_user
)
=
render
partial:
'flash_messages'
,
locals:
{
project:
@project
}
=
render
partial:
'flash_messages'
,
locals:
{
project:
@project
}
...
...
app/views/projects/show.html.haml
View file @
a8c523d9
-
@no_container
=
true
-
@no_container
=
true
-
breadcrumb_title
"Details"
-
breadcrumb_title
"Details"
-
@content_class
=
"limit-container-width"
unless
fluid_layout
-
@content_class
=
"limit-container-width"
unless
fluid_layout
-
@project
=
@project
.
present
(
current_user:
current_user
)
-
show_auto_devops_callout
=
show_auto_devops_callout?
(
@project
)
-
show_auto_devops_callout
=
show_auto_devops_callout?
(
@project
)
=
content_for
:meta_tags
do
=
content_for
:meta_tags
do
...
...
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