Sha256: 60b3c3448b67840160bb9a80c0641e066a75bd569ae8039cabbed7e193fc8279
Contents?: true
Size: 1.56 KB
Versions: 35
Compression:
Stored size: 1.56 KB
Contents
Tabulous.setup do tabs(:galaxies) do elliptical_galaxies_tab do text 'Elliptical Galaxies' link_path '/galaxies/elliptical_galaxies' visible_when { true } enabled_when { true } active_when { in_action('any').of_controller('galaxies/elliptical_galaxies') } end spiral_galaxies_tab do text 'Spiral Galaxies' link_path '/galaxies/spiral_galaxies' visible_when { true } enabled_when { true } active_when { in_action('any').of_controller('galaxies/spiral_galaxies') } end lenticular_galaxies_tab do text 'Lenticular Galaxies' link_path '/galaxies/lenticular_galaxies' visible_when { true } enabled_when { true } active_when { in_action('any').of_controller('galaxies/lenticular_galaxies') } end end tabs(:planets) do exoplanets_tab do text 'Exoplanets' link_path { '/planets/exoplanets' } visible_when { true } enabled_when { true } active_when { in_action('any').of_controller('planets/exoplanets') } end rogue_planets_tab do text 'Rogue Planets' link_path { '/planets/rogue_planets' } visible_when { true } enabled_when { true } active_when { in_action('any').of_controller('planets/rogue_planets') } end end use_css_scaffolding do background_color '#cec' text_color '#464' active_tab_color '#fff' hover_tab_color '#dfd' inactive_tab_color '#aca' inactive_text_color '#8a8' end end
Version data entries
35 entries across 6 versions & 1 rubygems