cmor_blog_backend 0.0.44.pre → 0.0.45.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6ca1f4f793c76a20a95643a169c5273507ec1c8c9c9cf1862fd6de87e846433
4
- data.tar.gz: 752a2637d05936aac0454004f94ccbbd4e864556073a73109867285243a11fb0
3
+ metadata.gz: dbda62409c429195f3e919354a50527e9fce88d708052465abdda976d77d25eb
4
+ data.tar.gz: 7e1d7e15588483adf3229e4dd39b942f7ce0b158ac87b826017be912f0d04d29
5
5
  SHA512:
6
- metadata.gz: 4d7bd0e4866a0ce5210a47de7acc63ff9b009061b03a6ad7ce86fabb2ab7d230affc207b2d0aa53d0c9123ea03aec34ad7faf9c34963c5fc18a700698adcfb4d
7
- data.tar.gz: c4d98faf6ec364dfc83920f881a559d5cb3fdb594ac59fdd871a4f103c813c10cfd0cc51e244d9656e194dba4da2fc15657b46f4d94adc7f6141fe099b4be337
6
+ metadata.gz: dc27138e5f317737997aff08cc99a9347a61e872d57309c1e3bf410d69e10db96abcf89b929486de0600eb489c76c1b06863ee655f97d7c43559708ee7be4044
7
+ data.tar.gz: 8acfc9ffb7d2179945fdd05f46db052dc6445120c5fa32faf503753df787fceef28e951959694654f139f83c0471f21e8750843b3f7fe0e05130d2a7f58aab23
@@ -41,7 +41,7 @@ module Cmor
41
41
  end
42
42
 
43
43
  def permitted_params
44
- params.require(:post).permit(:title, :body, :published, :tag_list, assets: [], append_assets: [], overwrite_assets: [])
44
+ params.require(:post).permit(:locale, :title, :body, :published, :tag_list, assets: [], append_assets: [], overwrite_assets: [])
45
45
  end
46
46
  end
47
47
  end
@@ -1,6 +1,7 @@
1
1
  .bottom-margin-1
2
- = "#{Cmor::Blog::Post.human_attribute_name(:creator)}: #{form.object.creator.send(Cmor::Blog::Configuration.creator_label_method_name) }"
2
+ = "#{Cmor::Blog::Post.human_attribute_name(:creator)}: #{administrador_helper(self).label_for(form.object.creator)}"
3
3
 
4
+ = form.input :locale, collection: I18n.available_locales.map(&:to_s)
4
5
  = form.input :title
5
6
  = form.input :body
6
7
  = form.input :published, as: :boolean
@@ -1,9 +1,10 @@
1
1
  = table.acts_as_list_actions
2
+ = table.column :locale, sort: true
2
3
  = table.column :title, sort: true
3
4
  = table.column :body, sort: true do |resource|
4
5
  - resource.body[0..100]
5
6
  = table.column :asset_details_count
6
- = table.association :creator, label_method: ->(r) { r.send(Cmor::Blog::Configuration.creator_label_method_name) }
7
- = table.association :updater, label_method: ->(r) { r.send(Cmor::Blog::Configuration.creator_label_method_name) }
7
+ = table.association :creator, label_method: ->(r) { administrador_helper(self).label_for(r) }
8
+ = table.association :updater, label_method: ->(r) { administrador_helper(self).label_for(r) }
8
9
  = table.timestamps sort: true
9
10
  = table.acts_as_published_actions
@@ -1,2 +1,3 @@
1
+ = form.input :locale_eq, collection: I18n.available_locales.map(&:to_s)
1
2
  = form.input :title_cont
2
3
  = form.input :body_cont
@@ -1,9 +1,10 @@
1
+ = table.row :locale
1
2
  = table.row :title
2
3
  = table.row :body
3
4
  - if Cmor::Core.features?(:cmor_tags)
4
5
  = table.row(:tags) do |resource|
5
6
  - tag_labels_for(resource)
6
- = table.association :creator, label_method: ->(r) { r.send(Cmor::Blog::Configuration.creator_label_method_name) }
7
- = table.association :updater, label_method: ->(r) { r.send(Cmor::Blog::Configuration.creator_label_method_name) }
8
- = table.timestamp :published_at, format: :short
9
- = table.timestamps format: :short
7
+ = table.association :creator, label_method: ->(r) { administrador_helper(self).label_for(r) }
8
+ = table.association :updater, label_method: ->(r) { administrador_helper(self).label_for(r) }
9
+ = table.timestamp :published_at
10
+ = table.timestamps
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmor_blog_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.44.pre
4
+ version: 0.0.45.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: 2020-01-29 00:00:00.000000000 Z
11
+ date: 2020-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.0
19
+ version: 5.2.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 5.2.0
26
+ version: 5.2.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cmor_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.44.pre
33
+ version: 0.0.45.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.44.pre
40
+ version: 0.0.45.pre
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cmor_core_backend
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.44.pre
47
+ version: 0.0.45.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.44.pre
54
+ version: 0.0.45.pre
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -324,14 +324,14 @@ dependencies:
324
324
  requirements:
325
325
  - - '='
326
326
  - !ruby/object:Gem::Version
327
- version: 0.0.44.pre
327
+ version: 0.0.45.pre
328
328
  type: :runtime
329
329
  prerelease: false
330
330
  version_requirements: !ruby/object:Gem::Requirement
331
331
  requirements:
332
332
  - - '='
333
333
  - !ruby/object:Gem::Version
334
- version: 0.0.44.pre
334
+ version: 0.0.45.pre
335
335
  description: Cmor::Blog::Backend Module.
336
336
  email:
337
337
  - roberto@vasquez-angel.de
@@ -360,7 +360,6 @@ files:
360
360
  - app/views/cmor/blog/backend/posts/_index_table.html.haml
361
361
  - app/views/cmor/blog/backend/posts/_query_form.html.haml
362
362
  - app/views/cmor/blog/backend/posts/_show_table.html.haml
363
- - app/views/layouts/cmor/blog/backend/application.html.erb
364
363
  - config/initializers/assets.rb
365
364
  - config/initializers/cmor.rb
366
365
  - config/locales/de.yml
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Backend</title>
5
- <%= stylesheet_link_tag "cmor/blog/backend/application", media: "all" %>
6
- <%= javascript_include_tag "cmor/blog/backend/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>