Sha256: 25b4aeb1428bf969376619ebaa63a6a0d894e5f24afd99c88fcc8b43dc0b547a
Contents?: true
Size: 1.82 KB
Versions: 18
Compression:
Stored size: 1.82 KB
Contents
class FrameworkController < ApplicationController layout 'theme' helper_method :menu_model def impersonation_banner_helper { logged_in_as: "Adam Doeler", impersonating: "Tom Cruise", impersonating?: true } end def menu_model [introduction, components] #, look_and_feel, typography, urls, performance_and_metrics] end def introduction { links: [ { name: 'Introduction', url: '#introduction', badge: '31 courses' } ] } end def components { name: 'Components', links: [ { name: 'Page Header', url: '#page_header' }, { name: 'Content Items', url: '#content_items' }, { name: 'Content Item Header', url: '#content_item_header' }, { name: 'Video Player', url: '#video_player' }, { name: 'Outline', url: '#outline' }, { name: 'Profile', url: '#profile' }, { name: 'Menu', url: '#menu' } ] } end def look_and_feel { name: 'Look & Feel', links: [ { name: 'Emotions', url: '#emotions' }, { name: 'Flexibility', url: '#flexibility' }, { name: 'Palette', url: '#colours' } ] } end def typography { name: 'Typography', links: [ { name: 'Fonts', url: '#fonts' }, { name: 'Type Sizes', url: '#type_sizes' }, { name: 'Spacing', url: '#spacing' } ] } end def urls { name: 'URL Structure', links: [ { name: 'Philosophy', url: '#url_philosophy' }, { name: 'Page URLs', url: '#page_urls' }, { name: 'Addressability', url: '#addressability' } ] } end def performance_and_metrics { name: 'Performance & Metrics', links: [ { name: 'Fast', url: '#fast' }, { name: 'Feature Validation', url: '#feature_validation' } ] } end end
Version data entries
18 entries across 18 versions & 1 rubygems