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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb4c30b7c4e397f11e7a61298f72afc3ca7cc037
4
- data.tar.gz: 1d8bb49c58f150e2dcd4974a41069fea937ec51f
3
+ metadata.gz: ca05ee4d7457942e5e0e8888ac4cd735ed6f12a2
4
+ data.tar.gz: c424ef034dde75480e71b01ba42fb29f4a58983f
5
5
  SHA512:
6
- metadata.gz: 65e1663eaceeb04f7a82f785e84efa71cc5e0f0246c73d114ef6a19c4ca21f710dfd7e5d53ab4474945447ef6dd1877b8c9ef401807c45b91bab0a5e293588f6
7
- data.tar.gz: 53ac03e900dd63e3a50e67fef342cb7e0012a0b3c6a652f80c42c2c8e900f9b978eece9e3d48f7f2c170519d565a603d210a3012508d8690c25a46034e343a42
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 Title</h4>
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 "cancel", admin_pages_path, :class => "btn btn-link" %>
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 "cancel", admin_pages_path,:class => "btn btn-link" %>
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 %>
@@ -1,4 +1,4 @@
1
- <% @page_title = @page.name %>
1
+ <% @page_title = (@page.page_title)? @page.page_title : @page.name %>
2
2
 
3
3
  <%= content_for :head do %>
4
4
  <% cache([@page, 'head']) do %>
@@ -0,0 +1,5 @@
1
+ class AddTitleTagToSpudPage < ActiveRecord::Migration
2
+ def change
3
+ add_column :spud_pages, :page_title, :string
4
+ end
5
+ 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 = true
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
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Cms
3
- VERSION = "1.2.1"
3
+ VERSION = "1.2.2"
4
4
  end
5
5
  end
@@ -0,0 +1,6 @@
1
+ # This migration comes from tb_core (originally 20150610143438)
2
+ class AddRequiresPasswordChangeToSpudUsers < ActiveRecord::Migration
3
+ def change
4
+ add_column :spud_users, :requires_password_change, :boolean, :default => false
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ # This migration comes from tb_cms (originally 20150622161403)
2
+ class AddTitleTagToSpudPage < ActiveRecord::Migration
3
+ def change
4
+ add_column :spud_pages, :page_title, :string
5
+ end
6
+ end
@@ -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: 20150108164814) do
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", limit: 255
154
- t.string "last_name", limit: 255
155
- t.boolean "super_admin", limit: 1
156
- t.string "login", limit: 255, null: false
157
- t.string "email", limit: 255, null: false
158
- t.string "crypted_password", limit: 255, null: false
159
- t.string "password_salt", limit: 255, null: false
160
- t.string "persistence_token", limit: 255, null: false
161
- t.string "single_access_token", limit: 255, null: false
162
- t.string "perishable_token", limit: 255, null: false
163
- t.integer "login_count", limit: 4, default: 0, null: false
164
- t.integer "failed_login_count", limit: 4, default: 0, null: false
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", limit: 255
169
- t.string "last_login_ip", limit: 255
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", limit: 255
173
- t.integer "spud_role_id", limit: 4
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.1
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-01-21 00:00:00.000000000 Z
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.2.1
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