Commit 86556a34 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira Committed by Eric Eastwood

Move project presenter instance creation to controller

parent 69661e6d
......@@ -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
......
- @no_container = true
- breadcrumb_title "Details"
- @project = @project.present(current_user: current_user)
= render partial: 'flash_messages', locals: { project: @project }
......
- @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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment