tkh_content 0.2 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.2.1
6
+
7
+ * Debugged, and therefore enabled, the autocomplete of the parent page title in pages form
8
+ * Added a second 'create a new page' button to the top of the pages index view when there are at least 5 pages
9
+ * Added H1 headings to page views
10
+
11
+
5
12
  ## 0.2
6
13
 
7
14
  * Removed the tkh_inline_editor dependency
@@ -10,7 +10,7 @@
10
10
  as: :string,
11
11
  :wrapper_html => { :id => 'parent-page-title' },
12
12
  label: 'parent page title',
13
- :input_html => { class: 'typeahead',
13
+ :input_html => {
14
14
  :data => { provide: 'typeahead',
15
15
  source: Page.not_for_blog.by_title.map(&:title).to_json }
16
16
  } %>
@@ -1,2 +1,3 @@
1
+ <h1>Edit a Page</h1>
1
2
  <%= render 'form' %>
2
3
  <%= render 'shared/admin_sidebar' %>
@@ -1,4 +1,6 @@
1
- <h1>Listing Pages</h1>
1
+ <h1>List of Pages</h1>
2
+
3
+ <%= link_to t('pages.create_new').capitalize, new_page_path, class: 'btn btn-primary' if @pages.size >= 5 %>
2
4
 
3
5
  <table class='table table-striped'>
4
6
  <thead>
@@ -1,2 +1,3 @@
1
+ <h1>Create a New Page</h1>
1
2
  <%= render 'form' %>
2
3
  <%= render 'shared/admin_sidebar' %>
@@ -1,3 +1,3 @@
1
1
  module TkhContent
2
- VERSION = "0.2"
2
+ VERSION = "0.2.1"
3
3
  end
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.2'
4
+ version: 0.2.1
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-26 00:00:00.000000000 Z
12
+ date: 2013-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -256,7 +256,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
256
256
  version: '0'
257
257
  segments:
258
258
  - 0
259
- hash: 2372878787033962995
259
+ hash: -3916766060710411944
260
260
  required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  none: false
262
262
  requirements:
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  version: '0'
266
266
  segments:
267
267
  - 0
268
- hash: 2372878787033962995
268
+ hash: -3916766060710411944
269
269
  requirements: []
270
270
  rubyforge_project:
271
271
  rubygems_version: 1.8.23