tkh_content 0.10.7 → 0.10.8

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: 55391869340e129ff0ab0c1c0da3d4edf682240d
4
- data.tar.gz: bab8e99e206689e2fe6ab863a6cef46ed72c1b25
3
+ metadata.gz: a039c78252b4dcac496cece0484e88cd4d4f2fbd
4
+ data.tar.gz: a51ec85ae90d7d974dc206c495114e4daad9b0fa
5
5
  SHA512:
6
- metadata.gz: 1a241b5f3496fe18c4b585119059ad05d3127ed3111fc8c708c3593e5a404fd71a514f59cf976cf11c5a583bc4273752575dd6a71e671bbf0068aa49ced55958
7
- data.tar.gz: bb2fc414805a838d3971055efd899ac0028bbbb76873fd46f0fddae1731db487a4f2660d3f49e60aba41eb2ba077c99c1e8abec89302fdbda6171e5a8d063e98
6
+ metadata.gz: 7eedaca2cb4930ded6389727b41f421391fe526c1593bf9a395a5166ca9e6864ac2fd3c0ab2e041369f755c9040b241cd5fd12a19e6c8b495ff77b53f22e643b
7
+ data.tar.gz: 1ee8f8464ceb64113be46a5f267223bb91ad806a080e5389481f5afeeebd66faac565046f037f7a810b39bd819df137254433f8da256c476d62c6287d422be49
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.10.8
6
+
7
+ * Added glyphicons to actions in index views.
8
+ * Removed unnecessary parent_id symbol in pages protected attributes.
9
+
10
+
5
11
  ## 0.10.7
6
12
 
7
13
  * Debugged blog#by_tag method and view when there were no posts for a specific tag. Can happen with a non-translated bi-lingual post.
@@ -93,7 +93,7 @@ class PagesController < ApplicationController
93
93
 
94
94
  # Never trust parameters from the scary internet, only allow the white list through.
95
95
  def page_params
96
- params.require(:page).permit(:title, :short_title, :description, :body, :for_blog, :parent_id, :tag_list, :parent_page_title, :author_name)
96
+ params.require(:page).permit( :title, :short_title, :description, :body, :for_blog, :tag_list, :parent_page_title, :author_name )
97
97
  end
98
98
 
99
99
  end
@@ -30,7 +30,7 @@
30
30
  <%= f.input :description, label: t('activerecord.attributes.pages.description'), :input_html => { cols: 45, rows: 3 } %>
31
31
  <%= f.input :body, label: t('activerecord.attributes.pages.body'), :input_html => { :rows => 35, :class => 'ckeditor' } %>
32
32
 
33
- <% if controller.action_name == 'edit' # the current_user is the page creator in create method %>
33
+ <% if controller.action_name == 'edit' # the current_user is the page creator in create method but can be changed in update method %>
34
34
  <%= f.input :author_name,
35
35
  as: :string,
36
36
  :wrapper_html => { :id => 'author-name' },
@@ -40,7 +40,7 @@
40
40
  :autocomplete => 'off',
41
41
  :data => { source: User.administrators.alphabetically.map(&:formal_name).to_json }
42
42
  } %>
43
- <% end -%>
43
+ <% end %>
44
44
 
45
45
  <%= f.button :submit, :class => 'btn btn-primary' %>
46
46
 
@@ -33,7 +33,7 @@
33
33
  <% end -%>
34
34
  </td>
35
35
  <td>
36
- <%= link_to t('edit'), edit_page_path(page), class: 'btn btn-xs btn-default' %><%= link_to t('delete'), page, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-xs btn-danger' %>
36
+ <%= link_to "<span class='glyphicon glyphicon-pencil'></span>".html_safe, edit_page_path(page), class: 'btn btn-xs btn-default', title: t('edit') %><%= link_to "<span class='glyphicon glyphicon-trash'></span>".html_safe, page, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-xs btn-danger', title: t('delete') %>
37
37
  </td>
38
38
  </tr>
39
39
  <% end %>
@@ -1,12 +1,8 @@
1
1
  <%= simple_form_for @tag, :html => { class: 'form-horizontal', role: 'form' } do |f| %>
2
2
  <%= f.error_notification %>
3
-
4
3
  <%= f.input :name,
5
4
  label: t('activerecord.attributes.tags.name'),
6
5
  hint: t('tags.hint.name'),
7
6
  input_html: { size: 45 } %>
8
-
9
- <br />
10
7
  <%= f.button :submit, :class => 'btn btn-primary' %>
11
-
12
8
  <% end %>
@@ -12,7 +12,7 @@
12
12
  <% @tags.each do |tag| %>
13
13
  <tr>
14
14
  <td><%= link_to ("#{tag.name} (#{tag.taggings.count})"), blog_by_tag_path(tag.name) %></td>
15
- <td><%= link_to t('edit'), edit_tag_path(tag), class: 'btn btn-xs btn-default' %><%= link_to( t('delete'), tag, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-xs btn-danger') if tag.taggings.count == 0 %></td>
15
+ <td><%= link_to "<span class='glyphicon glyphicon-pencil'></span> #{t('edit')}".html_safe, edit_tag_path(tag), class: 'btn btn-xs btn-default' %><%= link_to( "<span class='glyphicon glyphicon-trash'></span>".html_safe, tag, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-xs btn-danger', title: t('delete')) if tag.taggings.count == 0 %></td>
16
16
  </tr>
17
17
  <% end %>
18
18
  </tbody>
@@ -1,3 +1,3 @@
1
1
  module TkhContent
2
- VERSION = "0.10.7"
2
+ VERSION = "0.10.8"
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.7
4
+ version: 0.10.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swami Atma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-22 00:00:00.000000000 Z
11
+ date: 2015-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails