app/views/repository_post_receive_urls/index.html.slim
div
- if User.current.git_allowed_to? :create_repository_post_receive_urls, @repository
.contextual
= link_to l(:label_post_receive_url_add),
new_repository_post_receive_url_path(@repository),
remote: true, class: 'icon icon-add'
h3 = l :label_post_receive_urls
- if @repository_post_receive_urls.any?
table.list
thead
tr
th = l :field_url
th = l :label_mode
th = l :field_active
th = l :label_use_triggers
th = l :label_triggers
th
tbody
- @repository_post_receive_urls.each do |post_receive_url|
tr
td
= post_receive_url.url
td
= post_receive_mode post_receive_url
td.tick
= checked_image_with_exclamation checked: post_receive_url.active?
td.tick
= checked_image_with_exclamation checked: post_receive_url.use_triggers?
td
- post_receive_url.triggers.each do |trigger|
span.label.label-info
= trigger
td.buttons
- if User.current.git_allowed_to? :edit_repository_post_receive_urls, @repository
= link_to l(:button_edit),
edit_repository_post_receive_url_path(@repository, post_receive_url),
remote: true,
class: 'icon icon-edit'
= link_to l(:button_delete),
repository_post_receive_url_path(@repository, post_receive_url),
remote: true,
method: :delete,
data: { confirm: l(:text_are_you_sure) },
class: 'icon icon-del'
- else
p.nodata = l :label_no_data