11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# File 'app/components/oversee/layout/application.rb', line 11
def view_template
doctype
html do
head do
csrf_meta_tags
csp_meta_tag
title { "Oversee | #{Oversee.application_name}" }
meta(name: "viewport", content: "width=device-width, initial-scale=1.0")
meta(name: "ROBOTS", content: "NOODP")
link(rel: "stylesheet", type: "text/css", href: "https://unpkg.com/[email protected]/dist/trix.css")
render Oversee::Dashboard::Javascript.new
render Oversee::Dashboard::Tailwind.new
end
body(class: "min-h-screen bg-gray-100 p-4") do
render Oversee::Flash.new
div(class: "flex gap-4 w-full") do
div(class: "w-72 shrink-0") { render Oversee::Dashboard::Sidebar.new }
div(class: "w-full overflow-scroll") do
div(class: "bg-white rounded-lg overflow-clip p-4") do
yield
end
end
end
end
end
end
|