Sha256: a331ef24e3482c03a5809cafd5737cda08529ef904dbaeea3a988aa234565231
Contents?: true
Size: 503 Bytes
Versions: 21
Compression:
Stored size: 503 Bytes
Contents
module MessagesHelper def hidden_pending(assignment) assignment.pending_messages? ? '' : 'd-none' end def disabled_submit_class(assignment) assignment.pending_messages? ? 'disabled' : '' end def pending_messages_filter(assignment) 'pending-messages-filter' if assignment.pending_messages? end def sender_class(message) message.blank? || message.from_user?(current_user) ? 'self' : 'other' end def staleness_class(message) 'mu-stale' if message.stale? end end
Version data entries
21 entries across 21 versions & 1 rubygems