Sha256: 2603c8c56c466ef4396040eb31ff4121da37f245d71d9963829a208a03c9120f

Contents?: true

Size: 760 Bytes

Versions: 2

Compression:

Stored size: 760 Bytes

Contents

SimpleNavigation::Configuration.run do |navigation|  
  navigation.selected_class = 'active'

  navigation.items do |primary|
    primary.dom_class = 'nav'
    primary.item :tasks, 'Tasks', '/tasks' do |tasks|
      tasks.dom_class = 'nav nav-pills'
      tasks.item :pending, "Pending <span class=\"badge\">#{task_count}</span>", '/tasks/pending'
      tasks.item :waiting, 'Waiting', '/tasks/waiting'
      tasks.item :completed, 'Completed', '/tasks/completed'
      tasks.item :deleted, 'Deleted', '/tasks/deleted'
    end
    primary.item :projects, 'Projects', '/projects', { :highlights_on => %r{/projects/?.+?} } do |projects|
      projects.dom_class = 'nav nav-pills'
      projects.item :overview, 'Overview', '/projects/overview'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
taskwarrior-web-1.1.12 lib/taskwarrior-web/config/navigation.rb
taskwarrior-web-1.1.11 lib/taskwarrior-web/config/navigation.rb