tkh_content 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -0
- data/app/views/blog/index.html.erb +1 -1
- data/app/views/pages/_blog_post_meta.html.erb +1 -1
- data/lib/generators/tkh_content/create_or_update_migrations/create_or_update_migrations_generator.rb +1 -0
- data/lib/generators/tkh_content/create_or_update_migrations/templates/add_short_title_to_pages.rb +5 -0
- data/lib/generators/tkh_content/create_or_update_migrations/templates/create_contacts.rb +1 -1
- data/lib/generators/tkh_content/create_or_update_migrations/templates/create_pages.rb +1 -1
- data/lib/tkh_content/version.rb +1 -1
- metadata +5 -4
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
## 0.1.15
|
6
|
+
|
7
|
+
* Debugged pages migrations. short_title attribute was missing in pages table
|
8
|
+
* Meta title for blog home page is company name instead of blog name
|
9
|
+
* Fixed bug meta partial for when blog post is not yet published_at
|
10
|
+
|
11
|
+
|
5
12
|
## 0.1.14
|
6
13
|
|
7
14
|
* Fixed typo. Bad German in the contact form submit button.
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<p class="meta-info">
|
2
|
-
by <%= post.author.name %> on
|
2
|
+
by <%= post.author.name %> <%= post.published_at ? "on #{l(post.published_at, format: :tkh_default)}" : "- not published yet" %> | <%= link_to 'Permalink', post %>
|
3
3
|
<%="| #{link_to 'edit', edit_page_path(post), class: 'btn btn-mini'}".html_safe if administrator? %>
|
4
4
|
</p>
|
data/lib/generators/tkh_content/create_or_update_migrations/create_or_update_migrations_generator.rb
CHANGED
@@ -18,6 +18,7 @@ module TkhContent
|
|
18
18
|
def copy_migrations
|
19
19
|
puts 'creating or updating page migrations'
|
20
20
|
migration_template "create_pages.rb", "db/migrate/create_pages.rb"
|
21
|
+
migration_template "add_short_title_to_pages.rb", "db/migrate/add_short_title_to_pages.rb"
|
21
22
|
migration_template "add_author_to_pages.rb", "db/migrate/add_author_to_pages.rb"
|
22
23
|
migration_template "add_parent_id_to_pages.rb", "db/migrate/add_parent_id_to_pages.rb"
|
23
24
|
migration_template "create_tags.rb", "db/migrate/create_tags.rb"
|
@@ -9,7 +9,7 @@ class CreatePages < ActiveRecord::Migration
|
|
9
9
|
t.datetime :published_at
|
10
10
|
t.timestamps
|
11
11
|
end
|
12
|
-
add_index :pages, :published_at
|
12
|
+
add_index :pages, :published_at
|
13
13
|
Page.create_translation_table! :title => :string, :short_title => :string, :description => :text, :body => :text
|
14
14
|
end
|
15
15
|
|
data/lib/tkh_content/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tkh_content
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -181,6 +181,7 @@ files:
|
|
181
181
|
- lib/generators/tkh_content/create_or_update_migrations/create_or_update_migrations_generator.rb
|
182
182
|
- lib/generators/tkh_content/create_or_update_migrations/templates/add_author_to_pages.rb
|
183
183
|
- lib/generators/tkh_content/create_or_update_migrations/templates/add_parent_id_to_pages.rb
|
184
|
+
- lib/generators/tkh_content/create_or_update_migrations/templates/add_short_title_to_pages.rb
|
184
185
|
- lib/generators/tkh_content/create_or_update_migrations/templates/add_various_indices_to_pages.rb
|
185
186
|
- lib/generators/tkh_content/create_or_update_migrations/templates/create_contacts.rb
|
186
187
|
- lib/generators/tkh_content/create_or_update_migrations/templates/create_pages.rb
|
@@ -237,7 +238,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
237
238
|
version: '0'
|
238
239
|
segments:
|
239
240
|
- 0
|
240
|
-
hash: -
|
241
|
+
hash: -3943227022752667587
|
241
242
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
243
|
none: false
|
243
244
|
requirements:
|
@@ -246,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
246
247
|
version: '0'
|
247
248
|
segments:
|
248
249
|
- 0
|
249
|
-
hash: -
|
250
|
+
hash: -3943227022752667587
|
250
251
|
requirements: []
|
251
252
|
rubyforge_project:
|
252
253
|
rubygems_version: 1.8.23
|