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

Version Path
bookyt_projects-0.19.15 lib/bookyt_projects/navigation.rb
bookyt_projects-0.19.14 lib/bookyt_projects/navigation.rb
bookyt_projects-0.19.13 lib/bookyt_projects/navigation.rb
bookyt_projects-0.19.12 lib/bookyt_projects/navigation.rb
bookyt_projects-0.19.11 lib/bookyt_projects/navigation.rb
bookyt_projects-0.19.10 lib/bookyt_projects/navigation.rb