maglove-engine 2.0.11 → 2.0.12

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
  SHA1:
3
- metadata.gz: f43b7be43ac6028cd4b2f505dfeba7ed6b2790a4
4
- data.tar.gz: 559bfccca0e8f8657db4195dbad3f0d19e929083
3
+ metadata.gz: 86ae8c16c924892c56fe677e72a3b6842c65b4a7
4
+ data.tar.gz: 6ed90739d57890d17c1f7a63b6aa488c4c50419c
5
5
  SHA512:
6
- metadata.gz: b35881d7a2b73f36d93323a5055e0303ff1e6d9d70e3c1d036aded939210efd0235a9649e1e0c340110990984e91da742e19cb7025abeecffb7ed63351d276dd
7
- data.tar.gz: 9277651210e5628d22adceb874dea7bb8e3ae2ef0fa82aaee3afc60c1f189b1b976e228c17987c71444e0c483c65b96915034bfba79371dec24124188780f96a
6
+ metadata.gz: 85c74ef873611808ab6bbc291618a292736b93763d06df11b7e5a41a8cb4b3f636a2fd2c924290ecbdc5c6c0f774f76820e5ba1deed0096cb82e48497ee3f91f
7
+ data.tar.gz: d2215df45d355ba8cc355dd1eaa1073c8a558f0e3b317ae0b06fb21278b26a6a4ab654a004baff4a8bdf4afd0a93d603a263b1cca586763bb3a7e218fa68bf80
@@ -1,5 +1,5 @@
1
1
  module Maglove
2
2
  module Engine
3
- VERSION = "2.0.11"
3
+ VERSION = "2.0.12"
4
4
  end
5
5
  end
@@ -26,14 +26,18 @@ module Maglove
26
26
  def render(&block)
27
27
  super do
28
28
  haml_tag :div, card_options do
29
- haml_tag options[:title_heading_type], class: "card-title" do
30
- haml_concat(options[:"title"])
29
+ haml_tag :a, href: (options[:href] or "#") do
30
+ haml_tag options[:title_heading_type], class: "card-title" do
31
+ haml_concat(options[:"title"])
32
+ end
33
+ if options[:"subtitle"] != ""
34
+ haml_tag options[:subtitle_heading_type], class: "card-subtitle" do
35
+ haml_concat(options[:"subtitle"])
36
+ end
37
+ end
38
+ haml_tag :hr, class: "solid dark-maroon"
39
+ yield self if block_given?
31
40
  end
32
- haml_tag options[:subtitle_heading_type], class: "card-subtitle" do
33
- haml_concat(options[:"subtitle"])
34
- end
35
- haml_tag :hr, class: "solid dark-maroon"
36
- yield self if block_given?
37
41
  end
38
42
  end
39
43
  end
@@ -10,7 +10,8 @@ module Maglove
10
10
  type: "h1",
11
11
  align: "left",
12
12
  line_height: "1.3",
13
- padding: [0, 0, 8, 0]
13
+ padding: [0, 0, 8, 0],
14
+ id: nil
14
15
  }
15
16
  end
16
17
  end
@@ -27,13 +28,14 @@ module Maglove
27
28
  align: "left",
28
29
  margin_bottom: "1em",
29
30
  line_height: nil,
30
- letter_spacing: nil
31
+ letter_spacing: nil,
32
+ id: nil
31
33
  }
32
34
  end
33
35
 
34
36
  def render(&block)
35
37
  super do
36
- haml_tag :header, class: "#{options[:style]} align-#{options[:align]}", style: style_string(options, :margin, :padding) do
38
+ haml_tag :header, id: "#{options[:id]}", class: "#{options[:style]} align-#{options[:align]}", style: style_string(options, :margin, :padding) do
37
39
  haml_tag options[:type], class: "_typeloft_editable _typeloft_widget_autoselect", style: style_string(options, :line_height, :letter_spacing) do
38
40
  yield self if block_given?
39
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maglove-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.11
4
+ version: 2.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-08 00:00:00.000000000 Z
11
+ date: 2018-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml