Sha256: dcd71e1a5ae1cd303e17d0cd5364b263baedc65e12d846d9496b1d0b66236ef5

Contents?: true

Size: 1.63 KB

Versions: 40

Compression:

Stored size: 1.63 KB

Contents

/ I'm going to wait to implement this one fully...
/ The problem is going to be supporting submenus like on profile publisher
/
/ Example:
/ = wcms_component('navigation/page_menu', { menu_items: [ \
/   {body: 'Profile', url: edit_academic_program_path(@academic_program, page: 'profile'), default: true },
/   {body: 'Relationships', url: edit_academic_program_path(@academic_program, page: 'relationships') },
/   {body: 'Concentrations', url: edit_academic_program_path(@academic_program, page: 'concentrations') },
/   {body: 'Degree Requirements', url: edit_academic_program_path(@academic_program, page: 'degree_requirements') },
/   {body: 'Requirement Sections', url: edit_academic_program_path(@academic_program, page: 'requirement_sections') },
/   {body: 'Outcomes', url: edit_academic_program_path(@academic_program, page: 'outcomes') },
/   {body: 'Attachments', url: edit_academic_program_path(@academic_program, page: 'attachments') },
/   {body: 'Banner', url: edit_academic_program_path(@academic_program, page: 'banner') },
/   {body: 'Presentation Data', url: edit_academic_program_path(@academic_program, page: 'presentation_data') },
/   {body: 'History', url: edit_academic_program_path(@academic_program, page: 'activity_logs'), visible: policy(@academic_program).can_manage?(:activity_logs) },
/ ]})
/



/---------------
/ ON HOLD...
/---------------
/ ruby:
/   menu_items ||= []

/ = menu_block(class: 'list-group-item') do |menu|
/   - menu_items.each do |item|
/     / It needs to be explicitly set to false to be hidden
/     - unless item.visible == false
/       = menu.add_item(item[:body], default: item[:default]) { item[:url] }


Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
biola_wcms_components-0.25.4 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.25.3 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.25.2 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.25.1 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.25.0 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.24.3 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.24.2 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.24.1 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.24.0 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.23.0 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.22.0 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.21.0 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.20.0 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.19.0 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.18.1 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.18.0 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.17.0 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.16.0 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.15.3 app/views/wcms_components/navigation/_page_nav.html.slim
biola_wcms_components-0.15.2 app/views/wcms_components/navigation/_page_nav.html.slim