tramway-landing 1.2.20 → 1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3389eabf1115488f344d16399d1869f859eae18051288a729a3058030df55749
4
- data.tar.gz: 5f255707ffed5454db78c852d50b088f365820ea3b072fbf00c7e4e8f625defc
3
+ metadata.gz: 62eef85a9ae8e39a81586f911c559952e6dbd8ccef648d1e9907141678f79cc4
4
+ data.tar.gz: 267904745078f6bb221b7bf08724fe417b72ffe3a422632e8185592e28ca3007
5
5
  SHA512:
6
- metadata.gz: d174f63207b209593e84ee8bb15e519fd4d04ec4eaab0676b9426be7a81c7af159e20df23468eda04b8c74f8517bbcdc8b3da392f24290e2d69f203a48b34988
7
- data.tar.gz: 936d883e54f021c00dacac6343d35622a07b80cdf96e148326c7cd42c002bd6b49d2ccb27a9a215063cf91c7e8f9d6575c273827385bfa5773c941231677cc38
6
+ metadata.gz: 02a149ef826544adb0426fd7d1750713211e33a20eeb2bce9b41f19a3cc9b130f2eebb232c521e745633b1881c996f518bd1cbde200d283082bd4732b5e001c2
7
+ data.tar.gz: b85a60f327af5a8b8d29335479b677d050bb9224416870996e7fef299139a52c07b263a485dafa6e4cde27e68b0328b9e180cb3a938db645fb2555386e2ef292
@@ -23,7 +23,7 @@
23
23
  - other_blocks = @blocks - headers - footers
24
24
  -# FIXME
25
25
  = render "tramway/landing/blocks/block_types/header", block: headers.first
26
- %main{ class: ('mt-5' if @blocks&.any?) }
26
+ %main.mt-5
27
27
  .container
28
28
  - other_blocks.each_with_index do |block, index|
29
29
  = render "tramway/landing/blocks/block_types/#{block.model.block_type}", block: block
@@ -4,13 +4,17 @@
4
4
  .row
5
5
  .col-md-6
6
6
  %h5.title
7
- = yield :application_name
7
+ = @application.title
8
8
  %p
9
- = yield :application_tagline
9
+ = @application.tagline
10
10
  .logo_collage.effect-parent
11
11
  = yield :footer_logos
12
12
  .col-md-6
13
13
  = yield :footer_links
14
14
  .footer-copyright
15
15
  .container-fluid
16
- = link_to copyright(2018, yield(:application_name)), yield(:application_url)
16
+ - external_url = if @application.url.present?
17
+ - @application.url.include?('http') || @application.url.include?('https') ? @application.url : "http://#{@application.url}"
18
+ - else
19
+ - ''
20
+ = link_to copyright(@application&.found_date&.year || DateTime.now.year, @application.title), external_url
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Landing
3
- VERSION = '1.2.20'
3
+ VERSION = '1.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-landing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.20
4
+ version: '1.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov