Commit 4cf73958 authored by gwendal's avatar gwendal
Browse files

do not show notify_expiration button if not needed (related #177)

parent dae0cb6b
......@@ -52,7 +52,9 @@
</p>
<% if can? :notify_expiration, @service %>
<%= button_to t('services.notify_expiration.link'), [:notify_expiration, @service], class: "btn btn-warning" %>
<% if !@service.expired_at.nil? %>
<%= button_to t('services.notify_expiration.link'), [:notify_expiration, @service], class: "btn btn-warning btn-xs" %>
<% end %>
<% if @service.expiration_notified_on %>
<p class="service_expiration_notified_on">
<b><%= Service.human_attribute_name('expiration_notified_on') %> :</b>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment