promethee 1.4.5 → 1.4.6

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
  SHA1:
3
- metadata.gz: bcf6669cacfb03d3549aa918457aed0b1199fb26
4
- data.tar.gz: cf7d853ef7b6e40e719a97e50275697abb9cedc7
3
+ metadata.gz: 61dfa7324fe87fed4cdbda38590a45010feec702
4
+ data.tar.gz: a24d477622a38066a9ad23d6e2433de3477192c2
5
5
  SHA512:
6
- metadata.gz: 66a77489c558ac4a3378e209c8a7c0f4de124a9315c7833b9c016adb99bbe6f04d8e543fafb10fb88541c761ac48b954c0aaa2559f0fda96d1e13381f08fe4be
7
- data.tar.gz: 49751db2ba3399a7eae46a8f91caa925f77c2d629e4c0ccbd4279481b31ba54d5c9535bfa32d69c9b9c2cf3a4f82c2f7cf2bcbb2d6c8c098b9594504efc2e4d4
6
+ metadata.gz: e8cdedd2a03fc4579acdbf0ef92451d2b1af7b43266bc09294ea5b662b1d2a4c2af9100f1748ff12170e9622598fc9d3f9a8d30d20fb0877fa4a45759bcceda1
7
+ data.tar.gz: a61a440ac6eb1b7a352c020f15c1d6b29f67ef9c7f492372436fbf021286eefc834245e7e55b8537b1945a8d472e95ceb79aa4d908368a9220b0eba016c0425f
@@ -1,10 +1,11 @@
1
1
  <%
2
- src = component[:attributes][:src].to_s
2
+ blob_id = component[:attributes][:blob][:id]
3
+ blob = ActiveStorage::Blob.find blob_id if blob_id
3
4
  surtitle = component[:attributes][:surtitle].to_s
4
5
  title = component[:attributes][:title].to_s
5
6
  subtitle = component[:attributes][:subtitle].to_s
6
7
  %>
7
- <div class="<%= promethee_class_for(component) %>" style="background-image: url(<%= src %>)">
8
+ <div class="<%= promethee_class_for(component) %>" style="background-image: url(<%= url_for(blob.variant(resize: '1920')) if blob %>)">
8
9
  <hgroup>
9
10
  <% unless surtitle.blank? %><h2><%= surtitle %></h2><% end %>
10
11
  <% unless title.blank? %><h1><%= title %></h1><% end %>
@@ -18,8 +18,6 @@
18
18
  $scope.components = $scope.component.children;
19
19
 
20
20
  $scope.$watch('component.children.length', function() {
21
- console.log('watch');
22
-
23
21
  var keys = $scope.component.children.map(function(component) {
24
22
  return 'content-' + component.id;
25
23
  });
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.4.5'
3
+ VERSION = '1.4.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promethee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Dargelos