cmor_tags 0.0.38.pre → 0.0.39.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/cmor/tags/application_helper.rb +0 -4
- data/app/view_helpers/cmor/tags/application_view_helper.rb +21 -0
- data/app/views/cmor/tags/application_view_helper/_render_tags_for.html.haml +4 -0
- data/app/views/cmor/tags/searchs/create.html.haml +1 -1
- data/app/views/cmor/tags/searchs/new.html.haml +1 -1
- data/config/locales/de.yml +1 -1
- data/config/locales/en.yml +1 -1
- data/config/routes.rb +1 -1
- data/db/migrate/20190301132031_add_color_to_tags.rb +0 -1
- metadata +8 -7
- data/app/views/cmor/tags/_tag_labels_for_resource.html.haml +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3192a898c447ca30089974cf0616ad6de2a6b66a5b74735be733136fb9573639
|
4
|
+
data.tar.gz: 104d7e701cc5902aa286043e995c037feb9414b7483724f23479633b75ac9980
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b2383a6835ae3c6c6d88c4a4275e98ac7be5ae214ab3364beae900f6b6bbd4688af1a7be70e373dae34d3389eca01720d9690c38149d3b4cf41913be6214ba4
|
7
|
+
data.tar.gz: bc81c789df0f424eb9da8c7c11ba3eba9d4a440fa9e15c91ce0f2c8511f98c5c1c46f2c6e50c261de8b4f1b7c91216dbd9f3c36179d1dfc39be22d36c938cf43
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Cmor
|
2
|
+
module Tags
|
3
|
+
# Example:
|
4
|
+
#
|
5
|
+
# # app/controllers/application_controller.rb
|
6
|
+
# class ApplicationController < ActionController::Base
|
7
|
+
# view_helper Cmor::Tags::ApplicationViewHelper, as: :tags_helper
|
8
|
+
# end
|
9
|
+
#
|
10
|
+
class ApplicationViewHelper < Rao::ViewHelper::Base
|
11
|
+
# Example:
|
12
|
+
#
|
13
|
+
# # app/views/posts/_post.html.haml
|
14
|
+
# = tags_helper(self).render_tags_for(post)
|
15
|
+
#
|
16
|
+
def render_tags_for(resource)
|
17
|
+
render resource: resource
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -1,2 +1,2 @@
|
|
1
|
-
= simple_form_for(@service, url:
|
1
|
+
= simple_form_for(@service, url: searchs_path) do |form|
|
2
2
|
= render partial: 'form', locals: { form: form }
|
data/config/locales/de.yml
CHANGED
data/config/locales/en.yml
CHANGED
data/config/routes.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmor_tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.39.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0.
|
33
|
+
version: 0.0.39.pre
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.0.
|
40
|
+
version: 0.0.39.pre
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: cmor_core_frontend
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.0.
|
47
|
+
version: 0.0.39.pre
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.0.
|
54
|
+
version: 0.0.39.pre
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -369,8 +369,9 @@ files:
|
|
369
369
|
- app/models/cmor/tags/search.rb
|
370
370
|
- app/models/cmor/tags/tag.rb
|
371
371
|
- app/models/cmor/tags/tagging.rb
|
372
|
+
- app/view_helpers/cmor/tags/application_view_helper.rb
|
372
373
|
- app/views/cmor/tags/_search_box.html.haml
|
373
|
-
- app/views/cmor/tags/
|
374
|
+
- app/views/cmor/tags/application_view_helper/_render_tags_for.html.haml
|
374
375
|
- app/views/cmor/tags/searchs/_form.html.haml
|
375
376
|
- app/views/cmor/tags/searchs/create.html.haml
|
376
377
|
- app/views/cmor/tags/searchs/new.html.haml
|