Basic feature implemented, very basic poc

This commit is contained in:
David Schärer 2024-07-16 20:22:59 +02:00
parent 216089a3e7
commit 48c0067076
118 changed files with 2113 additions and 20 deletions

View file

@ -6,9 +6,12 @@ class ApplicationController < ActionController::Base
private
def initialize_navbar
@nav_path = controller_name
@navbar_items = [
{ label: 'Dashboard', path: :root },
{ label: 'Home', path: :home }
{ label: 'Dashboard', icon: :speedometer2, path: :root },
{ label: Report.model_name.human(count: 2), icon: :'journal-text', path: :reports },
{ label: Checklist.model_name.human(count: 2), icon: :'list-check', path: :checklists },
{ label: Check.model_name.human(count: 2), icon: :check, path: :checks }
]
@search_url = nil # root_url
end