From 741f69e4a336ad583a517c9ca2be5b40cd61cb10 Mon Sep 17 00:00:00 2001 From: Wedge Date: Mon, 23 May 2016 00:37:10 +0300 Subject: [PATCH] Added new build to search --- app/controllers/application_controller.rb | 2 +- app/views/search/_project.html.slim | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) 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