diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 56cce0c5a..2fd30186d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -7,7 +7,7 @@ class ApplicationController < ActionController::Base AbstractController::ActionNotFound ] - protect_from_forgery + protect_from_forgery with: :exception layout :layout_by_resource diff --git a/app/views/search/_project.html.slim b/app/views/search/_project.html.slim index 7b3dee7eb..c7a2afff7 100644 --- a/app/views/search/_project.html.slim +++ b/app/views/search/_project.html.slim @@ -1,3 +1,8 @@ -h4 - a href=project_path(project) - = project.name_with_owner +.row + .pull-left + a href=project_build_lists_path(project) + = project.name_with_owner + - if BuildListPolicy.new(current_user, project.build_lists.build).new? + .pull-right + a href=new_project_build_list_path(project) + = t 'dashboard.projects.new_build' \ No newline at end of file