BootstrapMan 0.1.4 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/lib/BootstrapMan/version.rb +1 -1
- data/lib/generators/bootstrap/install/.!36765!.DS_Store +0 -0
- data/lib/generators/bootstrap/install/install_generator.rb +9 -1
- data/lib/generators/bootstrap/install/templates/_devise.html.erb +23 -0
- data/lib/generators/bootstrap/install/templates/_footer.html.erb +1 -1
- data/lib/{templates/erb/scaffold → generators/bootstrap/install/templates}/_form.html.erb +0 -0
- data/lib/generators/bootstrap/install/templates/_head.html.erb +9 -0
- data/lib/generators/bootstrap/install/templates/_head6.html.erb +9 -0
- data/lib/generators/bootstrap/install/templates/_navbar.html.erb +2 -1
- data/lib/generators/bootstrap/install/templates/_notices.html.erb +8 -0
- data/lib/generators/bootstrap/install/templates/application.scss +51 -1
- data/lib/generators/bootstrap/install/templates/application_helper.rb +10 -0
- data/lib/{templates/erb/scaffold → generators/bootstrap/install/templates}/edit.html.erb +0 -0
- data/lib/{templates/erb/scaffold → generators/bootstrap/install/templates}/index.html.erb +0 -0
- data/lib/generators/bootstrap/install/templates/layout.html.erb +12 -18
- data/lib/{templates/erb/scaffold → generators/bootstrap/install/templates}/new.html.erb +0 -0
- data/lib/{templates/erb/scaffold → generators/bootstrap/install/templates}/show.html.erb +0 -0
- data/precompilestat +1 -0
- metadata +13 -12
- data/lib/generators/bootstrap/install/templates/_footer.html.haml +0 -8
- data/lib/generators/bootstrap/install/templates/_footer.html.slim +0 -4
- data/lib/generators/bootstrap/install/templates/_navbar.html.haml +0 -29
- data/lib/generators/bootstrap/install/templates/_navbar.html.slim +0 -39
- data/lib/generators/bootstrap/install/templates/layout.html.haml +0 -19
- data/lib/generators/bootstrap/install/templates/layout.html.slim +0 -50
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ab23e64d9f6e6247a3878235bac254a91f1ece50440565e8be737d2d166b0ad
|
4
|
+
data.tar.gz: '094cc2be063cd8320bfa5162aaee87345958b3af242d711bddc964f2045b2ab1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: befb9c0b1d524686f20a6e97728ad54361fc04b78dbb804747420406f008c078e73994624377e273430093c7590c19459c1963a6b36d31c8215ee8409bffcf5c
|
7
|
+
data.tar.gz: 617e6184d4cac7b90b6a06c9d849dbb257c845db5dcb14a3fc7d7829192e1a322b2497bc110c7e152f678d6f63ea0973f992eb57284bc47c54eb0e4488d0aedd
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ You don't need to customize the stylesheets manually, the only gem you need is t
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem 'BootstrapMan', '~> 0.1.
|
12
|
+
gem 'BootstrapMan', '~> 0.1.7'
|
13
13
|
```
|
14
14
|
|
15
15
|
And then execute:
|
@@ -59,6 +59,11 @@ Gems Added:
|
|
59
59
|
gem 'font-awesome-rails'
|
60
60
|
gem 'bootstrap_form'
|
61
61
|
|
62
|
+
## TODO
|
63
|
+
|
64
|
+
- Add template versions for HAML and SLIM
|
65
|
+
- Add webpacker setup when rails 6 in use
|
66
|
+
|
62
67
|
## Development
|
63
68
|
|
64
69
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/BootstrapMan/version.rb
CHANGED
File without changes
|
@@ -40,11 +40,19 @@ module Bootstrap
|
|
40
40
|
@app_name = app.class.to_s.split("::").first
|
41
41
|
ext = app.config.generators.options[:rails][:template_engine] || :erb
|
42
42
|
template "layout.html.#{ext}", "app/views/layouts/application.html.#{ext}"
|
43
|
+
template "_head.html.#{ext}", "app/views/shared/_head.html.#{ext}"
|
43
44
|
template "_navbar.html.#{ext}", "app/views/shared/_navbar.html.#{ext}"
|
44
45
|
template "_footer.html.#{ext}", "app/views/shared/_footer.html.#{ext}"
|
46
|
+
template "_notices.html.#{ext}", "app/views/shared/_notices.html.#{ext}"
|
47
|
+
template "_devise.html.#{ext}", "app/views/shared/_devise.html.#{ext}"
|
48
|
+
copy_file "application_helper.rb", "app/helpers/application_helper.rb"
|
45
49
|
|
46
50
|
# Adding Templates Folder for future Generators
|
47
|
-
|
51
|
+
copy_file "_form.html.erb", "lib/templates/erb/scaffold/_form.html.erb"
|
52
|
+
copy_file "edit.html.erb", "lib/templates/erb/scaffold/edit.html.erb"
|
53
|
+
copy_file "index.html.erb", "lib/templates/erb/scaffold/index.html.erb"
|
54
|
+
copy_file "new.html.erb", "lib/templates/erb/scaffold/new.html.erb"
|
55
|
+
copy_file "show.html.erb", "lib/templates/erb/scaffold/show.html.erb"
|
48
56
|
|
49
57
|
append_to_file "Gemfile", "# Adding gems required by BootstrapMan\ngem 'jquery-rails'\ngem 'bootstrap'\ngem 'font-awesome-rails'\ngem 'bootstrap_form'\n"
|
50
58
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<%% if user_signed_in? %>
|
2
|
+
<li class="nav-item">
|
3
|
+
<%%= link_to notifications_path, class: "nav-link" do %>
|
4
|
+
<span><i class="fa fa-flag-o" aria-hidden="true"></i></span>
|
5
|
+
<%% end %>
|
6
|
+
</li>
|
7
|
+
<li class="nav-item dropdown">
|
8
|
+
<%%= link_to "#", id: "navbar-dropdown", class: "nav-link dropdown-toggle", data: { target: "nav-account-dropdown", toggle: "dropdown" }, aria: { haspopup: true, expanded: false } do %>
|
9
|
+
<%%= image_tag gravatar_image_url(current_user.email, size: 40), height: 20, width: 20, class: "rounded" %>
|
10
|
+
<%% end %>
|
11
|
+
<div id="nav-account-dropdown" class="dropdown-menu dropdown-menu-right" aria-labelledby="navbar-dropdown">
|
12
|
+
<%% if current_user.admin? %>
|
13
|
+
<%%= link_to "Admin Area", admin_root_path, class: "dropdown-item" %>
|
14
|
+
<%% end %>
|
15
|
+
<%%= link_to "Settings", edit_user_registration_path, class: "dropdown-item" %>
|
16
|
+
<div class="dropdown-divider"></div>
|
17
|
+
<%%= link_to "Logout", destroy_user_session_path, method: :delete, class: "dropdown-item" %>
|
18
|
+
</div>
|
19
|
+
</li>
|
20
|
+
<%% else %>
|
21
|
+
<li class="nav-item"><%%= link_to "Sign Up", new_user_registration_path, class: "nav-link" %></li>
|
22
|
+
<li class="nav-item"><%%= link_to "Login", new_user_session_path, class: "nav-link" %></li>
|
23
|
+
<%% end %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<footer class="footer
|
1
|
+
<footer class="footer text-muted bg-light">
|
2
2
|
<div class="container">
|
3
3
|
<p class="float-right"><a href="#">Back to top</a></p>
|
4
4
|
<p>© Company <%%= Date.today.year %> · <a href="#">Privacy</a> · <a href="#">Terms</a></p>
|
File without changes
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<title><%%= Rails.application.class.parent_name %></title>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
4
|
+
|
5
|
+
<%%= csrf_meta_tags %>
|
6
|
+
<%%= csp_meta_tag %>
|
7
|
+
|
8
|
+
<%%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
9
|
+
<%%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<title><%%= Rails.application.class.parent_name %></title>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
4
|
+
|
5
|
+
<%%= csrf_meta_tags %>
|
6
|
+
<%%= csp_meta_tag %>
|
7
|
+
|
8
|
+
<%%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
9
|
+
<%%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<header>
|
2
|
-
<nav class="navbar navbar-expand-md navbar-
|
2
|
+
<nav class="navbar navbar-expand-md navbar-light bg-light">
|
3
3
|
<%%= link_to "<%= app_name %>", "/", class: "nav-brand" %>
|
4
4
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
|
5
5
|
<span class="navbar-toggler-icon"></span>
|
@@ -26,6 +26,7 @@
|
|
26
26
|
<a class="dropdown-item" href="#">Something else here</a>
|
27
27
|
</div>
|
28
28
|
</li>
|
29
|
+
<%%#= render "shared/devise" %>
|
29
30
|
</ul>
|
30
31
|
<form class="form-inline my-2 my-lg-0">
|
31
32
|
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
|
@@ -1,2 +1,52 @@
|
|
1
|
+
// $navbar-default-bg: #312312;
|
2
|
+
// $light-orange: #ff8c00;
|
3
|
+
// $navbar-default-color: $light-orange;
|
4
|
+
|
5
|
+
@import "font-awesome";
|
1
6
|
@import "bootstrap";
|
2
|
-
|
7
|
+
|
8
|
+
/* Sticky footer styles
|
9
|
+
-------------------------------------------------- */
|
10
|
+
html {
|
11
|
+
position: relative;
|
12
|
+
min-height: 100%;
|
13
|
+
}
|
14
|
+
body {
|
15
|
+
/* Margin bottom by footer height */
|
16
|
+
margin-bottom: 60px;
|
17
|
+
}
|
18
|
+
.footer {
|
19
|
+
position: absolute;
|
20
|
+
bottom: 0;
|
21
|
+
width: 100%;
|
22
|
+
/* Set the fixed height of the footer here */
|
23
|
+
height: 60px;
|
24
|
+
line-height: 60px; /* Vertically center the text there */
|
25
|
+
}
|
26
|
+
|
27
|
+
|
28
|
+
/* Custom page CSS
|
29
|
+
-------------------------------------------------- */
|
30
|
+
/* Not required for template or sticky footer method. */
|
31
|
+
|
32
|
+
body > .container {
|
33
|
+
padding: 40px 15px 0;
|
34
|
+
}
|
35
|
+
|
36
|
+
.footer > .container {
|
37
|
+
padding-right: 15px;
|
38
|
+
padding-left: 15px;
|
39
|
+
}
|
40
|
+
|
41
|
+
// Fixes bootstrap nav-brand container overlap
|
42
|
+
@include media-breakpoint-down(xs) {
|
43
|
+
.container {
|
44
|
+
margin-left: 0;
|
45
|
+
margin-right: 0;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
// Masquerade alert shouldn't have a bottom margin
|
50
|
+
body > .alert {
|
51
|
+
margin-bottom: 0;
|
52
|
+
}
|
File without changes
|
File without changes
|
@@ -1,23 +1,17 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
|
-
<html
|
2
|
+
<html>
|
3
3
|
<head>
|
4
|
-
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
6
|
-
<meta name="description" content="">
|
7
|
-
<meta name="author" content="">
|
8
|
-
<title><%%= content_for?(:title) ? yield(:title) : "<%= app_name %>" %></title>
|
9
|
-
<link rel="canonical" href="<%%= "#{request.protocol}#{request.host}#{request.path}" %>">
|
10
|
-
<%%= csrf_meta_tags %>
|
11
|
-
<%%= stylesheet_link_tag "application", :media => "all" %>
|
12
|
-
<%%= javascript_include_tag "application" %>
|
4
|
+
<%%= render 'shared/head' %>
|
13
5
|
</head>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
6
|
+
|
7
|
+
<body>
|
8
|
+
<%%= render 'shared/navbar' %>
|
9
|
+
<%%= render 'shared/notices' %>
|
10
|
+
|
11
|
+
<div class="container">
|
12
|
+
<%%= yield %>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<%%= render 'shared/footer' %>
|
22
16
|
</body>
|
23
17
|
</html>
|
File without changes
|
File without changes
|
data/precompilestat
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
N
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: BootstrapMan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AndyMental
|
@@ -130,22 +130,27 @@ files:
|
|
130
130
|
- lib/BootstrapMan.rb
|
131
131
|
- lib/BootstrapMan/version.rb
|
132
132
|
- lib/generators/.DS_Store
|
133
|
+
- lib/generators/bootstrap/install/.!36765!.DS_Store
|
133
134
|
- lib/generators/bootstrap/install/.DS_Store
|
134
135
|
- lib/generators/bootstrap/install/USAGE
|
135
136
|
- lib/generators/bootstrap/install/install_generator.rb
|
136
137
|
- lib/generators/bootstrap/install/templates/.DS_Store
|
138
|
+
- lib/generators/bootstrap/install/templates/_devise.html.erb
|
137
139
|
- lib/generators/bootstrap/install/templates/_footer.html.erb
|
138
|
-
- lib/generators/bootstrap/install/templates/
|
139
|
-
- lib/generators/bootstrap/install/templates/
|
140
|
+
- lib/generators/bootstrap/install/templates/_form.html.erb
|
141
|
+
- lib/generators/bootstrap/install/templates/_head.html.erb
|
142
|
+
- lib/generators/bootstrap/install/templates/_head6.html.erb
|
140
143
|
- lib/generators/bootstrap/install/templates/_navbar.html.erb
|
141
|
-
- lib/generators/bootstrap/install/templates/
|
142
|
-
- lib/generators/bootstrap/install/templates/_navbar.html.slim
|
144
|
+
- lib/generators/bootstrap/install/templates/_notices.html.erb
|
143
145
|
- lib/generators/bootstrap/install/templates/application.js
|
144
146
|
- lib/generators/bootstrap/install/templates/application.scss
|
147
|
+
- lib/generators/bootstrap/install/templates/application_helper.rb
|
145
148
|
- lib/generators/bootstrap/install/templates/bootstrap_forms.scss
|
149
|
+
- lib/generators/bootstrap/install/templates/edit.html.erb
|
150
|
+
- lib/generators/bootstrap/install/templates/index.html.erb
|
146
151
|
- lib/generators/bootstrap/install/templates/layout.html.erb
|
147
|
-
- lib/generators/bootstrap/install/templates/
|
148
|
-
- lib/generators/bootstrap/install/templates/
|
152
|
+
- lib/generators/bootstrap/install/templates/new.html.erb
|
153
|
+
- lib/generators/bootstrap/install/templates/show.html.erb
|
149
154
|
- lib/generators/bootstrap/strapify/.DS_Store
|
150
155
|
- lib/generators/bootstrap/strapify/USAGE
|
151
156
|
- lib/generators/bootstrap/strapify/strapify_generator.rb
|
@@ -162,11 +167,7 @@ files:
|
|
162
167
|
- lib/generators/bootstrap/strapify/templates/show.html.erb
|
163
168
|
- lib/generators/bootstrap/strapify/templates/show.html.haml
|
164
169
|
- lib/generators/bootstrap/strapify/templates/show.html.slim
|
165
|
-
-
|
166
|
-
- lib/templates/erb/scaffold/edit.html.erb
|
167
|
-
- lib/templates/erb/scaffold/index.html.erb
|
168
|
-
- lib/templates/erb/scaffold/new.html.erb
|
169
|
-
- lib/templates/erb/scaffold/show.html.erb
|
170
|
+
- precompilestat
|
170
171
|
homepage: https://github.com/AndyMental/bootstrap-man
|
171
172
|
licenses:
|
172
173
|
- MIT
|
@@ -1,29 +0,0 @@
|
|
1
|
-
%nav.navbar.navbar-expand-md.navbar-dark.bg-dark.fixed-top
|
2
|
-
\%= link_to app_name, "/", class: "navbar-brand" %>
|
3
|
-
%button.navbar-toggler{"aria-controls" => "navbarsExampleDefault", "aria-expanded" => "false", "aria-label" => "Toggle navigation", "data-target" => "#navbarsExampleDefault", "data-toggle" => "collapse", :type => "button"}
|
4
|
-
%span.navbar-toggler-icon
|
5
|
-
#navbarsExampleDefault.collapse.navbar-collapse
|
6
|
-
%ul.navbar-nav.mr-auto
|
7
|
-
%li.nav-item
|
8
|
-
= 'active' if current_page?(/)
|
9
|
-
">
|
10
|
-
\#{link_to / do}
|
11
|
-
Home
|
12
|
-
\#{(content_tag :span, (current), :class = sr-only) if current_page?(/)}
|
13
|
-
%li.nav-item
|
14
|
-
\%= link_to "Link1", "/path1", class: "nav-link" %>
|
15
|
-
%li.nav-item
|
16
|
-
\%= link_to "Link2", "/path2", class: "nav-link" %>
|
17
|
-
%li.nav-item
|
18
|
-
\%= link_to "Link3", "/path3", class: "nav-link" %>
|
19
|
-
%li.nav-item
|
20
|
-
%a.nav-link.disabled{"aria-disabled" => "true", :href => "#", :tabindex => "-1"} Disabled
|
21
|
-
%li.nav-item.dropdown
|
22
|
-
%a#dropdown01.nav-link.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", :href => "#"} Dropdown
|
23
|
-
.dropdown-menu{"aria-labelledby" => "dropdown01"}
|
24
|
-
%a.dropdown-item{:href => "#"} Action
|
25
|
-
%a.dropdown-item{:href => "#"} Another action
|
26
|
-
%a.dropdown-item{:href => "#"} Something else here
|
27
|
-
%form.form-inline.my-2.my-lg-0
|
28
|
-
%input.form-control.mr-sm-2{"aria-label" => "Search", :placeholder => "Search", :type => "text"}
|
29
|
-
%button.btn.btn-secondary.my-2.my-sm-0{:type => "submit"} Search
|
@@ -1,39 +0,0 @@
|
|
1
|
-
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
|
2
|
-
<%%= link_to app_name, "/", class: "navbar-brand" %>
|
3
|
-
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
|
4
|
-
<span class="navbar-toggler-icon"></span>
|
5
|
-
</button>
|
6
|
-
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
|
7
|
-
<ul class="navbar-nav mr-auto">
|
8
|
-
<li class="nav-item <%= 'active' if current_page?("/") %>">
|
9
|
-
<%= link_to "/" do %>Home
|
10
|
-
<%= (content_tag :span, "(current)", :class => "sr-only") if current_page?("/") %>
|
11
|
-
<% end %>
|
12
|
-
</li>
|
13
|
-
<li class="nav-item">
|
14
|
-
<%%= link_to "Link1", "/path1", class: "nav-link" %>
|
15
|
-
</li>
|
16
|
-
<li class="nav-item">
|
17
|
-
<%%= link_to "Link2", "/path2", class: "nav-link" %>
|
18
|
-
</li>
|
19
|
-
<li class="nav-item">
|
20
|
-
<%%= link_to "Link3", "/path3", class: "nav-link" %>
|
21
|
-
</li>
|
22
|
-
<li class="nav-item">
|
23
|
-
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
|
24
|
-
</li>
|
25
|
-
<li class="nav-item dropdown">
|
26
|
-
<a class="nav-link dropdown-toggle" href="#" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a>
|
27
|
-
<div class="dropdown-menu" aria-labelledby="dropdown01">
|
28
|
-
<a class="dropdown-item" href="#">Action</a>
|
29
|
-
<a class="dropdown-item" href="#">Another action</a>
|
30
|
-
<a class="dropdown-item" href="#">Something else here</a>
|
31
|
-
</div>
|
32
|
-
</li>
|
33
|
-
</ul>
|
34
|
-
<form class="form-inline my-2 my-lg-0">
|
35
|
-
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
|
36
|
-
<button class="btn btn-secondary my-2 my-sm-0" type="submit">Search</button>
|
37
|
-
</form>
|
38
|
-
</div>
|
39
|
-
</nav>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
!!!
|
2
|
-
%html{lang: "en"}
|
3
|
-
%head
|
4
|
-
%meta{content: "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
|
5
|
-
%meta{charset: "utf-8"}/
|
6
|
-
%meta{content: "width=device-width, initial-scale=1, shrink-to-fit=no", name: "viewport"}/
|
7
|
-
%meta{content: "", name: "description"}/
|
8
|
-
%meta{content: "", name: "author"}/
|
9
|
-
%title
|
10
|
-
= content_for?(:title) ? yield(:title) : "<%= app_name %>"
|
11
|
-
%link{href: "#{request.protocol}#{request.host}#{request.path}", rel: "canonical"}/
|
12
|
-
= csrf_meta_tags
|
13
|
-
= stylesheet_link_tag "application", :media => "all"
|
14
|
-
= javascript_include_tag "application"
|
15
|
-
%body
|
16
|
-
= render "shared/navbar"
|
17
|
-
%main.container{role: "main"}
|
18
|
-
= yield
|
19
|
-
= render "shared/footer"
|
@@ -1,50 +0,0 @@
|
|
1
|
-
doctype html
|
2
|
-
html lang="en"
|
3
|
-
head
|
4
|
-
meta charset="utf-8"
|
5
|
-
meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"
|
6
|
-
meta name="viewport" content="width=device-width, initial-scale=1.0"
|
7
|
-
title= content_for?(:title) ? yield(:title) : "<%= app_name %>"
|
8
|
-
= csrf_meta_tags
|
9
|
-
= stylesheet_link_tag "application", :media => "all"
|
10
|
-
= favicon_link_tag 'apple-touch-icon-144x144-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '144x144'
|
11
|
-
= favicon_link_tag 'apple-touch-icon-114x114-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '114x114'
|
12
|
-
= favicon_link_tag 'apple-touch-icon-72x72-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '72x72'
|
13
|
-
= favicon_link_tag 'apple-touch-icon-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png'
|
14
|
-
= favicon_link_tag 'favicon.ico', :rel => 'shortcut icon'
|
15
|
-
= javascript_include_tag "application"
|
16
|
-
/! Le HTML5 shim, for IE6-8 support of HTML elements
|
17
|
-
/[if lt IE 9]
|
18
|
-
= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"
|
19
|
-
|
20
|
-
|
21
|
-
body
|
22
|
-
.navbar.navbar-default.navbar-static-top
|
23
|
-
.container
|
24
|
-
button.navbar-toggle type="button" data-toggle="collapse" data-target=".navbar-responsive-collapse"
|
25
|
-
span.icon-bar
|
26
|
-
span.icon-bar
|
27
|
-
span.icon-bar
|
28
|
-
a.navbar-brand href="#"<%= app_name %>
|
29
|
-
.navbar-collapse.collapse.navbar-responsive-collapse
|
30
|
-
ul.nav.navbar-nav
|
31
|
-
li= link_to "Link 1", "/path1"
|
32
|
-
li= link_to "Link 2", "/path2"
|
33
|
-
li= link_to "Link 3", "/path3"
|
34
|
-
|
35
|
-
.container
|
36
|
-
.row
|
37
|
-
.col-lg-9
|
38
|
-
= bootstrap_flash
|
39
|
-
= yield
|
40
|
-
.col-lg-3
|
41
|
-
.well.sidebar-nav
|
42
|
-
h3 Sidebar
|
43
|
-
ul.nav.nav-list
|
44
|
-
li.nav-header Sidebar
|
45
|
-
li= link_to "Link 1", "/path1"
|
46
|
-
li= link_to "Link 2", "/path2"
|
47
|
-
li= link_to "Link 3", "/path3"
|
48
|
-
|
49
|
-
footer
|
50
|
-
p © Company <%= Date.today.year %>
|