tkh_content 0.10 → 0.10.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f148264517e808790892fd12ac9e3e61fef243d1
4
- data.tar.gz: ed2d65006ceef57eadd9c255b655b208ba6f83a1
3
+ metadata.gz: 06f86d84351c152fdab67aefec8f3c0e04750e12
4
+ data.tar.gz: cf36bd8e44e6d4807b7ff9d0d7912db49f364bc1
5
5
  SHA512:
6
- metadata.gz: 5b6b448bcc1128b523196aed471ac34ffc52e4ca1c58778c18976a9ad8d4c98eebb28a05660d399a3ed90a978680361828297fc4ad4704dc7acb3d6f92f20265
7
- data.tar.gz: 530fda9a28ea598eee9faa5727538e98d62df4cc9b5a7e95b4ee77b8ee21ef16ddb9bbeb77a66aca42f72f1fca3f05d58f720ad3a4b89724e420b314a50529ab
6
+ metadata.gz: afcc65531f6e39abf351eceec41abca479c0eb4d3369ab026bf26b40039a257b41f6de186730fa12ccb0f8ad883ede7e1ad56cd30973859a12e281a5d5a37b1f
7
+ data.tar.gz: e0bc0a3924e410fac5b969185dd8f28b09365f807a96c26734e1192f11f06d64a232293705ee9bfc3bc6375ae37f76006cd4c9e3abe2102aa8ce5bfd6af861fe
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.10.1
6
+
7
+ * A notice is displayed for draft pages which are not yet published.
8
+
9
+
5
10
  ## 0.10
6
11
 
7
12
  * Pages are connected to the tkh_search gem
@@ -0,0 +1,5 @@
1
+ <div class="alert alert-info">
2
+ <span class='glyphicon glyphicon-wrench'></span>
3
+ <strong>Under Construction!</strong>
4
+ <br />This page is still a draft and has not been published yet. It still needs to be completed and edited. Thank you for your patience.
5
+ </div>
@@ -2,6 +2,8 @@
2
2
  <% content_for :meta_description, @page.description %>
3
3
  <% content_for :canonical_link, link_to('', @page, rel: 'canonical') %>
4
4
 
5
+ <%= render 'draft_notice' unless @page.published? %>
6
+
5
7
  <% unless @page.for_blog? %>
6
8
 
7
9
  <%= raw tkhed(@page.body) %>
@@ -1,3 +1,3 @@
1
1
  module TkhContent
2
- VERSION = "0.10"
2
+ VERSION = "0.10.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_content
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.10'
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swami Atma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-07 00:00:00.000000000 Z
11
+ date: 2014-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -202,6 +202,7 @@ files:
202
202
  - app/views/contacts/show.html.erb
203
203
  - app/views/pages/_admin_context_menu.html.erb
204
204
  - app/views/pages/_blog_post_meta.html.erb
205
+ - app/views/pages/_draft_notice.html.erb
205
206
  - app/views/pages/_form.html.erb
206
207
  - app/views/pages/_individual_blog_post_in_list.html.erb
207
208
  - app/views/pages/_tab_admin_menu.html.erb