2013-04-12 14:26:18 +01:00
|
|
|
-set_meta_tags :title => [title_object(@project), t('layout.projects.hooks')]
|
|
|
|
= render 'submenu'
|
|
|
|
= render 'sidebar'
|
|
|
|
|
2013-04-14 16:46:56 +01:00
|
|
|
%h1= "Listing of #{@name}"
|
2013-04-12 14:26:18 +01:00
|
|
|
|
2013-04-14 16:46:56 +01:00
|
|
|
= link_to 'New', new_project_hook_path(@project, :hook => {:name => @name}), :class => 'button'
|
|
|
|
.booth
|
|
|
|
%br
|
2013-04-12 14:26:18 +01:00
|
|
|
|
2013-04-14 16:46:56 +01:00
|
|
|
- @hooks.all.each do |hook|
|
|
|
|
- hook.data.each do |k, v|
|
|
|
|
.leftlist= k
|
|
|
|
.rightlist= v
|
|
|
|
.both
|
|
|
|
|
|
|
|
.leftlist
|
|
|
|
.rightlist
|
|
|
|
= link_to 'Edit', edit_project_hook_path(@project, hook), :class => 'button'
|
|
|
|
.hr
|