mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-26 19:12:53 +02:00
13 lines
324 B
Ruby
13 lines
324 B
Ruby
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
|
|
|
module NotificationsHelper
|
|
def many_channels_available?
|
|
Notification.channels.many?
|
|
end
|
|
|
|
def recipient_col_class
|
|
many_channels_available? ? "col-md-7" : "col-md-9"
|
|
end
|
|
end
|