rosa-build/app/views/projects/hooks/index.html.haml

21 lines
655 B
Plaintext

-set_meta_tags :title => [title_object(@project), t('layout.projects.hooks')]
= render 'submenu'
= render 'sidebar'
%h1= t('layout.projects.hooks')
%table#datatable.tablesorter{:cellpadding => "0", :cellspacing => "0"}
%thead
%tr
%th.th1= t('attributes.name')
%th
%tbody
- Hook::NAMES.each do |name|
%tr
%td
= link_to project_hooks_path(@project, :name => name) do
= t("layout.hooks.services.#{name}")
= "(#{@hooks.where(:name => name).count})"
%td.right
= link_to t('layout.create'), new_project_hook_path(@project, :hook => {:name => name}), :class => 'button'