Admin area improved
This commit is contained in:
parent
a769204ff4
commit
cc043f32d8
39 changed files with 434 additions and 334 deletions
|
@ -1,7 +1,10 @@
|
|||
%table
|
||||
%h3
|
||||
Projects
|
||||
= link_to 'New Project', new_admin_project_path, :class => "btn small right"
|
||||
%hr
|
||||
%table.zebra-striped
|
||||
%thead
|
||||
%th Name
|
||||
%th Code
|
||||
%th Path
|
||||
%th Team Members
|
||||
%th Last Commit
|
||||
|
@ -11,12 +14,9 @@
|
|||
- @admin_projects.each do |project|
|
||||
%tr
|
||||
%td= link_to project.name, [:admin, project]
|
||||
%td= project.code
|
||||
%td= project.path
|
||||
%td= project.users_projects.count
|
||||
%td= last_commit(project)
|
||||
%td= link_to 'Edit', edit_admin_project_path(project), :id => "edit_#{dom_id(project)}"
|
||||
%td= link_to 'Destroy', [:admin, project], :confirm => 'Are you sure?', :method => :delete
|
||||
|
||||
%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"
|
||||
= paginate @admin_projects
|
||||
= link_to 'New Project', new_admin_project_path, :class => "btn"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue