tb_cms 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/admin/pages_controller.rb +1 -1
- data/app/views/admin/pages/_form.html.erb +8 -1
- data/app/views/admin/pages/edit.html.erb +1 -1
- data/app/views/admin/pages/new.html.erb +1 -1
- data/app/views/pages/show.html.erb +1 -1
- data/db/migrate/20150622161403_add_title_tag_to_spud_page.rb +5 -0
- data/lib/spud_cms/configuration.rb +1 -1
- data/lib/spud_cms/version.rb +1 -1
- data/spec/dummy/db/migrate/20150911185843_add_requires_password_change_to_spud_users.tb_core.rb +6 -0
- data/spec/dummy/db/migrate/20150911185844_add_title_tag_to_spud_page.tb_cms.rb +6 -0
- data/spec/dummy/db/schema.rb +19 -17
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca05ee4d7457942e5e0e8888ac4cd735ed6f12a2
|
4
|
+
data.tar.gz: c424ef034dde75480e71b01ba42fb29f4a58983f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f01e9b141e79e53d697d2c6f17b5738c092bf485aa994ae8a931be992da0088ec1774c671f59373aace6aba6621ef23fb0750a9d3253db40bd3dbab575e81e96
|
7
|
+
data.tar.gz: c51608c5dc6b307dc9075c7ed6f8980832aecef2ee99d511a560c3f94c4d4da17399d9e352f4201e8f01f8982767b3c8edae18b49147f7547991a751606e0252
|
@@ -157,7 +157,7 @@ private
|
|
157
157
|
|
158
158
|
def page_params
|
159
159
|
params.require(:spud_page).permit(:name, :url_name, :created_by, :updated_by, :layout, :visibility, :spud_page_id,
|
160
|
-
:publish_at, :format, :meta_description, :meta_keywords, :page_order, :spud_page_partials_attributes, :use_custom_url_name,
|
160
|
+
:publish_at, :format, :meta_description, :meta_keywords, :page_order, :spud_page_partials_attributes, :use_custom_url_name, :page_title,
|
161
161
|
:published, :notes, :spud_page_partials_attributes => [:id, :name, :content, :format, :_destroy])
|
162
162
|
end
|
163
163
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%= tb_form_errors(f.object) %>
|
2
2
|
|
3
|
-
<h4>Page
|
3
|
+
<h4>Page Name</h4>
|
4
4
|
|
5
5
|
<div class="form-group">
|
6
6
|
<%= f.label :name, :required => true, :style =>"display:none;", :class=>"form-label" %>
|
@@ -53,6 +53,13 @@
|
|
53
53
|
|
54
54
|
<h4>Meta Information</h4>
|
55
55
|
<p>These fields are used to notify search engines about important keywords and the appropriate description to display in a search result.</p>
|
56
|
+
<div class="form-group">
|
57
|
+
<%= f.label :page_title, "Page Title", :class=>"col-lg-2 control-label" %>
|
58
|
+
<div class="col-lg-10">
|
59
|
+
<%= f.text_field :page_title, :class=>"form-control" %>
|
60
|
+
<span class="help-block">The page title is the most important SEO ranking factor. <a href="https://moz.com/learn/seo/title-tag" target="_blank">Learn more</a> </span>
|
61
|
+
</div>
|
62
|
+
</div>
|
56
63
|
|
57
64
|
<div class="form-group">
|
58
65
|
<%= f.label :meta_keywords, "Keywords", :class=>"col-lg-2 control-label" %>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<div class="col-lg-10 col-offset-2">
|
5
5
|
<%= f.submit "Save Page", :class => "btn btn-primary btn-save" %>
|
6
6
|
<%= f.submit "Preview", :class => "btn btn-info btn-preview" %> or
|
7
|
-
<%= link_to "
|
7
|
+
<%= link_to "Cancel", admin_pages_path, :class => "btn btn-default" %>
|
8
8
|
</div>
|
9
9
|
</div>
|
10
10
|
<% end %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<div class="row">
|
4
4
|
<div class="col-lg-10 col-offset-2">
|
5
5
|
<%= f.submit "Create Page", :class => "btn btn-primary form-btn btn-save", "data-loading-text" => "Saving..." %>
|
6
|
-
<%= f.submit "Preview", :class => "btn btn-primary btn-preview" %> or <%=link_to "
|
6
|
+
<%= f.submit "Preview", :class => "btn btn-primary btn-preview" %> or <%=link_to "Cancel", admin_pages_path,:class => "btn btn-default" %>
|
7
7
|
</div>
|
8
8
|
</div>
|
9
9
|
<% end %>
|
@@ -4,7 +4,7 @@ module Spud
|
|
4
4
|
|
5
5
|
config_accessor :menus_enabled,:root_page_name,:yield_body_as_content_block,:default_page_layout,:enable_sitemap,:multisite_config,:max_revisions,:template_404, :cache_mode, :snippets_enabled
|
6
6
|
self.menus_enabled = true
|
7
|
-
self.snippets_enabled =
|
7
|
+
self.snippets_enabled = false
|
8
8
|
self.root_page_name = "home"
|
9
9
|
self.default_page_layout = 'application'
|
10
10
|
self.yield_body_as_content_block = false
|
data/lib/spud_cms/version.rb
CHANGED
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20150911185844) do
|
15
15
|
|
16
16
|
create_table "spud_liquid_tags", force: :cascade do |t|
|
17
17
|
t.integer "attachment_id", limit: 4
|
@@ -91,6 +91,7 @@ ActiveRecord::Schema.define(version: 20150108164814) do
|
|
91
91
|
t.boolean "use_custom_url_name", limit: 1, default: false
|
92
92
|
t.text "notes", limit: 65535
|
93
93
|
t.string "layout", limit: 255
|
94
|
+
t.string "page_title", limit: 255
|
94
95
|
end
|
95
96
|
|
96
97
|
create_table "spud_permalinks", force: :cascade do |t|
|
@@ -150,27 +151,28 @@ ActiveRecord::Schema.define(version: 20150108164814) do
|
|
150
151
|
end
|
151
152
|
|
152
153
|
create_table "spud_users", force: :cascade do |t|
|
153
|
-
t.string "first_name",
|
154
|
-
t.string "last_name",
|
155
|
-
t.boolean "super_admin",
|
156
|
-
t.string "login",
|
157
|
-
t.string "email",
|
158
|
-
t.string "crypted_password",
|
159
|
-
t.string "password_salt",
|
160
|
-
t.string "persistence_token",
|
161
|
-
t.string "single_access_token",
|
162
|
-
t.string "perishable_token",
|
163
|
-
t.integer "login_count",
|
164
|
-
t.integer "failed_login_count",
|
154
|
+
t.string "first_name", limit: 255
|
155
|
+
t.string "last_name", limit: 255
|
156
|
+
t.boolean "super_admin", limit: 1
|
157
|
+
t.string "login", limit: 255, null: false
|
158
|
+
t.string "email", limit: 255, null: false
|
159
|
+
t.string "crypted_password", limit: 255, null: false
|
160
|
+
t.string "password_salt", limit: 255, null: false
|
161
|
+
t.string "persistence_token", limit: 255, null: false
|
162
|
+
t.string "single_access_token", limit: 255, null: false
|
163
|
+
t.string "perishable_token", limit: 255, null: false
|
164
|
+
t.integer "login_count", limit: 4, default: 0, null: false
|
165
|
+
t.integer "failed_login_count", limit: 4, default: 0, null: false
|
165
166
|
t.datetime "last_request_at"
|
166
167
|
t.datetime "current_login_at"
|
167
168
|
t.datetime "last_login_at"
|
168
|
-
t.string "current_login_ip",
|
169
|
-
t.string "last_login_ip",
|
169
|
+
t.string "current_login_ip", limit: 255
|
170
|
+
t.string "last_login_ip", limit: 255
|
170
171
|
t.datetime "created_at"
|
171
172
|
t.datetime "updated_at"
|
172
|
-
t.string "time_zone",
|
173
|
-
t.integer "spud_role_id",
|
173
|
+
t.string "time_zone", limit: 255
|
174
|
+
t.integer "spud_role_id", limit: 4
|
175
|
+
t.boolean "requires_password_change", limit: 1, default: false
|
174
176
|
end
|
175
177
|
|
176
178
|
add_index "spud_users", ["email"], name: "index_spud_users_on_email", using: :btree
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tb_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Westlake Design
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tb_core
|
@@ -217,6 +217,7 @@ files:
|
|
217
217
|
- db/migrate/20121119030136_change_liquid_tags_to_polymorphic.rb
|
218
218
|
- db/migrate/20140110142037_drop_spud_page_liquid_tags.rb
|
219
219
|
- db/migrate/20150108162839_remove_site_id_from_cms_tables.rb
|
220
|
+
- db/migrate/20150622161403_add_title_tag_to_spud_page.rb
|
220
221
|
- lib/generators/spud/cms/layout_generator.rb
|
221
222
|
- lib/generators/spud/cms/templates/layout.html.erb
|
222
223
|
- lib/generators/spud/cms/templates/layout_actions.rb
|
@@ -296,6 +297,8 @@ files:
|
|
296
297
|
- spec/dummy/db/migrate/20141231214480_change_liquid_tags_to_polymorphic.tb_cms.rb
|
297
298
|
- spec/dummy/db/migrate/20141231214481_drop_spud_page_liquid_tags.tb_cms.rb
|
298
299
|
- spec/dummy/db/migrate/20150108164814_remove_site_id_from_cms_tables.tb_cms.rb
|
300
|
+
- spec/dummy/db/migrate/20150911185843_add_requires_password_change_to_spud_users.tb_core.rb
|
301
|
+
- spec/dummy/db/migrate/20150911185844_add_title_tag_to_spud_page.tb_cms.rb
|
299
302
|
- spec/dummy/db/schema.rb
|
300
303
|
- spec/dummy/public/404.html
|
301
304
|
- spec/dummy/public/422.html
|
@@ -329,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
329
332
|
version: '0'
|
330
333
|
requirements: []
|
331
334
|
rubyforge_project:
|
332
|
-
rubygems_version: 2.
|
335
|
+
rubygems_version: 2.4.6
|
333
336
|
signing_key:
|
334
337
|
specification_version: 4
|
335
338
|
summary: Twice Baked CMS
|
@@ -399,6 +402,8 @@ test_files:
|
|
399
402
|
- spec/dummy/db/migrate/20141231214480_change_liquid_tags_to_polymorphic.tb_cms.rb
|
400
403
|
- spec/dummy/db/migrate/20141231214481_drop_spud_page_liquid_tags.tb_cms.rb
|
401
404
|
- spec/dummy/db/migrate/20150108164814_remove_site_id_from_cms_tables.tb_cms.rb
|
405
|
+
- spec/dummy/db/migrate/20150911185843_add_requires_password_change_to_spud_users.tb_core.rb
|
406
|
+
- spec/dummy/db/migrate/20150911185844_add_title_tag_to_spud_page.tb_cms.rb
|
402
407
|
- spec/dummy/db/schema.rb
|
403
408
|
- spec/dummy/public/404.html
|
404
409
|
- spec/dummy/public/422.html
|