mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 08:22:05 +02:00
Revert back to CSR / CRT upload
This commit is contained in:
parent
8292951c9c
commit
0aa5399265
12 changed files with 214 additions and 103 deletions
|
@ -38,19 +38,24 @@
|
|||
.pull-left
|
||||
= t(:certificates)
|
||||
.pull-right
|
||||
= link_to(t(:add),
|
||||
new_admin_api_user_certificate_path(@api_user), class: 'btn btn-default btn-xs')
|
||||
= 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')
|
||||
|
||||
.table-responsive
|
||||
%table.table.table-hover.table-bordered.table-condensed
|
||||
%thead
|
||||
%tr
|
||||
%th{class: 'col-xs-4'}= t(:common_name)
|
||||
%th{class: 'col-xs-4'}= t(:md5)
|
||||
%th{class: 'col-xs-4'}= t(:interface)
|
||||
%th{class: 'col-xs-10'}= t(:subject)
|
||||
%th{class: 'col-xs-2'}= t(:status)
|
||||
%tbody
|
||||
- @api_user.certificates.each do |x|
|
||||
%tr
|
||||
%td= link_to(x.common_name, admin_api_user_certificate_path(@api_user, x))
|
||||
%td= x.md5
|
||||
%td= x.interface
|
||||
- if x.csr
|
||||
%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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue