Sha256: 06eba3dc7c1f334f0b243c2eb68a23006b12608dc4819fa2ee8e1bd129226c6d

Contents?: true

Size: 681 Bytes

Versions: 6

Compression:

Stored size: 681 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 :activities, t_title(:index, Activity), activities_path
        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

Version Path
bookyt_projects-1.1.1 lib/bookyt_projects/navigation.rb
bookyt_projects-1.1.0 lib/bookyt_projects/navigation.rb
bookyt_projects-1.0.1 lib/bookyt_projects/navigation.rb
bookyt_projects-1.0.0 lib/bookyt_projects/navigation.rb
bookyt_projects-0.21.0 lib/bookyt_projects/navigation.rb
bookyt_projects-0.20.0 lib/bookyt_projects/navigation.rb