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

Version Path
mumuki-laboratory-9.23.0 app/helpers/messages_helper.rb
mumuki-laboratory-9.22.0 app/helpers/messages_helper.rb
mumuki-laboratory-9.21.0 app/helpers/messages_helper.rb
mumuki-laboratory-9.20.1 app/helpers/messages_helper.rb
mumuki-laboratory-9.20.0 app/helpers/messages_helper.rb
mumuki-laboratory-9.19.0 app/helpers/messages_helper.rb
mumuki-laboratory-9.18.1 app/helpers/messages_helper.rb
mumuki-laboratory-9.18.0 app/helpers/messages_helper.rb
mumuki-laboratory-9.17.0 app/helpers/messages_helper.rb
mumuki-laboratory-9.16.0 app/helpers/messages_helper.rb
mumuki-laboratory-9.15.0 app/helpers/messages_helper.rb
mumuki-laboratory-9.14.1 app/helpers/messages_helper.rb
mumuki-laboratory-9.14.0 app/helpers/messages_helper.rb
mumuki-laboratory-9.13.2 app/helpers/messages_helper.rb
mumuki-laboratory-9.13.1 app/helpers/messages_helper.rb
mumuki-laboratory-9.13.0 app/helpers/messages_helper.rb
mumuki-laboratory-9.12.1 app/helpers/messages_helper.rb
mumuki-laboratory-9.12.0 app/helpers/messages_helper.rb
mumuki-laboratory-9.11.0 app/helpers/messages_helper.rb
mumuki-laboratory-9.10.0 app/helpers/messages_helper.rb