1. Improved admin -> new project form

2. Fixed bug: post-receive file was not added when create project via admin
This commit is contained in:
Dmitriy Zaporozhets 2012-04-17 20:27:18 +03:00
parent f1795a4911
commit 3250a024ef
6 changed files with 20 additions and 8 deletions

View file

@ -7,6 +7,7 @@
%th Name
%th Path
%th Team Members
%th Post Receive
%th Last Commit
%th
%th
@ -16,6 +17,7 @@
%td= link_to project.name, [:admin, project]
%td= project.path
%td= project.users_projects.count
%td= check_box_tag :post_receive_file, 1, project.has_post_receive_file?, :disabled => true
%td= last_commit(project)
%td= link_to 'Edit', edit_admin_project_path(project), :id => "edit_#{dom_id(project)}", :class => "btn small"
%td= link_to 'Destroy', [:admin, project], :confirm => 'Are you sure?', :method => :delete, :class => "btn small danger"