Module: PresentationsHelper
- Extended by:
- PresentationsHelper
- Included in:
- PresentationsHelper
- Defined in:
- app/helpers/presentations_helper.rb
Instance Method Summary collapse
- #link_to_presentation(presentation) ⇒ Object
- #link_to_presentation_macro_markup(presentation) ⇒ Object
Instance Method Details
#link_to_presentation(presentation) ⇒ Object
8 9 10 11 |
# File 'app/helpers/presentations_helper.rb', line 8 def link_to_presentation(presentation) return "[Presentation not provided]" unless presentation.instance_of?(Presentation) "<a href='#{prjct_presentation_path(presentation.project, presentation)}' class='presentation-link'>#{presentation.title}</a>" end |
#link_to_presentation_macro_markup(presentation) ⇒ Object
4 5 6 |
# File 'app/helpers/presentations_helper.rb', line 4 def link_to_presentation_macro_markup(presentation) "{{presentation_link(#{presentation.permalink})}}" end |