Form for uploading CRT directly

This commit is contained in:
Martin Lensment 2015-05-19 12:13:48 +03:00
parent 4cd8df079f
commit 405bb0dfd4
7 changed files with 56 additions and 29 deletions

View file

@ -35,6 +35,8 @@
.pull-left
= t(:certificates)
.pull-right
= 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')
@ -50,3 +52,7 @@
%tr
%td= link_to(x.parsed_csr.try(:subject), admin_api_user_certificate_path(@api_user, x))
%td= x.status
- elsif x.crt
%tr
%td= link_to(x.parsed_crt.try(:subject), admin_api_user_certificate_path(@api_user, x))
%td= x.status