tramway-landing 1.1 → 1.1.1

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: cd058864a8e673a0844ed5ea8658cd76a099f98b07ada97e6cd746886a7f4b51
4
- data.tar.gz: 02a1df7f3d382e6ef33f2b6c9ab0a40033ca94b5538ac1b1dc89c3cffd9e3d82
3
+ metadata.gz: ce8a0946e2951036a5e13b00dd2d7ef9530049898ace4830ffa5e9ac9877fb4e
4
+ data.tar.gz: 6594f97171b832057482d751a704b449d74b69a0561bd6220ea5b9c195a32a00
5
5
  SHA512:
6
- metadata.gz: b6375d3ce59889cc3cefe58e9dbb0fec7299dc62c6055068ce2505ecb5bad33226dee39eaa172a0a9306e3325b0cd75e48273093b5ec7748ced59599aa96c0ba
7
- data.tar.gz: cd5bf362a70462faa7c8054672f2fca26929c260eeb04a1e0b24db89288a076af829665373a736fa539883c60cf02e768635b413e7a1e73f7c4f10917f46e429
6
+ metadata.gz: 13d1c8fd12f4aa1131b7bad9a9d7672b21f5c6f2167867d9375a17840e8773f3875b7bf3b2a2093b73414d2e241792d526d4e81cdfda2b8cdaa8d95dbd6832a5
7
+ data.tar.gz: a3e27939d728b673c0d3d9b30d317d9664e9f5c2fc95137f287e65e2aca2897b9ebbc03a0883b5834301fbb2e5fc67f09440c13cffa00a85558e1997bef70864
@@ -20,8 +20,11 @@
20
20
  %main{ class: ('mt-5' if @blocks&.any?) }
21
21
  .container
22
22
  - if @blocks&.any?
23
- - (@blocks - [@blocks.header] - [@blocks.footer]).each do |block|
23
+ - array_of_blocks = (@blocks - [@blocks.header] - [@blocks.footer])
24
+ - array_of_blocks.each_with_index do |block, index|
24
25
  = render "tramway/landing/blocks/block_types/#{block.block_type}", block: block
26
+ - if index < array_of_blocks.count - 1
27
+ %hr
25
28
  .container-fluid
26
29
  = yield
27
30
  - if @blocks&.any?
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Landing
3
- VERSION = '1.1'
3
+ VERSION = '1.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-landing
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-14 00:00:00.000000000 Z
11
+ date: 2018-03-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Landing Engine for your Rails projects
14
14
  email: