Fix project.code-related functionality

This commit is contained in:
Dmitriy Zaporozhets 2012-11-23 21:31:09 +03:00
parent c50ec72b52
commit 470aa7675e
8 changed files with 9 additions and 16 deletions

View file

@ -14,7 +14,7 @@
%table
%thead
%th Name
%th Code
%th Path
%th Projects
%th Edit
%th.cred Danger Zone!
@ -22,7 +22,7 @@
- @groups.each do |group|
%tr
%td= link_to group.name, [:admin, group]
%td= group.code
%td= group.path
%td= group.projects.count
%td= link_to 'Edit', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn small"
%td.bgred= link_to 'Destroy', [:admin, group], confirm: "REMOVE #{group.name}? Are you sure?", method: :delete, class: "btn small danger"

View file

@ -20,9 +20,9 @@
%tr
%td
%b
Code:
Path:
%td
= @group.code
= @group.path
%tr
%td
%b

View file

@ -26,12 +26,6 @@
Name:
%td
= @project.name
%tr
%td
%b
Code:
%td
= @project.code
%tr
%td
%b