Sha256: a82ccad231fe6905daccd3927b480093954eacb8c65f6dd5e35c32c9c86d6e70
Contents?: true
Size: 895 Bytes
Versions: 38
Compression:
Stored size: 895 Bytes
Contents
require 'explicit_delegator' class AssessmentFormPresenter < ExplicitDelegator enforce_definitions :description, # Short description of assessment :course_path, # url to go to when assessment cancelled :copyright, # copyright notice for assessment :submit_path, # path for assessment form to submit to :questions # set of questions in the assessment def title I18n.t('woople_theme.assessment.name') end def css_classes nil end def questions ThemePresentation.wrap_collection(__getobj__.questions, WoopleTheme::QuestionPresenter) end def render_result_status nil end def render_copyright yield if copyright.present? end def footer_partial 'woople-theme/assessment_form_submission' end private def assessment_result __getobj__ end end
Version data entries
38 entries across 38 versions & 1 rubygems