caseadilla 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/app/assets/fonts/caseadilla/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/caseadilla/glyphicons-halflings-regular.svg +228 -228
- data/app/assets/fonts/caseadilla/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/caseadilla/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/images/caseadilla/caseadilla.png +0 -0
- data/app/assets/javascripts/caseadilla/bootstrap.js +2114 -2114
- data/app/assets/javascripts/caseadilla/bootstrap3-wysihtml5.js +520 -520
- data/app/assets/javascripts/caseadilla/caseadilla.js +50 -50
- data/app/assets/javascripts/caseadilla/html5shiv.js +8 -8
- data/app/assets/javascripts/caseadilla/wysihtml5-0.3.0.min.js +260 -260
- data/app/assets/stylesheets/caseadilla/bootstrap-glyphicons.css.scss +2 -2
- data/app/assets/stylesheets/caseadilla/bootstrap-theme.css +442 -442
- data/app/assets/stylesheets/caseadilla/bootstrap-wysihtml5.css +101 -101
- data/app/assets/stylesheets/caseadilla/bootstrap.css +6203 -6203
- data/app/assets/stylesheets/caseadilla/caseadilla-bootstrap-overrides.css.scss +79 -79
- data/app/assets/stylesheets/caseadilla/caseadilla.scss +269 -269
- data/app/assets/stylesheets/caseadilla/login.css.scss +80 -80
- data/app/controllers/caseadilla/caseadilla_controller.rb +56 -56
- data/app/controllers/caseadilla/caseadilla_user_sessions_controller.rb +35 -35
- data/app/controllers/caseadilla/password_resets_controller.rb +63 -63
- data/app/controllers/caseadilla/roles_controller.rb +64 -64
- data/app/controllers/caseadilla/users_controller.rb +117 -117
- data/app/helpers/caseadilla/caseadilla_helper.rb +261 -261
- data/app/mailers/caseadilla/caseadilla_notification.rb +38 -38
- data/app/views/caseadilla/caseadilla/blank.html.erb +11 -11
- data/app/views/caseadilla/caseadilla_notification/generate_new_password.erb +11 -11
- data/app/views/caseadilla/caseadilla_notification/new_user_information.erb +11 -11
- data/app/views/caseadilla/caseadilla_notification/password_reset_instructions.erb +10 -10
- data/app/views/caseadilla/caseadilla_user_sessions/new.html.erb +38 -38
- data/app/views/caseadilla/roles/_form.html.erb +11 -11
- data/app/views/caseadilla/roles/_table.html.erb +27 -27
- data/app/views/caseadilla/roles/index.html.erb +14 -14
- data/app/views/caseadilla/roles/new.html.erb +17 -17
- data/app/views/caseadilla/roles/show.html.erb +17 -17
- data/app/views/caseadilla/users/index.html.erb +36 -36
- data/app/views/caseadilla/users/new.html.erb +49 -49
- data/app/views/caseadilla/users/show.html.erb +38 -38
- data/app/views/layouts/caseadilla_auth.html.erb +36 -36
- data/app/views/layouts/caseadilla_main.html.erb +110 -118
- data/caseadilla.gemspec +48 -48
- data/config/initializers/will_paginate.rb +39 -39
- data/config/routes.rb +22 -22
- data/lib/caseadilla.rb +13 -13
- data/lib/caseadilla/engine.rb +34 -34
- data/lib/caseadilla/version.rb +1 -1
- data/lib/generators/caseadilla/install/install_generator.rb +153 -153
- data/lib/generators/caseadilla/install/templates/app/assets/javascripts/caseadilla/custom.js +1 -1
- data/lib/generators/caseadilla/install/templates/app/assets/stylesheets/caseadilla/custom.css.scss +2 -2
- data/lib/generators/caseadilla/install/templates/app/helpers/caseadilla/config_helper.rb +44 -44
- data/lib/generators/caseadilla/install/templates/app/models/user.rb +23 -23
- data/lib/generators/caseadilla/install/templates/app/views/caseadilla/layouts/_tab_navigation.html.erb +1 -1
- data/lib/generators/caseadilla/install/templates/app/views/caseadilla/layouts/_top_navigation.html.erb +3 -3
- data/lib/generators/caseadilla/install/templates/public/robots.txt +4 -4
- data/lib/generators/caseadilla/install/templates/steak/config/initializers/caseadilla.rb +7 -7
- data/lib/generators/caseadilla/install/templates/steak/db/migrate/add_name_to_users.rb +8 -8
- data/lib/generators/caseadilla/install/templates/veggie/config/initializers/caseadilla.rb +7 -7
- data/lib/generators/caseadilla/scaffold/scaffold_generator.rb +110 -110
- data/lib/generators/caseadilla/scaffold/templates/controller.rb +71 -71
- data/lib/generators/caseadilla/scaffold/templates/migration.rb +12 -12
- data/lib/generators/caseadilla/scaffold/templates/model.rb +2 -2
- data/lib/generators/caseadilla/scaffold/templates/views/_form.html.erb +11 -11
- data/lib/generators/caseadilla/scaffold/templates/views/_table.html.erb +18 -18
- data/lib/generators/caseadilla/scaffold/templates/views/index.html.erb +14 -14
- data/lib/generators/caseadilla/scaffold/templates/views/new.html.erb +17 -17
- data/lib/generators/caseadilla/scaffold/templates/views/show.html.erb +17 -17
- data/lib/railties/tasks.rake +31 -31
- metadata +2 -2
@@ -1,50 +1,50 @@
|
|
1
|
-
<h2>Add a new user</h2>
|
2
|
-
|
3
|
-
<%= form_for @caseadilla_user, url: caseadilla_users_path do |form| %>
|
4
|
-
|
5
|
-
<div class="row">
|
6
|
-
<div class="col-lg-6">
|
7
|
-
<%= caseadilla_text_field form, @caseadilla_user, :first_name %>
|
8
|
-
</div>
|
9
|
-
<div class="col-lg-6">
|
10
|
-
<%= caseadilla_text_field form, @caseadilla_user, :last_name %>
|
11
|
-
</div>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<div class="row">
|
15
|
-
<div class="col-lg-6">
|
16
|
-
<%= caseadilla_text_field form, @caseadilla_user, :email %>
|
17
|
-
</div>
|
18
|
-
<div class="col-lg-6">
|
19
|
-
<%= caseadilla_time_zone_select form, @caseadilla_user, :time_zone, ActiveSupport::TimeZone.us_zones %>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<!-- TODO: User roles -->
|
24
|
-
|
25
|
-
<div class="row">
|
26
|
-
<div class="col-lg-6">
|
27
|
-
<%= caseadilla_password_field form, @caseadilla_user, :password, {:caseadilla_label => "Password"} %>
|
28
|
-
</div>
|
29
|
-
<div class="col-lg-6">
|
30
|
-
<%= caseadilla_password_field form, @caseadilla_user, :password_confirmation, {:caseadilla_label => "Repeat password"} %>
|
31
|
-
</div>
|
32
|
-
<div class="col-lg-12 password-checkbox">
|
33
|
-
<div class="checkbox">
|
34
|
-
<label>
|
35
|
-
<%= check_box_tag :generate_random_password, "1", false, {:id => 'generate-random-password-checkbox'} %> Generate random password
|
36
|
-
</label>
|
37
|
-
</div>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<p class="submits">
|
42
|
-
<%= link_to 'Cancel', caseadilla_users_path, :class => 'btn btn-mini btn-danger' %>
|
43
|
-
<%= form.submit "Add new user", :class => "btn btn-mini btn-primary" %>
|
44
|
-
</p>
|
45
|
-
|
46
|
-
<% end %>
|
47
|
-
|
48
|
-
<%= content_for :sidebar do %>
|
49
|
-
<li><%= link_to "#{caseadilla_show_icon('th-list')}Back to list".html_safe, caseadilla_users_path %></li>
|
1
|
+
<h2>Add a new user</h2>
|
2
|
+
|
3
|
+
<%= form_for @caseadilla_user, url: caseadilla_users_path do |form| %>
|
4
|
+
|
5
|
+
<div class="row">
|
6
|
+
<div class="col-lg-6">
|
7
|
+
<%= caseadilla_text_field form, @caseadilla_user, :first_name %>
|
8
|
+
</div>
|
9
|
+
<div class="col-lg-6">
|
10
|
+
<%= caseadilla_text_field form, @caseadilla_user, :last_name %>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<div class="row">
|
15
|
+
<div class="col-lg-6">
|
16
|
+
<%= caseadilla_text_field form, @caseadilla_user, :email %>
|
17
|
+
</div>
|
18
|
+
<div class="col-lg-6">
|
19
|
+
<%= caseadilla_time_zone_select form, @caseadilla_user, :time_zone, ActiveSupport::TimeZone.us_zones %>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<!-- TODO: User roles -->
|
24
|
+
|
25
|
+
<div class="row">
|
26
|
+
<div class="col-lg-6">
|
27
|
+
<%= caseadilla_password_field form, @caseadilla_user, :password, {:caseadilla_label => "Password"} %>
|
28
|
+
</div>
|
29
|
+
<div class="col-lg-6">
|
30
|
+
<%= caseadilla_password_field form, @caseadilla_user, :password_confirmation, {:caseadilla_label => "Repeat password"} %>
|
31
|
+
</div>
|
32
|
+
<div class="col-lg-12 password-checkbox">
|
33
|
+
<div class="checkbox">
|
34
|
+
<label>
|
35
|
+
<%= check_box_tag :generate_random_password, "1", false, {:id => 'generate-random-password-checkbox'} %> Generate random password
|
36
|
+
</label>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<p class="submits">
|
42
|
+
<%= link_to 'Cancel', caseadilla_users_path, :class => 'btn btn-mini btn-danger' %>
|
43
|
+
<%= form.submit "Add new user", :class => "btn btn-mini btn-primary" %>
|
44
|
+
</p>
|
45
|
+
|
46
|
+
<% end %>
|
47
|
+
|
48
|
+
<%= content_for :sidebar do %>
|
49
|
+
<li><%= link_to "#{caseadilla_show_icon('th-list')}Back to list".html_safe, caseadilla_users_path %></li>
|
50
50
|
<% end %>
|
@@ -1,39 +1,39 @@
|
|
1
|
-
<h2>View user</h2>
|
2
|
-
|
3
|
-
<%= simple_form_for @caseadilla_user, as: resource_name, url: caseadilla_user_path(@caseadilla_user), html:{ method: :put } do |f| %>
|
4
|
-
|
5
|
-
<div class="row">
|
6
|
-
<div class="col-lg-6">
|
7
|
-
<%= caseadilla_text_field f, f.object, :first_name, {value: @caseadilla_user.first_name, caseadilla_label: "First name"} %>
|
8
|
-
</div>
|
9
|
-
<div class="col-lg-6">
|
10
|
-
<%= caseadilla_text_field f, f.object, :last_name, {value: @caseadilla_user.last_name, caseadilla_label: "Last name"} %>
|
11
|
-
</div>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<div class="row">
|
15
|
-
<div class="col-lg-6">
|
16
|
-
<%= caseadilla_text_field f, f.object, :email, {value: @caseadilla_user.email} %>
|
17
|
-
</div>
|
18
|
-
<div class="col-lg-6">
|
19
|
-
<%= caseadilla_time_zone_select f, f.object, :time_zone, ActiveSupport::TimeZone.us_zones, {selected: @caseadilla_user.time_zone} %>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<div class="row">
|
24
|
-
<div class="col-lg-6">
|
25
|
-
<%= caseadilla_collection_select f, f.object, :role_id, Role.all, :id, :title, {selected: @caseadilla_user.role_id} %>
|
26
|
-
</div>
|
27
|
-
</div>
|
28
|
-
|
29
|
-
<p class="submits">
|
30
|
-
<%= link_to 'Cancel', caseadilla_users_path, :class => 'btn btn-mini btn-danger' %>
|
31
|
-
<%= f.submit "Save changes", :class => "btn btn-mini btn-primary" %>
|
32
|
-
</p>
|
33
|
-
<% end %>
|
34
|
-
|
35
|
-
<%= content_for :sidebar do %>
|
36
|
-
<% if current_user #.is_admin? %>
|
37
|
-
<li><%= link_to "#{caseadilla_show_icon('th-list')}Back to list".html_safe, caseadilla_users_path %></li>
|
38
|
-
<% end %>
|
1
|
+
<h2>View user</h2>
|
2
|
+
|
3
|
+
<%= simple_form_for @caseadilla_user, as: resource_name, url: caseadilla_user_path(@caseadilla_user), html:{ method: :put } do |f| %>
|
4
|
+
|
5
|
+
<div class="row">
|
6
|
+
<div class="col-lg-6">
|
7
|
+
<%= caseadilla_text_field f, f.object, :first_name, {value: @caseadilla_user.first_name, caseadilla_label: "First name"} %>
|
8
|
+
</div>
|
9
|
+
<div class="col-lg-6">
|
10
|
+
<%= caseadilla_text_field f, f.object, :last_name, {value: @caseadilla_user.last_name, caseadilla_label: "Last name"} %>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<div class="row">
|
15
|
+
<div class="col-lg-6">
|
16
|
+
<%= caseadilla_text_field f, f.object, :email, {value: @caseadilla_user.email} %>
|
17
|
+
</div>
|
18
|
+
<div class="col-lg-6">
|
19
|
+
<%= caseadilla_time_zone_select f, f.object, :time_zone, ActiveSupport::TimeZone.us_zones, {selected: @caseadilla_user.time_zone} %>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div class="row">
|
24
|
+
<div class="col-lg-6">
|
25
|
+
<%= caseadilla_collection_select f, f.object, :role_id, Role.all, :id, :title, {selected: @caseadilla_user.role_id} %>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<p class="submits">
|
30
|
+
<%= link_to 'Cancel', caseadilla_users_path, :class => 'btn btn-mini btn-danger' %>
|
31
|
+
<%= f.submit "Save changes", :class => "btn btn-mini btn-primary" %>
|
32
|
+
</p>
|
33
|
+
<% end %>
|
34
|
+
|
35
|
+
<%= content_for :sidebar do %>
|
36
|
+
<% if current_user #.is_admin? %>
|
37
|
+
<li><%= link_to "#{caseadilla_show_icon('th-list')}Back to list".html_safe, caseadilla_users_path %></li>
|
38
|
+
<% end %>
|
39
39
|
<% end %>
|
@@ -1,36 +1,36 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>Welcome to <%= caseadilla_config_website_name %></title>
|
7
|
-
<%= stylesheet_link_tag "caseadilla/login" %>
|
8
|
-
<%= javascript_include_tag "caseadilla/caseadilla" %>
|
9
|
-
<%= csrf_meta_tag %>
|
10
|
-
|
11
|
-
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
|
12
|
-
<!--[if lt IE 9]>
|
13
|
-
<%= javascript_include_tag("caseadilla/html5shiv") %>
|
14
|
-
<![endif]-->
|
15
|
-
|
16
|
-
</head>
|
17
|
-
|
18
|
-
<body>
|
19
|
-
<div class="container-narrow">
|
20
|
-
<div class="jumbotron">
|
21
|
-
<div class="row brand">
|
22
|
-
<%= image_tag(caseadilla_config_logo, :alt => caseadilla_config_website_name) %>
|
23
|
-
</div>
|
24
|
-
<%= yield %>
|
25
|
-
</div>
|
26
|
-
<div class="row">
|
27
|
-
<div class="col-lg-12">
|
28
|
-
<hr />
|
29
|
-
<footer>
|
30
|
-
<p><%= caseadilla_get_footer_string(false) %></p>
|
31
|
-
</footer>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
-
</div>
|
35
|
-
</body>
|
36
|
-
</html>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>Welcome to <%= caseadilla_config_website_name %></title>
|
7
|
+
<%= stylesheet_link_tag "caseadilla/login" %>
|
8
|
+
<%= javascript_include_tag "caseadilla/caseadilla" %>
|
9
|
+
<%= csrf_meta_tag %>
|
10
|
+
|
11
|
+
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
|
12
|
+
<!--[if lt IE 9]>
|
13
|
+
<%= javascript_include_tag("caseadilla/html5shiv") %>
|
14
|
+
<![endif]-->
|
15
|
+
|
16
|
+
</head>
|
17
|
+
|
18
|
+
<body>
|
19
|
+
<div class="container-narrow">
|
20
|
+
<div class="jumbotron">
|
21
|
+
<div class="row brand">
|
22
|
+
<%= image_tag(caseadilla_config_logo, :alt => caseadilla_config_website_name) %>
|
23
|
+
</div>
|
24
|
+
<%= yield %>
|
25
|
+
</div>
|
26
|
+
<div class="row">
|
27
|
+
<div class="col-lg-12">
|
28
|
+
<hr />
|
29
|
+
<footer>
|
30
|
+
<p><%= caseadilla_get_footer_string(false) %></p>
|
31
|
+
</footer>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</body>
|
36
|
+
</html>
|
@@ -1,119 +1,111 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
|
7
|
-
<title><%= caseadilla_generate_page_title %></title>
|
8
|
-
<% caseadilla_config_stylesheet_includes.each do |stylesheet| %>
|
9
|
-
<%= stylesheet_link_tag(stylesheet) %>
|
10
|
-
<% end %>
|
11
|
-
|
12
|
-
<% caseadilla_config_javascript_includes.each do |javascript| %>
|
13
|
-
<%= javascript_include_tag(javascript) %>
|
14
|
-
<% end %>
|
15
|
-
|
16
|
-
<%= csrf_meta_tag %>
|
17
|
-
|
18
|
-
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
|
19
|
-
<!--[if lt IE 9]>
|
20
|
-
<%= javascript_include_tag("caseadilla/html5shiv") %>
|
21
|
-
<![endif]-->
|
22
|
-
|
23
|
-
<script type="text/javascript">
|
24
|
-
var current_controller = "<%= controller_name %>";
|
25
|
-
</script>
|
26
|
-
|
27
|
-
</head>
|
28
|
-
|
29
|
-
<body>
|
30
|
-
<div class="navbar navbar-static-top">
|
31
|
-
<% if current_user != nil %>
|
32
|
-
<div class="container">
|
33
|
-
<div id="user-info">
|
34
|
-
<ul>
|
35
|
-
<li class="hidden-sm">Hello <%= link_to current_user.first_name, caseadilla_user_path(current_user) %></li>
|
36
|
-
<li class="hidden-sm"><%= Time.zone.name %></li>
|
37
|
-
|
38
|
-
<% if current_user #.is_admin? %>
|
39
|
-
<li><%= link_to 'Users', caseadilla_users_path %></li>
|
40
|
-
<% end %>
|
41
|
-
<% if current_user #.is_admin? %>
|
42
|
-
<li><%= link_to 'Roles', caseadilla_roles_path %></li>
|
43
|
-
<% end %>
|
44
|
-
|
45
|
-
<%= render :partial => '/caseadilla/layouts/top_navigation' %>
|
46
|
-
<li class="last-item signout"><%= link_to 'Sign out', destroy_user_session_path, :method => :delete %></li>
|
47
|
-
</ul>
|
48
|
-
</div>
|
49
|
-
</div>
|
50
|
-
<% end %>
|
51
|
-
|
52
|
-
<div class="container">
|
53
|
-
<%= link_to(image_tag(caseadilla_config_logo, :alt => caseadilla_config_website_name), {:controller => :caseadilla}, :class => "navbar-brand") %>
|
54
|
-
</div>
|
55
|
-
<div class="container">
|
56
|
-
<
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
</
|
106
|
-
|
107
|
-
</div>
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
<footer>
|
112
|
-
<p><%= caseadilla_get_footer_string(true) %></p>
|
113
|
-
</footer>
|
114
|
-
</div>
|
115
|
-
</div>
|
116
|
-
</div>
|
117
|
-
</div>
|
118
|
-
</body>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
|
7
|
+
<title><%= caseadilla_generate_page_title %></title>
|
8
|
+
<% caseadilla_config_stylesheet_includes.each do |stylesheet| %>
|
9
|
+
<%= stylesheet_link_tag(stylesheet) %>
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<% caseadilla_config_javascript_includes.each do |javascript| %>
|
13
|
+
<%= javascript_include_tag(javascript) %>
|
14
|
+
<% end %>
|
15
|
+
|
16
|
+
<%= csrf_meta_tag %>
|
17
|
+
|
18
|
+
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
|
19
|
+
<!--[if lt IE 9]>
|
20
|
+
<%= javascript_include_tag("caseadilla/html5shiv") %>
|
21
|
+
<![endif]-->
|
22
|
+
|
23
|
+
<script type="text/javascript">
|
24
|
+
var current_controller = "<%= controller_name %>";
|
25
|
+
</script>
|
26
|
+
|
27
|
+
</head>
|
28
|
+
|
29
|
+
<body>
|
30
|
+
<div class="navbar navbar-static-top">
|
31
|
+
<% if current_user != nil %>
|
32
|
+
<div class="container">
|
33
|
+
<div id="user-info">
|
34
|
+
<ul>
|
35
|
+
<li class="hidden-sm">Hello <%= link_to current_user.first_name, caseadilla_user_path(current_user) %></li>
|
36
|
+
<li class="hidden-sm"><%= Time.zone.name %></li>
|
37
|
+
|
38
|
+
<% if current_user #.is_admin? %>
|
39
|
+
<li><%= link_to 'Users', caseadilla_users_path %></li>
|
40
|
+
<% end %>
|
41
|
+
<% if current_user #.is_admin? %>
|
42
|
+
<li><%= link_to 'Roles', caseadilla_roles_path %></li>
|
43
|
+
<% end %>
|
44
|
+
|
45
|
+
<%= render :partial => '/caseadilla/layouts/top_navigation' %>
|
46
|
+
<li class="last-item signout"><%= link_to 'Sign out', destroy_user_session_path, :method => :delete %></li>
|
47
|
+
</ul>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
<% end %>
|
51
|
+
|
52
|
+
<div class="container">
|
53
|
+
<%= link_to(image_tag(caseadilla_config_logo, :alt => caseadilla_config_website_name), {:controller => :caseadilla}, :class => "navbar-brand") %>
|
54
|
+
</div>
|
55
|
+
<div class="container">
|
56
|
+
<ul class="nav navbar-nav">
|
57
|
+
<%= render :partial => '/caseadilla/layouts/tab_navigation' %>
|
58
|
+
</ul>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div class="container">
|
63
|
+
<div id="content">
|
64
|
+
<div class="row">
|
65
|
+
<% if content_for?(:sidebar) %>
|
66
|
+
<div id="right-column" class="col-lg-2">
|
67
|
+
<ul class="nav nav-pills nav-stacked content-bottom-padding">
|
68
|
+
<%= yield :sidebar %>
|
69
|
+
</ul>
|
70
|
+
</div>
|
71
|
+
<div id="left-column" class="col-lg-10 content-bottom-padding">
|
72
|
+
<% else %>
|
73
|
+
<div class="col-lg-12 content-bottom-padding">
|
74
|
+
<% end %>
|
75
|
+
|
76
|
+
<% if flash[:warning] %>
|
77
|
+
<div id="error" class="alert alert-danger alert-dismissible fade in" role="alert">
|
78
|
+
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><!-- <span class="sr-only">Close</span> --></button>
|
79
|
+
<%= flash[:warning] %>
|
80
|
+
</div>
|
81
|
+
<% end %>
|
82
|
+
<% if flash[:notice] %>
|
83
|
+
<div id="notice" class="alert alert-success alert-dismissible fade in" role="alert">
|
84
|
+
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><!-- <span class="sr-only">Close</span> --></button>
|
85
|
+
<%= flash[:notice] %>
|
86
|
+
</div>
|
87
|
+
<% end %>
|
88
|
+
<% if content_for?(:help) %>
|
89
|
+
<div id="help" class="alert alert-info alert-dismissible fade in" role="alert">
|
90
|
+
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><!-- <span class="sr-only">Close</span> --></button>
|
91
|
+
<%= yield :help %>
|
92
|
+
</div>
|
93
|
+
<% end %>
|
94
|
+
|
95
|
+
<%= yield %>
|
96
|
+
|
97
|
+
</div>
|
98
|
+
|
99
|
+
</div>
|
100
|
+
<div class="row">
|
101
|
+
<div class="col-lg-12">
|
102
|
+
<hr />
|
103
|
+
<footer>
|
104
|
+
<p><%= caseadilla_get_footer_string(true) %></p>
|
105
|
+
</footer>
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
</body>
|
119
111
|
</html>
|