Sha256: ade4eb0eecc8314a17087fa0b5b05bbcbeea8d5171e6c9c16f9b84f07e965b55

Contents?: true

Size: 1.79 KB

Versions: 4

Compression:

Stored size: 1.79 KB

Contents

<% title _('Vault Connections') %>
<% title_actions(new_link(_("Create Vault Connection"))) %>

<table class="<%= table_css_classes 'table-fixed' %>">
  <thead>
    <tr>
      <th class="col-md-2"><%= sort :name, as: s_('Vault Connections|Name') %></th>
      <th class="col-md-2"><%= _('URL') %></th>
      <th class="col-md-2"><%= _('Role ID') %></th>
      <th class="col-md-1"><%= _('Token Valid') %></th>
      <th class="col-md-1"><%= _('Token Expire time') %></th>
      <th class="col-md-1"><%= _('Actions') %></th>
    </tr>
  </thead>
  <tbody>
    <% @vault_connections.each do |vault_connection| %>
      <tr>
        <td class="ellipsis">
          <%= link_to_if_authorized vault_connection.name, hash_for_edit_vault_connection_path(id: vault_connection) %>
        </td>
        <td class="ellipsis">
          <code class="transparent"><%= vault_connection.url %></code>
        </td>
        <td class="ellipsis">
          <% if vault_connection.with_approle? %>
            <code class="transparent"><%= vault_connection.role_id %></code>
          <% end %>
        </td>
        <td align='center'>
          <% vault_connection.with_token? && if vault_connection.token_valid? %>
            <%= ('<span class="glyphicon glyphicon-ok"/>').html_safe %>
          <% else %>
            <%= ('<span class="glyphicon glyphicon-remove" title="%s"/>' % vault_connection.vault_error).html_safe %>
          <% end %>
        </td>
        <td>
          <% if vault_connection.with_token? %>
            <%= date_time_absolute(vault_connection.expire_time) %>
          <% end %>
        </td>
        <td><%= action_buttons display_delete_if_authorized hash_for_vault_connection_path(id: vault_connection), data: { confirm: _("Delete %s?") % vault_connection.name } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_vault-1.2.0 app/views/vault_connections/index.html.erb
foreman_vault-1.1.0 app/views/vault_connections/index.html.erb
foreman_vault-1.0.0 app/views/vault_connections/index.html.erb
foreman_vault-0.4.0 app/views/vault_connections/index.html.erb