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

Version Path
bookyt_projects-0.19.23 lib/bookyt_projects/navigation.rb
bookyt_projects-0.19.22 lib/bookyt_projects/navigation.rb
bookyt_projects-0.19.21 lib/bookyt_projects/navigation.rb
bookyt_projects-0.19.20 lib/bookyt_projects/navigation.rb
bookyt_projects-0.19.19 lib/bookyt_projects/navigation.rb
bookyt_projects-0.19.18 lib/bookyt_projects/navigation.rb
bookyt_projects-0.19.17 lib/bookyt_projects/navigation.rb