Project

General

Profile

Download (1.25 KB) Statistics
| Branch: | Tag: | Revision:
<% title "PuppetCA on #{@proxy.name}" %>
<% search_bar "Filter #{state_filter}" %>
<% title_actions display_link_if_authorized("Autosign Entries", hash_for_smart_proxy_autosign_index_path(:smart_proxy_id => @proxy)) %>

<table class='list'>
<tr>
<th>Certificate Name</th>
<th>State</th>
<th>Valid from</th>
<th>Expires</th>
<th>Fingerprint</th>
<th></th>
</tr>
<% @certificates.each do |cert| -%>
<tr class="<%= cycle("even", "odd") -%>">
<td><%= h cert.name %> </td>
<td><%= h cert.state %></td>
<td><%= time_column cert.valid_from %></td>
<td><%= time_column cert.expires_at, :tense => :future %></td>
<td><%= h cert.fingerprint %></td>
<td>
<%= display_link_if_authorized("Sign", hash_for_smart_proxy_puppetca_path(:smart_proxy_id => @proxy.to_param, :id => cert, :state => params[:state]), :method => :put) if cert.state == "pending" %>
<%= display_delete_if_authorized(hash_for_smart_proxy_puppetca_path(:smart_proxy_id => @proxy.to_param, :id => cert, :state => params[:state])) if cert.state != "revoked" %>
</td>
</tr>
<% end -%>
</table>

<%= page_entries_info @certificates, :model => "Puppet Certificates" %>
<%= will_paginate @certificates %>
    (1-1/1)