tramway-page 1.5.3.1 → 1.5.3.2

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: 41a182227b590ad2a0a3cbc32e8d2487d522b5cd250eeff2d2c6c4237d584c00
4
- data.tar.gz: cd218be36fab082a5785f9a995ea4c5ab672d3741c442245f88934a7edd3fd79
3
+ metadata.gz: 05c0a90c2649ccaf5926473179e912f386e20251a0ef8f9f3fab8fa61235b80a
4
+ data.tar.gz: bbdf97520c3d10ebe07a14f92f96d172cf9cee1977e1ad824bb2d1559968ff51
5
5
  SHA512:
6
- metadata.gz: 04be16a8244e0d39d17e431d81452de1336eb1bebcf97807e9dc665a011dd82c59e2e687963e93952957ab27c73d53a703c9f71988b0a3ed5243dbbd0e68b378
7
- data.tar.gz: 5b6be862e80d6fdb5c59afe9e6c54f97fd9a916de0d901ed2c28b2139da6c621308c26b47ac71581b95bd8016cb4154eb0c4db170e76c1fd1a2aaf718896f93e
6
+ metadata.gz: 6cba87a2205e172f23f9aa0c227cf0beeafe9790130c3697248048066f8b334ccc207d5a8aec8010013ee0b7fdb64bce8ab23544035302c34c9ad8bb68803593
7
+ data.tar.gz: b452c345e91605a2c81ff22e81331e257609c03ea142890c7d55f9ee9855cced8470c30696a9df4f82a2cc7394808ea41fa70e721a891b0fea068cc7a7206bff
@@ -10,6 +10,9 @@ class ::Tramway::Page::PagesController < ::Tramway::Page::ApplicationController
10
10
  # FIXME: in future
11
11
  @header_with_form = block.form_to_render.new(Tramway::Auth.authenticable_models.first.new, page: @page.id)
12
12
  end
13
+ if block.block_type.in? [ :header, :header_with_form ]
14
+ @links = Tramway::Landing::BlockLinkDecorator.decorate @page.with_navbar_link.active
15
+ end
13
16
  ::Tramway::Landing::BlockDecorator.decorate block
14
17
  end
15
18
  end
@@ -12,7 +12,7 @@ class Tramway::Page::PageDecorator < ::Tramway::Core::ApplicationDecorator
12
12
  delegate :human_view_state_event_name, to: :model_class
13
13
  end
14
14
 
15
- delegate :title, to: :object
15
+ delegate_attributes :title, :page_type, :body
16
16
 
17
17
  decorate_association :blocks, state_machines: [:view_state]
18
18
 
@@ -3,6 +3,7 @@
3
3
  module Tramway
4
4
  module Page
5
5
  module ApplicationHelper
6
+ include Tramway::Landing::ApplicationHelper
6
7
  end
7
8
  end
8
9
  end
@@ -5,6 +5,18 @@ ru:
5
5
  attributes:
6
6
  tramway/page/page:
7
7
  blocks: Блоки
8
+ name: Название
9
+ title: Название
10
+ body: Контент
11
+ slug: Идентификатор (slug)
12
+ view: Представление
13
+ page_type: Тип страницы
14
+ view_state: Видимость на сайте
15
+ enumerize:
16
+ tramway/page/page:
17
+ page_type:
18
+ main: Главная Страница
19
+ other: Другое
8
20
  cases:
9
21
  tramway/page/page:
10
22
  plural: страницы
@@ -0,0 +1,11 @@
1
+ ru:
2
+ activerecord:
3
+ state_machines:
4
+ tramway/page/page:
5
+ view_state:
6
+ states:
7
+ published: Видена
8
+ unpublished: Скрыта
9
+ events:
10
+ publish: Показать на сайте
11
+ hide: Скрыть с сайта
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Page
5
- VERSION = '1.5.3.1'
5
+ VERSION = '1.5.3.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-page
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3.1
4
+ version: 1.5.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-05 00:00:00.000000000 Z
11
+ date: 2020-05-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Description of Tramway::Page.
14
14
  email:
@@ -38,6 +38,7 @@ files:
38
38
  - app/views/tramway/page/shared/_main_page_view.html.haml
39
39
  - config/initializers/tramway.rb
40
40
  - config/locales/models.yml
41
+ - config/locales/ru.state_machines.yml
41
42
  - config/routes.rb
42
43
  - lib/tasks/tramway/page_tasks.rake
43
44
  - lib/tramway/page.rb