<%= t(:certificates) %>
<%= link_to(t(:upload_crt), new_admin_api_user_certificate_path(@api_user, crt: true), class: 'btn btn-primary btn-xs') %> <%= link_to(t(:upload_csr), new_admin_api_user_certificate_path(@api_user), class: 'btn btn-primary btn-xs') %>
<% @api_user.certificates.each do |x| %> <% if x.csr %> <% elsif x.crt %> <% end %> <% end %>
<%= t('.subject') %> <%= t(:status) %>
<%= link_to(x.parsed_csr.try(:subject), admin_api_user_certificate_path(@api_user, x)) %> <%= x.status %>
<%= link_to(x.parsed_crt.try(:subject), admin_api_user_certificate_path(@api_user, x)) %> <%= x.status %>