- content_for :actions do = link_to(t(:edit), edit_admin_api_user_path(@api_user), class: 'btn btn-default') = link_to(t(:delete), admin_api_user_path(@api_user), method: :delete, data: { confirm: t(:are_you_sure) }, class: 'btn btn-danger') = render 'shared/title', name: @api_user.username - if @api_user.errors.any? - @api_user.errors.each do |attr, err| = err %br - if @api_user.errors.any? %hr .row .col-md-12 .panel.panel-default .panel-heading %h3.panel-title= t(:general) .panel-body %dl.dl-horizontal %dt= t(:username) %dd= @api_user.username %dt= t(:password) %dd= @api_user.password %dt= t(:registrar) %dd= link_to(@api_user.registrar, admin_registrar_path(@api_user.registrar)) %dt= t(:role) %dd= @api_user.roles.join(', ') %dt= t(:active) %dd= @api_user.active .row .col-md-12 .panel.panel-default .panel-heading.clearfix .pull-left = t(:certificates) .pull-right = link_to(t(:add), new_admin_api_user_certificate_path(@api_user), class: 'btn btn-default 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) %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