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 +4 -4
- data/app/controllers/tramway/page/pages_controller.rb +3 -0
- data/app/decorators/tramway/page/page_decorator.rb +1 -1
- data/app/helpers/tramway/page/application_helper.rb +1 -0
- data/config/locales/models.yml +12 -0
- data/config/locales/ru.state_machines.yml +11 -0
- data/lib/tramway/page/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05c0a90c2649ccaf5926473179e912f386e20251a0ef8f9f3fab8fa61235b80a
|
4
|
+
data.tar.gz: bbdf97520c3d10ebe07a14f92f96d172cf9cee1977e1ad824bb2d1559968ff51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
15
|
+
delegate_attributes :title, :page_type, :body
|
16
16
|
|
17
17
|
decorate_association :blocks, state_machines: [:view_state]
|
18
18
|
|
data/config/locales/models.yml
CHANGED
@@ -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: страницы
|
data/lib/tramway/page/version.rb
CHANGED
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.
|
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-
|
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
|