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
|
touch :acceptance_notification_sent_at
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def confirmed?
|
||||||
|
!!confirmed_at
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def send_new_event_notification
|
def send_new_event_notification
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
td
|
td
|
||||||
span.title
|
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
|
= suggestion.title
|
||||||
br
|
br
|
||||||
span.subtitle
|
span.subtitle
|
||||||
|
|
Loading…
Reference in New Issue