Sha256: 83f33ce7f41e64631caf95773817227cc531f824618aba59c629641b094e2636

Contents?: true

Size: 1.24 KB

Versions: 22

Compression:

Stored size: 1.24 KB

Contents

<% title _('Webhook Templates') %>

<% title_actions new_link(_('Create Template')) %>

<table class="<%= table_css_classes 'table-fixed' %>">
  <thead>
    <tr>
      <th class="col-md-3"><%= sort :name, as: s_('WebhookTemplate|Name') %></th>
      <th class="col-md-1"><%= sort :snippet, as: s_('WebhookTemplate|Snippet') %></th>
      <th class="col-md-1"><%= sort :locked, as: s_('WebhookTemplate|Locked'), default: 'DESC' %></th>
      <th class="col-md-1"><%= _('Actions') %></th>
    </tr>
  </thead>
  <tbody>
    <% for webhook_template in @templates %>
    <tr>
        <td class="ellipsis"><%= link_to_if_authorized webhook_template,
                                   hash_for_edit_webhook_template_path(id: webhook_template.to_param).
                                     merge(auth_object: webhook_template, authorizer: authorizer, permission: 'edit_webhook_templates') %>
        </td>
        <td align='center'><%= checked_icon webhook_template.snippet %></td>
        <td align='center'><%= locked_icon webhook_template.locked?, _('This template is locked for editing.') %>
        </td>
        <td><%= action_buttons(*permitted_actions(webhook_template)) %></td>
      </tr>
    <% end %>
  </tbody>
</table>
<%= will_paginate_with_info @templates %>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman_webhooks-4.0.0 app/views/webhook_templates/index.html.erb
foreman_webhooks-3.2.3 app/views/webhook_templates/index.html.erb
foreman_webhooks-3.2.2 app/views/webhook_templates/index.html.erb
foreman_webhooks-3.1.1 app/views/webhook_templates/index.html.erb
foreman_webhooks-3.2.1 app/views/webhook_templates/index.html.erb
foreman_webhooks-3.2.0 app/views/webhook_templates/index.html.erb
foreman_webhooks-3.1.0 app/views/webhook_templates/index.html.erb
foreman_webhooks-3.0.5 app/views/webhook_templates/index.html.erb
foreman_webhooks-2.0.3 app/views/webhook_templates/index.html.erb
foreman_webhooks-3.0.4 app/views/webhook_templates/index.html.erb
foreman_webhooks-2.0.2 app/views/webhook_templates/index.html.erb
foreman_webhooks-3.0.3 app/views/webhook_templates/index.html.erb
foreman_webhooks-3.0.2 app/views/webhook_templates/index.html.erb
foreman_webhooks-3.0.1 app/views/webhook_templates/index.html.erb
foreman_webhooks-2.0.1 app/views/webhook_templates/index.html.erb
foreman_webhooks-3.0.0 app/views/webhook_templates/index.html.erb
foreman_webhooks-2.0.0 app/views/webhook_templates/index.html.erb
foreman_webhooks-1.1.0 app/views/webhook_templates/index.html.erb
foreman_webhooks-1.0.0 app/views/webhook_templates/index.html.erb
foreman_webhooks-0.0.3 app/views/webhook_templates/index.html.erb