Display confirmed events as green
This commit is contained in:
parent
cb9a04cbe7
commit
6d7eb739fc
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue