Sha256: 83c389829f7a1ac2aa50ced49d55269da980d768e656cfc8e8f4de6172180842

Contents?: true

Size: 712 Bytes

Versions: 8

Compression:

Stored size: 712 Bytes

Contents

module BookytProjects
  module Navigation
    def setup_bookyt_projects(navigation)
      navigation.item :projects, t_model(Project), 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 :project_states, t_model(ProjectState), project_states_path, :highlights_on => /\/project_states($|\/([0-9]*|new)($|\/.*))/ 
      end
      navigation.item :capture_hours, t_title(:new, Activity), new_activity_path, :if => Proc.new { user_signed_in? }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bookyt_projects-0.11.0 lib/bookyt_projects/navigation.rb
bookyt_projects-0.10.0 lib/bookyt_projects/navigation.rb
bookyt_projects-0.9.0 lib/bookyt_projects/navigation.rb
bookyt_projects-0.8.0 lib/bookyt_projects/navigation.rb
bookyt_projects-0.7.0 lib/bookyt_projects/navigation.rb
bookyt_projects-0.6.6 lib/bookyt_projects/navigation.rb
bookyt_projects-0.6.5 lib/bookyt_projects/navigation.rb
bookyt_projects-0.6.4 lib/bookyt_projects/navigation.rb