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

22 lines
704 B
Plaintext
Raw Normal View History

-set_meta_tags :title => [title_object(@project), t('layout.projects.hooks')]
= render 'submenu'
= render 'sidebar'
2013-04-15 10:25:40 +01:00
%h1= t("layout.hooks.services.#{@name}")
2013-04-15 10:25:40 +01:00
= link_to t('layout.create'), new_project_hook_path(@project, :hook => {:name => @name}), :class => 'button'
.booth
%br
- @hooks.all.each do |hook|
2013-04-15 10:25:40 +01:00
- hook.data.each do |field, value|
.leftlist= t("activerecord.attributes.hook.data.#{field}")
.rightlist= value
.both
.leftlist
.rightlist
2013-04-15 10:25:40 +01:00
= link_to t('layout.edit'), edit_project_hook_path(@project, hook), :class => 'button'
= link_to t('layout.delete'), project_hook_path(@project, hook), :method => :delete, :confirm => t('layout.confirm'), :class => 'button'
.hr