tramway-page 1.5.2.2 → 1.5.2.3

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: 96b1ae2a8b423cb0ae418f9fccd656d66901d190ea2f9fb39a44fab689ca4d83
4
- data.tar.gz: d707eb684b457faa3598b01ea4a1ab4d6ed3c07e2ecae856f9731bbcac0a651a
3
+ metadata.gz: dadbf76abac2d01e0c807eb772495363c2d449318ccbd55766f7e0c8d48db44f
4
+ data.tar.gz: 04e89dd00dff29fb2819beeb16cc20e098c725f70229aef25cbaf66dc47a8fed
5
5
  SHA512:
6
- metadata.gz: 0227d19a2abe12b442831ccc8aa5bf7c5918d870ebef7d1d07078a8c0c71e9cb3ac6853996f947ca1942cec86030485d20f6e12d13553145862354fef3bd40b9
7
- data.tar.gz: eeee0211244598790d57ea636865d97f379c1f97cf955002d669db255d851550555bb42e9113a2947fe71c5c242cfb9c0d2b97ce325c4f07cc13983674efc6d2
6
+ metadata.gz: 8610dffec0bd17dfbc2425fd3302542b350b87295953245f4181661c97b33d8e87711727f3e798ef584aada18a0a5d8bbb848f3cea9b1b198b1c4a0a0aa3cddb
7
+ data.tar.gz: 754725fd6aead52ea03ee1b44140bf0391e67e7d97f343ab10e0708d671a843238e9c04bffad6067da98db62303a462d2ee9c1637a636700cff7eb5fdbc3fb0f
@@ -5,9 +5,10 @@ class ::Tramway::Page::PagesController < ::Tramway::Page::ApplicationController
5
5
 
6
6
  def show
7
7
  @page = ::Tramway::Page::Page.published.find_by slug: params[:slug]
8
+ binding.pry
8
9
  @blocks = @page.blocks.published.active.map do |block|
9
10
  if block.block_type.header_with_form? && block.form_url.present?
10
- # FIXME in future
11
+ # FIXME: in future
11
12
  @header_with_form = block.form_to_render.new(Tramway::Auth.authenticable_models.first.new, page: @page.id)
12
13
  end
13
14
  ::Tramway::Landing::BlockDecorator.decorate block
@@ -3,14 +3,14 @@
3
3
  class ::Tramway::Page::PreviewsController < ::Tramway::Page::ApplicationController
4
4
  include Tramway::AuthManagement
5
5
  layout 'tramway/landing/application'
6
-
6
+
7
7
  before_action :authenticate_admin!
8
8
 
9
9
  def show
10
10
  @page = ::Tramway::Page::Page.find params[:id]
11
11
  @blocks = @page.blocks.active.map do |block|
12
12
  if block.block_type.header_with_form? && block.form_url.present?
13
- # FIXME in future
13
+ # FIXME: in future
14
14
  @header_with_form = block.form_to_render.new(Tramway::Auth.authenticable_models.first.new, page: @page.id)
15
15
  end
16
16
  ::Tramway::Landing::BlockDecorator.decorate block
@@ -25,9 +25,7 @@ class Tramway::Page::PageDecorator < ::Tramway::Core::ApplicationDecorator
25
25
  end
26
26
 
27
27
  def public_path
28
- if object.published?
29
- Tramway::Page::Engine.routes.url_helpers.page_path slug: object.slug
30
- end
28
+ Tramway::Page::Engine.routes.url_helpers.page_path slug: object.slug if object.published?
31
29
  end
32
30
 
33
31
  def view_state_button_color(event)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Page
5
- VERSION = '1.5.2.2'
5
+ VERSION = '1.5.2.3'
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.2.2
4
+ version: 1.5.2.3
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-04-13 00:00:00.000000000 Z
11
+ date: 2020-04-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Description of Tramway::Page.
14
14
  email: