1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/views/private_keys/_alert.html.erb

27 lines
607 B
Text
Raw Normal View History

2019-09-13 15:15:58 -04:00
<% if policy(PrivateKey.new(asymmetric_key)).show? %>
<div class="alert alert-warning" role="alert">
<h4 class="alert-heading">
<%= translate '.header' %>
</h4>
<hr/>
<p>
<%= translate(
'.text',
delay: distance_of_time_in_words(AsymmetricKey::PRIVATE_KEY_CLEAR_DELAY),
) %>
</p>
<%= link_to(
translate('.link'),
private_key_path(
asymmetric_key,
format: :key,
private_key_pem_secret: params[:private_key_pem_secret],
),
class: 'btn btn-warning',
) %>
</div>
<% end %>