ksk 0.4.2 → 0.4.3
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 +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/app/models/concerns/ksk/asset.rb +1 -1
- data/app/views/bhf/platform/_navigation_tree.haml +5 -5
- data/ksk.gemspec +5 -5
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47d5c6de9bd37e3a3159ae6489b2a878dea863be
|
4
|
+
data.tar.gz: 2190816e04c6f442b2d8cd0c9def23b2994221d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa0127043be295103cab559e03082970bc5997fb5036cb0e654bd06af68347ec5d714e9c661496948e146f72c6e291bf177736f908937484b3147cca0ceb1157
|
7
|
+
data.tar.gz: b78de6efb71e86b7b9bd66bf284878baa80c1e689678b051b6bfe274dd52a14676c56eeee4c48438156085706d36e5468860e1a012915893984ffda3038b42ae
|
data/Gemfile.lock
CHANGED
@@ -29,7 +29,7 @@ GEM
|
|
29
29
|
tzinfo (~> 1.1)
|
30
30
|
addressable (2.3.6)
|
31
31
|
arel (5.0.1.20140414130214)
|
32
|
-
bhf (0.9.
|
32
|
+
bhf (0.9.7)
|
33
33
|
haml-rails (~> 0.4)
|
34
34
|
kaminari (~> 0.16)
|
35
35
|
rails (~> 4)
|
@@ -144,7 +144,7 @@ GEM
|
|
144
144
|
shoulda-context (1.2.1)
|
145
145
|
shoulda-matchers (2.6.1)
|
146
146
|
activesupport (>= 3.0.0)
|
147
|
-
simplecov (0.
|
147
|
+
simplecov (0.9.0)
|
148
148
|
docile (~> 1.1.0)
|
149
149
|
multi_json
|
150
150
|
simplecov-html (~> 0.8.0)
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ Blog/Website management plugin for [bhf](http://antpaw.github.io/bhf/).
|
|
6
6
|
## Usage
|
7
7
|
|
8
8
|
* The abstract [settings `.yml`](https://github.com/antpaw/ksk/tree/master/config/bhf/ksk.yml)
|
9
|
-
([learn how to use it in your own settings `.yml`](
|
9
|
+
([learn how to use it in your own settings `.yml`](http://antpaw.github.io/bhf/#abstract_platform_settings))
|
10
10
|
* Include this [concerns](https://github.com/antpaw/ksk/tree/master/app/models/concerns/ksk) to your models.
|
11
11
|
* Use this [partials](https://github.com/antpaw/ksk/tree/master/app/views/bhf), for example to crop paperclip images.
|
12
12
|
|
data/Rakefile
CHANGED
@@ -16,8 +16,8 @@ Jeweler::Tasks.new do |gem|
|
|
16
16
|
gem.name = 'ksk'
|
17
17
|
gem.homepage = 'http://github.com/antpaw/ksk'
|
18
18
|
gem.licenses = 'MIT'
|
19
|
-
gem.summary = '
|
20
|
-
gem.description = '
|
19
|
+
gem.summary = 'Blog/Website management plugin for bhf'
|
20
|
+
gem.description = 'Blog/Website management plugin for bhf. Includes abstract settings .yml, model concerns and bhf view partials.'
|
21
21
|
gem.email = 'anton.pawlik@gmail.com'
|
22
22
|
gem.authors = ['Anton Pawlik']
|
23
23
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
@@ -1,12 +1,12 @@
|
|
1
1
|
:ruby
|
2
|
-
def p_recursive_navi(navis, current_level = 0, max_level = 99, ul = 'ul', first_wrap = '')
|
2
|
+
def p_recursive_navi(navis, platform, current_level = 0, max_level = 99, ul = 'ul', first_wrap = '')
|
3
3
|
a = "\n <#{ul}#{first_wrap}>\n"
|
4
4
|
navis.each do |navi|
|
5
5
|
x = link_to 'edit', edit_entry_path('navigation', navi), class: 'edit icon'
|
6
|
-
y = link_to 'delete', entry_path('navigation', navi), method: :delete, confirm: t('bhf.helpers.promts.confirm'), class: 'delete icon'
|
6
|
+
y = link_to 'delete', entry_path('navigation', navi), method: :delete, confirm: t('bhf.helpers.promts.confirm', platform_title: platform.title_singular), class: 'delete icon'
|
7
7
|
a += " <li id='navigation_#{navi.id}'><div><span class='title'>#{navi.title}</span> <span class='links'>#{x} #{y}</span></div>"
|
8
8
|
if current_level <= max_level and navi.children.any?
|
9
|
-
a += p_recursive_navi(navi.children, current_level+1, max_level, ul)
|
9
|
+
a += p_recursive_navi(navi.children, platform, current_level+1, max_level, ul)
|
10
10
|
end
|
11
11
|
a += "</li> "
|
12
12
|
end
|
@@ -25,8 +25,8 @@
|
|
25
25
|
|
26
26
|
.content_box
|
27
27
|
.navi.js_tree_holder{data: {:'update-url' => ksk.sort_navigations_path}}
|
28
|
-
= p_recursive_navi(Navigation.top_level, 0, 99, 'ol', ' class="multi_grid js_tree_list"').html_safe
|
28
|
+
= p_recursive_navi(Navigation.top_level, platform, 0, 99, 'ol', ' class="multi_grid js_tree_list"').html_safe
|
29
29
|
|
30
30
|
.template_data.hide{data: {:'update-path' => ksk.navigations_path, :'prompt-question' => I18n.t('ksk.navigation_sort.prompt_question')}}
|
31
31
|
= link_to 'edit', edit_entry_path('navigation', 'NAVIID'), class: 'edit icon'
|
32
|
-
= link_to 'delete', entry_path('navigation', 'NAVIID'), method: :delete, data: {confirm: t('bhf.helpers.promts.confirm')}, class: 'delete icon'
|
32
|
+
= link_to 'delete', entry_path('navigation', 'NAVIID'), method: :delete, data: {confirm: t('bhf.helpers.promts.confirm', platform_title: platform.title_singular)}, class: 'delete icon'
|
data/ksk.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: ksk 0.4.
|
5
|
+
# stub: ksk 0.4.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "ksk"
|
9
|
-
s.version = "0.4.
|
9
|
+
s.version = "0.4.3"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Anton Pawlik"]
|
14
|
-
s.date = "2014-07-
|
15
|
-
s.description = "
|
14
|
+
s.date = "2014-07-17"
|
15
|
+
s.description = "Blog/Website management plugin for bhf. Includes abstract settings .yml, model concerns and bhf view partials."
|
16
16
|
s.email = "anton.pawlik@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
18
18
|
"LICENSE.txt",
|
@@ -59,7 +59,7 @@ Gem::Specification.new do |s|
|
|
59
59
|
s.homepage = "http://github.com/antpaw/ksk"
|
60
60
|
s.licenses = ["MIT"]
|
61
61
|
s.rubygems_version = "2.2.2"
|
62
|
-
s.summary = "
|
62
|
+
s.summary = "Blog/Website management plugin for bhf"
|
63
63
|
|
64
64
|
if s.respond_to? :specification_version then
|
65
65
|
s.specification_version = 4
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ksk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Pawlik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bhf
|
@@ -122,7 +122,8 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0.8'
|
125
|
-
description:
|
125
|
+
description: Blog/Website management plugin for bhf. Includes abstract settings .yml,
|
126
|
+
model concerns and bhf view partials.
|
126
127
|
email: anton.pawlik@gmail.com
|
127
128
|
executables: []
|
128
129
|
extensions: []
|
@@ -189,5 +190,5 @@ rubyforge_project:
|
|
189
190
|
rubygems_version: 2.2.2
|
190
191
|
signing_key:
|
191
192
|
specification_version: 4
|
192
|
-
summary:
|
193
|
+
summary: Blog/Website management plugin for bhf
|
193
194
|
test_files: []
|