Sha256: b9daa195fbe3262e80d2e4c598f7e766388e88f70033b633d51c28959d0f023f
Contents?: true
Size: 603 Bytes
Versions: 7
Compression:
Stored size: 603 Bytes
Contents
module BookytProjects module Navigation def setup_bookyt_projects(navigation) navigation.item :projects, t('bookyt.main_navigation.projects'), '#', :if => Proc.new { user_signed_in? } do |projects| projects.item :project_index, t_title(:index, Project), projects_path, :highlights_on => /\/(projects|activities)($|\/[0-9]*($|\/.*))/ projects.item :new_project, t_title(:new, Project), new_project_path projects.item :divider, "", :class => 'divider' projects.item :capture_hours, t('activities.new.title'), new_batch_activity_path end end end end
Version data entries
7 entries across 7 versions & 1 rubygems