Sha256: 65b58a55b78ec553c749e3fc2ad400b6d9897cc66f79443649f2bc0ce52f79dc

Contents?: true

Size: 704 Bytes

Versions: 1

Compression:

Stored size: 704 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 :capture_hours, t('activities.new.title'), new_batch_activity_path
        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 :project_states, t_model(ProjectState), project_states_path, :highlights_on => /\/project_states($|\/([0-9]*|new)($|\/.*))/ 
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bookyt_projects-0.11.2 lib/bookyt_projects/navigation.rb