tkh_content 0.10.7 → 0.10.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/controllers/pages_controller.rb +1 -1
- data/app/views/pages/_form.html.erb +2 -2
- data/app/views/pages/index.html.erb +1 -1
- data/app/views/tags/_form.html.erb +0 -4
- data/app/views/tags/index.html.erb +1 -1
- data/lib/tkh_content/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a039c78252b4dcac496cece0484e88cd4d4f2fbd
|
4
|
+
data.tar.gz: a51ec85ae90d7d974dc206c495114e4daad9b0fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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, :
|
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
|
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(
|
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>
|
data/lib/tkh_content/version.rb
CHANGED
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.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-
|
11
|
+
date: 2015-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|