Display confirmed events as green

This commit is contained in:
Petko Bordjukov 2014-10-12 15:38:15 +03:00
parent cb9a04cbe7
commit 6d7eb739fc
2 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,10 @@ class Event < ActiveRecord::Base
touch :acceptance_notification_sent_at
end
def confirmed?
!!confirmed_at
end
private
def send_new_event_notification

View File

@ -14,7 +14,7 @@
td
span.title
= link_to management_event_path(suggestion), title: t(:view), remote: true
= link_to management_event_path(suggestion), title: t(:view), remote: true, class: "#{'text-success' if suggestion.confirmed?}"
= suggestion.title
br
span.subtitle