Do not show crt download link when there is no crt

This commit is contained in:
Martin Lensment 2015-02-12 19:26:59 +02:00
parent 9201611f56
commit da122e20fb

View file

@ -37,7 +37,13 @@
.panel-body .panel-body
%dl.dl-horizontal %dl.dl-horizontal
%dt= t('csr') %dt= t('csr')
%dd= link_to(t('download'), download_csr_admin_api_user_path) - if @api_user.csr
%dd= link_to(t('download'), download_csr_admin_api_user_path)
- else
%dd -
%dt= t('crt') %dt= t('crt')
%dd= link_to(t('download'), download_crt_admin_api_user_path) - if @api_user.csr
%dd= link_to(t('download'), download_crt_admin_api_user_path)
- else
%dd -