#648: moved 'Create' button

This commit is contained in:
Vokhmin Alexey V 2012-09-25 00:03:33 +04:00
parent 91f215351c
commit d15094f128
1 changed files with 3 additions and 2 deletions

View File

@ -3,8 +3,9 @@
=form_tag projects_path, :id => 'filter_projects', :method => :get do
.bordered.bpadding20
=tracker_search_field(:search, t('layout.find_project'))
= link_to t('layout.projects.new'), new_project_path, :class => 'button' if can?(:create, Project)
- if can?(:create, Project)
.bordered.bpadding20
= link_to t('layout.projects.new'), new_project_path, :class => 'button'
.bordered.bpadding20
%h3=t('layout.relations.filters')
- options_for_filters(@all_projects, @groups, @owners).each do |options|