2014-01-21 04:51:49 +00:00
|
|
|
-set_meta_tags title: [title_object(@project), t('layout.projects.hooks')]
|
2013-04-12 14:26:18 +01:00
|
|
|
= render 'submenu'
|
|
|
|
= render 'sidebar'
|
|
|
|
|
2013-04-15 10:25:40 +01:00
|
|
|
%h1= t('layout.projects.hooks')
|
2013-04-12 14:26:18 +01:00
|
|
|
|
2014-01-21 04:51:49 +00:00
|
|
|
%table#datatable.tablesorter{cellpadding: "0", cellspacing: "0"}
|
2013-04-14 16:46:56 +01:00
|
|
|
%thead
|
2013-04-12 14:26:18 +01:00
|
|
|
%tr
|
2013-04-15 10:25:40 +01:00
|
|
|
%th.th1= t('attributes.name')
|
2013-04-14 16:46:56 +01:00
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
- Hook::NAMES.each do |name|
|
|
|
|
%tr
|
|
|
|
%td
|
2014-01-21 04:51:49 +00:00
|
|
|
= link_to project_hooks_path(@project, name: name) do
|
2013-04-15 10:25:40 +01:00
|
|
|
= t("layout.hooks.services.#{name}")
|
2014-01-21 04:51:49 +00:00
|
|
|
= "(#{@hooks.where(name: name).count})"
|
2013-04-14 16:46:56 +01:00
|
|
|
%td.right
|
2014-01-21 04:51:49 +00:00
|
|
|
= link_to t('layout.create'), new_project_hook_path(@project, hook: {name: name}), class: 'button'
|