<% title _("PuppetCA on %s") % @proxy.name %> <% search_bar _("Filter %s") % state_filter %> <% title_actions display_link_if_authorized(_("Autosign Entries"), hash_for_smart_proxy_autosign_index_path(:smart_proxy_id => @proxy)) %> <% @certificates.each do |cert| -%> <% end -%>
<%= _("Certificate Name") %> <%= _("State") %> <%= _("Valid from") %> <%= _("Expires") %> <%= _("Fingerprint") %>
<%= h cert.name %> <%= h cert.state %> <%= time_column cert.valid_from %> <%= time_column cert.expires_at, :tense => :future %> <%= h cert.fingerprint %> <%= action_buttons( if cert.state == "pending" display_link_if_authorized(_("Sign"), hash_for_smart_proxy_puppetca_path(:smart_proxy_id => @proxy.to_param, :id => cert, :state => params[:state]), :method => :put) end, if cert.state != "revoked" display_delete_if_authorized(hash_for_smart_proxy_puppetca_path(:smart_proxy_id => @proxy.to_param, :id => cert, :class => 'delete', :state => params[:state])) end) %>
<%= page_entries_info @certificates, :model => "Puppet Certificates" %> <%= will_paginate @certificates %>