Class: WithStudentPathNavigation::FinishNavigation
- Inherits:
-
Navigation
- Object
- Navigation
- WithStudentPathNavigation::FinishNavigation
- Defined in:
- app/helpers/concerns/with_student_path_navigation/finish_navigation.rb
Instance Method Summary collapse
Methods inherited from Navigation
#initialize, #link_icon, #merge_confirmation_classes, #method_missing, #right
Constructor Details
This class inherits a constructor from WithStudentPathNavigation::Navigation
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class WithStudentPathNavigation::Navigation
Instance Method Details
#button(navigable) ⇒ Object
3 4 5 6 |
# File 'app/helpers/concerns/with_student_path_navigation/finish_navigation.rb', line 3 def (navigable) return unless navigable.is_a?(Reading) && !navigable.status_for(current_user).like?(:passed) content_tag 'a', t(:finish), merge_confirmation_classes(navigable, class: clazz) end |
#clazz ⇒ Object
8 9 10 |
# File 'app/helpers/concerns/with_student_path_navigation/finish_navigation.rb', line 8 def clazz 'btn btn-complementary w-100' end |