Added new build to search

This commit is contained in:
Wedge 2016-05-23 00:37:10 +03:00
parent aff07e8a6c
commit 741f69e4a3
2 changed files with 9 additions and 4 deletions

View File

@ -7,7 +7,7 @@ class ApplicationController < ActionController::Base
AbstractController::ActionNotFound AbstractController::ActionNotFound
] ]
protect_from_forgery protect_from_forgery with: :exception
layout :layout_by_resource layout :layout_by_resource

View File

@ -1,3 +1,8 @@
h4 .row
a href=project_path(project) .pull-left
= project.name_with_owner 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'