Sha256: 8b0c4fa3c1a842a8d9d284063442e80b5282b6265104f2f7d90c851d25287a56

Contents?: true

Size: 421 Bytes

Versions: 6

Compression:

Stored size: 421 Bytes

Contents

module ExamRegistrationHelper
  def exam_registration_view
    if @registration.end_time.past?
      { icon: :times_circle, class: :danger, t: :exam_registration_finished_html }
    else
      { icon: :info_circle, class: :info, t: :exam_registration_explanation_html }
    end
  end

  def current_time_zone_html
    %Q{(<span class="select-date-timezone">#{Organization.current&.time_zone}</span>)}.html_safe
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mumuki-laboratory-9.8.2 app/helpers/exam_registration_helper.rb
mumuki-laboratory-9.8.1 app/helpers/exam_registration_helper.rb
mumuki-laboratory-9.8.0 app/helpers/exam_registration_helper.rb
mumuki-laboratory-9.7.2 app/helpers/exam_registration_helper.rb
mumuki-laboratory-9.7.1 app/helpers/exam_registration_helper.rb
mumuki-laboratory-9.7.0 app/helpers/exam_registration_helper.rb