Sha256: e76a3397a10c52578184e13c4927d02bdd2286c857cf9104289a71325e2dd298
Contents?: true
Size: 613 Bytes
Versions: 6
Compression:
Stored size: 613 Bytes
Contents
module BookytProjects module Navigation def setup_bookyt_projects(navigation) navigation.item :projects, t('bookyt.main_navigation.projects'), projects_path, :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
6 entries across 6 versions & 1 rubygems