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
86556a34
Commit
86556a34
authored
Feb 22, 2018
by
Oswaldo Ferreira
Committed by
Eric Eastwood
Feb 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move project presenter instance creation to controller
parent
69661e6d
Changes
3
Hide 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 @
86556a34
...
...
@@ -117,6 +117,8 @@ class ProjectsController < Projects::ApplicationController
respond_to
do
|
format
|
format
.
html
do
@notification_setting
=
current_user
.
notification_settings_for
(
@project
)
if
current_user
@project
=
@project
.
present
(
current_user:
current_user
)
render_landing_page
end
...
...
app/views/projects/empty.html.haml
View file @
86556a34
-
@no_container
=
true
-
breadcrumb_title
"Details"
-
@project
=
@project
.
present
(
current_user:
current_user
)
=
render
partial:
'flash_messages'
,
locals:
{
project:
@project
}
...
...
app/views/projects/show.html.haml
View file @
86556a34
-
@no_container
=
true
-
breadcrumb_title
"Details"
-
@content_class
=
"limit-container-width"
unless
fluid_layout
-
@project
=
@project
.
present
(
current_user:
current_user
)
-
show_auto_devops_callout
=
show_auto_devops_callout?
(
@project
)
=
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