caboose-cms 0.9.166 → 0.9.167
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/caboose/block_content_controller_dragdrop.js +1 -1
- data/app/assets/javascripts/caboose/model/index_table.js +3 -3
- data/app/assets/stylesheets/caboose/admin_edit_page_content_dragdrop.scss +20 -1
- data/app/assets/stylesheets/caboose/admin_main.css.scss +142 -9
- data/app/assets/stylesheets/caboose/message_boxes.css.scss +45 -29
- data/app/assets/stylesheets/caboose/modal_inline.css +10 -2
- data/app/controllers/caboose/block_type_store_controller.rb +1 -2
- data/app/controllers/caboose/login_controller.rb +1 -1
- data/app/controllers/caboose/login_logs_controller.rb +9 -1
- data/app/controllers/caboose/page_templates_controller.rb +76 -0
- data/app/controllers/caboose/pages_controller.rb +76 -42
- data/app/controllers/caboose/sites_controller.rb +20 -11
- data/app/controllers/caboose/themes_controller.rb +108 -0
- data/app/models/caboose/block.rb +7 -3
- data/app/models/caboose/block_type.rb +2 -0
- data/app/models/caboose/core_plugin.rb +2 -0
- data/app/models/caboose/page.rb +1 -0
- data/app/models/caboose/page_template.rb +17 -0
- data/app/models/caboose/page_template_category.rb +20 -0
- data/app/models/caboose/schema.rb +80 -1
- data/app/models/caboose/site.rb +15 -2
- data/app/models/caboose/theme.rb +146 -0
- data/app/models/caboose/user.rb +14 -16
- data/app/views/caboose/block_type_sources/admin_edit.html.erb +1 -1
- data/app/views/caboose/block_type_sources/admin_index.html.erb +1 -1
- data/app/views/caboose/block_type_store/admin_details.html.erb +2 -2
- data/app/views/caboose/block_type_store/admin_index.html.erb +3 -3
- data/app/views/caboose/fonts/admin_index.html.erb +23 -0
- data/app/views/caboose/login_logs/admin_index.html.erb +6 -1
- data/app/views/caboose/login_logs/admin_index_for_user.html.erb +36 -0
- data/app/views/caboose/page_templates/admin_edit.html.erb +68 -0
- data/app/views/caboose/page_templates/admin_index.html.erb +24 -0
- data/app/views/caboose/page_templates/admin_new.html.erb +38 -0
- data/app/views/caboose/pages/admin_delete_form.html.erb +5 -4
- data/app/views/caboose/pages/admin_edit_content.html.erb +0 -9
- data/app/views/caboose/pages/admin_new.html.erb +139 -41
- data/app/views/caboose/pages/admin_new_old.html.erb +46 -0
- data/app/views/caboose/posts/admin_edit_content.html.erb +0 -8
- data/app/views/caboose/sites/admin_index.html.erb +2 -1
- data/app/views/caboose/themes/admin_edit.html.erb +242 -0
- data/app/views/caboose/users/_admin_header.html.erb +2 -2
- data/app/views/caboose/users/admin_delete_form.html.erb +0 -2
- data/app/views/caboose/users/admin_edit.html.erb +24 -7
- data/app/views/caboose/users/admin_edit_password.html.erb +1 -1
- data/app/views/caboose/users/admin_edit_roles.html.erb +2 -0
- data/app/views/layouts/caboose/application.html.erb +8 -0
- data/lib/caboose/version.rb +1 -1
- metadata +13 -2
@@ -9,12 +9,12 @@
|
|
9
9
|
<%
|
10
10
|
tabs = {
|
11
11
|
'General' => "/admin/users/#{@edituser.id}",
|
12
|
-
'Login Logs' => "/admin/login-logs
|
12
|
+
'Login Logs' => "/admin/login-logs/user/#{@edituser.id}",
|
13
13
|
'Password' => "/admin/users/#{@edituser.id}/password",
|
14
14
|
'Roles' => "/admin/users/#{@edituser.id}/roles",
|
15
15
|
'Delete' => "/admin/users/#{@edituser.id}/delete"
|
16
16
|
}
|
17
|
-
if @site.use_store
|
17
|
+
if @site.use_store
|
18
18
|
arr = tabs.to_a.insert(1, ['Payment Method', "/admin/users/#{@edituser.id}/payment-method"])
|
19
19
|
tabs = Hash[arr]
|
20
20
|
arr = tabs.to_a.insert(2, ['Invoices', "/admin/users/#{@edituser.id}/invoices"])
|
@@ -1,19 +1,29 @@
|
|
1
1
|
<%
|
2
2
|
gravatar_id = Digest::MD5.hexdigest(@edituser.email.downcase)
|
3
|
-
pic = "http://gravatar.com/avatar/#{gravatar_id}.png?s=150"
|
3
|
+
pic = "http://gravatar.com/avatar/#{gravatar_id}.png?s=150"
|
4
|
+
pic = @edituser.image.url(:thumb) if @edituser.image && !@edituser.image.url.include?('placehold')
|
4
5
|
%>
|
5
6
|
|
6
7
|
<%= render :partial => 'caboose/users/admin_header' %>
|
7
8
|
|
9
|
+
<h3 style="margin:0;">General Information</h3>
|
10
|
+
|
8
11
|
<div class="user-details-wrapper clearfix">
|
9
12
|
<div class="gravatar-holder">
|
10
|
-
<p id='gravatar'><img src='<%= pic %>'
|
13
|
+
<p id='gravatar'><img src='<%= pic %>' width="150" /></p>
|
11
14
|
</div>
|
12
15
|
<div class="mb-holder">
|
13
16
|
<p><div id='user_<%= @edituser.id %>_first_name' ></div></p>
|
14
17
|
<p><div id='user_<%= @edituser.id %>_last_name' ></div></p>
|
15
18
|
<p><div id='user_<%= @edituser.id %>_username' ></div></p>
|
16
19
|
<p><div id='user_<%= @edituser.id %>_email' ></div></p>
|
20
|
+
<p><div id='user_<%= @edituser.id %>_phone' ></div></p>
|
21
|
+
<p><div id='user_<%= @edituser.id %>_fax' ></div></p>
|
22
|
+
<p><div id='user_<%= @edituser.id %>_address' ></div></p>
|
23
|
+
<p><div id='user_<%= @edituser.id %>_address2' ></div></p>
|
24
|
+
<p><div id='user_<%= @edituser.id %>_city' ></div></p>
|
25
|
+
<p><div id='user_<%= @edituser.id %>_state' ></div></p>
|
26
|
+
<p><div id='user_<%= @edituser.id %>_zip' ></div></p>
|
17
27
|
<p><div id='user_<%= @edituser.id %>_locked' ></div></p>
|
18
28
|
</div>
|
19
29
|
</div>
|
@@ -51,11 +61,18 @@ $(document).ready(function() {
|
|
51
61
|
update_url: '/admin/users/<%= @edituser.id %>',
|
52
62
|
authenticity_token: '<%= form_authenticity_token %>',
|
53
63
|
attributes: [
|
54
|
-
{ name: 'first_name' , nice_name: 'First name', type: 'text' , value: <%= raw Caboose.json(@edituser.first_name) %>, width:
|
55
|
-
{ name: 'last_name' , nice_name: 'Last name' , type: 'text' , value: <%= raw Caboose.json(@edituser.last_name) %>, width:
|
56
|
-
{ name: 'username' , nice_name: 'Username' , type: 'text' , value: <%= raw Caboose.json(@edituser.username) %>, width:
|
57
|
-
{ name: 'email' , nice_name: 'Email' , type: 'text' , value: <%= raw Caboose.json(@edituser.email) %>, width:
|
58
|
-
{ name: '
|
64
|
+
{ name: 'first_name' , nice_name: 'First name', type: 'text' , value: <%= raw Caboose.json(@edituser.first_name) %>, width: 400 },
|
65
|
+
{ name: 'last_name' , nice_name: 'Last name' , type: 'text' , value: <%= raw Caboose.json(@edituser.last_name) %>, width: 400 },
|
66
|
+
{ name: 'username' , nice_name: 'Username' , type: 'text' , value: <%= raw Caboose.json(@edituser.username) %>, width: 400 },
|
67
|
+
{ name: 'email' , nice_name: 'Email' , type: 'text' , value: <%= raw Caboose.json(@edituser.email) %>, width: 400 },
|
68
|
+
{ name: 'phone' , nice_name: 'Phone' , type: 'text' , value: <%= raw Caboose.json(@edituser.phone) %>, width: 400 },
|
69
|
+
{ name: 'fax' , nice_name: 'Fax' , type: 'text' , value: <%= raw Caboose.json(@edituser.fax) %>, width: 400 },
|
70
|
+
{ name: 'address' , nice_name: 'Address' , type: 'text' , value: <%= raw Caboose.json(@edituser.address) %>, width: 400 },
|
71
|
+
{ name: 'address2' , nice_name: 'Address 2' , type: 'text' , value: <%= raw Caboose.json(@edituser.address2) %>, width: 400 },
|
72
|
+
{ name: 'city' , nice_name: 'City' , type: 'text' , value: <%= raw Caboose.json(@edituser.city) %>, width: 400 },
|
73
|
+
{ name: 'state' , nice_name: 'State' , type: 'text' , value: <%= raw Caboose.json(@edituser.state) %>, width: 400 },
|
74
|
+
{ name: 'zip' , nice_name: 'Zip' , type: 'text' , value: <%= raw Caboose.json(@edituser.zip) %>, width: 400 },
|
75
|
+
{ name: 'locked' , nice_name: 'Locked' , type: 'checkbox' , value: <%= @edituser.locked ? 1 : 0 %>, width: 400 }
|
59
76
|
]
|
60
77
|
});
|
61
78
|
});
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
<%= render :partial => 'caboose/users/admin_header' %>
|
3
3
|
|
4
|
-
<
|
4
|
+
<h3 style="margin:0 0 10px 0;">Reset Password</h3>
|
5
5
|
<form action='/admin/users/<%= @edituser.id %>' method='put' id='password_form'>
|
6
6
|
<input type='hidden' name='authenticity_token' value='<%= form_authenticity_token %>' />
|
7
7
|
<div class="field">
|
@@ -1,7 +1,11 @@
|
|
1
1
|
<% if @page && @page.title != 'Access Denied' %>
|
2
2
|
<% content_for :js do %>
|
3
3
|
<%= gzip_javascript_include_tag "caboose/application" %>
|
4
|
+
<% if @site.theme %>
|
5
|
+
<%= gzip_javascript_include_tag(@site.theme.js_url) %>
|
6
|
+
<% else %>
|
4
7
|
<%= gzip_javascript_include_tag @site.name == 'application' ? 'application' : "#{@site.name}/js/application" %>
|
8
|
+
<% end %>
|
5
9
|
<script>window.loggedIn = <%= logged_in?.to_json %></script>
|
6
10
|
<% Caboose::javascripts.each do |js| %><%= javascript_include_tag(js) %><% end %>
|
7
11
|
<% @page.linked_resources_map[:js].each do |r| %><%= gzip_javascript_include_tag r %><% end %>
|
@@ -14,7 +18,11 @@
|
|
14
18
|
<% end %>
|
15
19
|
<% content_for :css do %>
|
16
20
|
<%= gzip_stylesheet_link_tag 'caboose/application' %>
|
21
|
+
<% if @site.theme %>
|
22
|
+
<%= gzip_stylesheet_link_tag(@site.theme.asset_url(@site.id)) %>
|
23
|
+
<% else %>
|
17
24
|
<%= gzip_stylesheet_link_tag @site.name == 'application' ? 'application' : "#{@site.name}/css/application" %>
|
25
|
+
<% end %>
|
18
26
|
<% Caboose::stylesheets.each do |css| %><%= gzip_stylesheet_link_tag(css) %><% end %>
|
19
27
|
<% @page.linked_resources_map[:css].each do |r| %><%= gzip_stylesheet_link_tag r %><% end %>
|
20
28
|
<% if @site.date_css_updated %><link rel='stylesheet' type='text/css' href="<%= raw @site.custom_css_url %>" /><% end %>
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.167
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -722,6 +722,7 @@ files:
|
|
722
722
|
- app/controllers/caboose/page_custom_field_values_controller.rb
|
723
723
|
- app/controllers/caboose/page_custom_fields_controller.rb
|
724
724
|
- app/controllers/caboose/page_permissions_controller.rb
|
725
|
+
- app/controllers/caboose/page_templates_controller.rb
|
725
726
|
- app/controllers/caboose/pages_controller.rb
|
726
727
|
- app/controllers/caboose/permissions_controller.rb
|
727
728
|
- app/controllers/caboose/post_categories_controller.rb
|
@@ -746,6 +747,7 @@ files:
|
|
746
747
|
- app/controllers/caboose/station_controller.rb
|
747
748
|
- app/controllers/caboose/store_controller.rb
|
748
749
|
- app/controllers/caboose/subscriptions_controller.rb
|
750
|
+
- app/controllers/caboose/themes_controller.rb
|
749
751
|
- app/controllers/caboose/users_controller.rb
|
750
752
|
- app/controllers/caboose/variant_children_controller.rb
|
751
753
|
- app/controllers/caboose/variant_limits_controller.rb
|
@@ -833,6 +835,8 @@ files:
|
|
833
835
|
- app/models/caboose/page_custom_field_value.rb
|
834
836
|
- app/models/caboose/page_permission.rb
|
835
837
|
- app/models/caboose/page_tag.rb
|
838
|
+
- app/models/caboose/page_template.rb
|
839
|
+
- app/models/caboose/page_template_category.rb
|
836
840
|
- app/models/caboose/pager.rb
|
837
841
|
- app/models/caboose/payment_processors/authorizenet.rb
|
838
842
|
- app/models/caboose/payment_processors/base.rb
|
@@ -874,6 +878,7 @@ files:
|
|
874
878
|
- app/models/caboose/subscription.rb
|
875
879
|
- app/models/caboose/tax_calculator.rb
|
876
880
|
- app/models/caboose/tax_line.rb
|
881
|
+
- app/models/caboose/theme.rb
|
877
882
|
- app/models/caboose/user.rb
|
878
883
|
- app/models/caboose/utilities/schema.rb
|
879
884
|
- app/models/caboose/variant.rb
|
@@ -1041,6 +1046,7 @@ files:
|
|
1041
1046
|
- app/views/caboose/login/index.html.erb
|
1042
1047
|
- app/views/caboose/login/reset_password_form.html.erb
|
1043
1048
|
- app/views/caboose/login_logs/admin_index.html.erb
|
1049
|
+
- app/views/caboose/login_logs/admin_index_for_user.html.erb
|
1044
1050
|
- app/views/caboose/login_mailer/forgot_password_email.html.erb
|
1045
1051
|
- app/views/caboose/login_mailer/locked_account.html.erb
|
1046
1052
|
- app/views/caboose/media/admin_edit.html.erb
|
@@ -1057,6 +1063,9 @@ files:
|
|
1057
1063
|
- app/views/caboose/my_account_invoices/payment_form.html.erb
|
1058
1064
|
- app/views/caboose/page_custom_fields/admin_edit.html.erb
|
1059
1065
|
- app/views/caboose/page_custom_fields/admin_index.html.erb
|
1066
|
+
- app/views/caboose/page_templates/admin_edit.html.erb
|
1067
|
+
- app/views/caboose/page_templates/admin_index.html.erb
|
1068
|
+
- app/views/caboose/page_templates/admin_new.html.erb
|
1060
1069
|
- app/views/caboose/pages/_admin_footer.html.erb
|
1061
1070
|
- app/views/caboose/pages/_admin_header.html.erb
|
1062
1071
|
- app/views/caboose/pages/_content.html.erb
|
@@ -1074,6 +1083,7 @@ files:
|
|
1074
1083
|
- app/views/caboose/pages/admin_edit_seo.html.erb
|
1075
1084
|
- app/views/caboose/pages/admin_index.html.erb
|
1076
1085
|
- app/views/caboose/pages/admin_new.html.erb
|
1086
|
+
- app/views/caboose/pages/admin_new_old.html.erb
|
1077
1087
|
- app/views/caboose/pages/admin_sitemap.html.erb
|
1078
1088
|
- app/views/caboose/pages/preview.html.erb
|
1079
1089
|
- app/views/caboose/pages/show.html.erb
|
@@ -1165,6 +1175,7 @@ files:
|
|
1165
1175
|
- app/views/caboose/subscriptions/admin_edit.html.erb
|
1166
1176
|
- app/views/caboose/subscriptions/admin_index.html.erb
|
1167
1177
|
- app/views/caboose/subscriptions/admin_user_index.html.erb
|
1178
|
+
- app/views/caboose/themes/admin_edit.html.erb
|
1168
1179
|
- app/views/caboose/users/_admin_footer.html.erb
|
1169
1180
|
- app/views/caboose/users/_admin_header.html.erb
|
1170
1181
|
- app/views/caboose/users/admin_delete_form.html.erb
|