9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/generators/draft/layout/layout_generator.rb', line 9
def generate_layout
if bootswatch?
log :insert, "Adding #{theme_name.capitalize} Bootswatch"
else
log :insert, "Adding Bootstrap"
end
log :insert, "Adding Font Awesome"
log :insert, "Adding navbar"
log :insert, "Adding alerts"
log :insert, "Adding sticky footer; you may need to add
padding-bottom: 70px
to the body of the document."
template "layout.html.erb", "app/views/layouts/#{options["layout_file"]}.html.erb"
template "_navbar.html.erb", "app/views/shared/_navbar.html.erb"
template "_flashes.html.erb", "app/views/shared/_flashes.html.erb"
unless skip_cdn?
template "_cdn_assets.html.erb", "app/views/shared/_cdn_assets.html.erb"
end
end
|