promethee 1.3.18 → 1.3.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/promethee.sass +3 -2
- data/app/views/promethee/components/cover/_edit.inspect.html.erb +12 -2
- data/app/views/promethee/components/cover/_edit.move.html.erb +6 -2
- data/app/views/promethee/components/cover/_show.html.erb +10 -3
- data/app/views/promethee/edit/_move.html.erb +2 -0
- data/lib/promethee/rails/helper.rb +1 -1
- data/lib/promethee/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a56f111f76def165a4e5e48afc9a656fa0f8c3dd
|
4
|
+
data.tar.gz: 25eb7832b2c979c9327a5375e7ac761d4058cce4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98a568797c195f0a2b2768639b2ba891125f99fb2789053e3bcfe870bca23850b7bf4a9c0d60bec26bf7537bf02594dfe4c65089e24e7061a4995cfce6b56b47
|
7
|
+
data.tar.gz: f7d71bcc5c108f7d8c2d83ffa900082a37164a6b0c5902118e384e9c2fc596cf9694ca4005117079c0f262f4d8b3676e5e6057fd61851fa3948085f498112017
|
@@ -1,12 +1,13 @@
|
|
1
1
|
.promethee
|
2
2
|
&__component
|
3
|
-
|
3
|
+
&__cover
|
4
4
|
background-repeat: no-repeat
|
5
5
|
background-position: center center
|
6
6
|
background-size: cover
|
7
7
|
padding: 150px 30px
|
8
|
+
min-height: 300px
|
8
9
|
|
9
|
-
|
10
|
+
&__slider
|
10
11
|
.promethee__component
|
11
12
|
margin-bottom: 0
|
12
13
|
.fontawesome-carousel-control .fa
|
@@ -5,7 +5,17 @@
|
|
5
5
|
</div>
|
6
6
|
|
7
7
|
<div class="form-group">
|
8
|
-
<label class="label-control">
|
9
|
-
<
|
8
|
+
<label class="label-control">Surtitle</label>
|
9
|
+
<input ng-model="promethee.inspected.attributes.surtitle" class="form-control" type="text"/>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<div class="form-group">
|
13
|
+
<label class="label-control">Title</label>
|
14
|
+
<input ng-model="promethee.inspected.attributes.title" class="form-control" type="text"/>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div class="form-group">
|
18
|
+
<label class="label-control">Subtitle</label>
|
19
|
+
<input ng-model="promethee.inspected.attributes.subtitle" class="form-control" type="text"/>
|
10
20
|
</div>
|
11
21
|
</script>
|
@@ -2,8 +2,12 @@
|
|
2
2
|
<%= render 'promethee/edit/move.header', type: 'cover' %>
|
3
3
|
<div class=" promethee-edit__wrapper
|
4
4
|
promethee-edit__cover-content"
|
5
|
-
|
6
|
-
|
5
|
+
style="background-image: url('{{component.attributes.src}}')">
|
6
|
+
<hgroup>
|
7
|
+
<p class="surtitle">{{component.attributes.surtitle}}</p>
|
8
|
+
<h1>{{component.attributes.title}}</h1>
|
9
|
+
<h2>{{component.attributes.subtitle}}</h2>
|
10
|
+
</hgroup>
|
7
11
|
</div>
|
8
12
|
</div>
|
9
13
|
</div>
|
@@ -1,6 +1,13 @@
|
|
1
1
|
<%
|
2
2
|
src = component[:attributes][:src].to_s
|
3
|
-
|
3
|
+
surtitle = component[:attributes][:surtitle].to_s
|
4
|
+
title = component[:attributes][:title].to_s
|
5
|
+
subtitle = component[:attributes][:subtitle].to_s
|
4
6
|
%>
|
5
|
-
|
6
|
-
|
7
|
+
<div class="<%= promethee_class_for(component) %>" style="background-image: url(<%= src %>)">
|
8
|
+
<hgroup>
|
9
|
+
<% unless surtitle.blank? %><p class="surtitle"><%= surtitle %></p><% end %>
|
10
|
+
<% unless title.blank? %><h1><%= title %></h1><% end %>
|
11
|
+
<% unless subtitle.blank? %><h2><%= subtitle %></h2><% end %>
|
12
|
+
</hgroup>
|
13
|
+
</div>
|
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.3.
|
4
|
+
version: 1.3.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Dargelos
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2018-04-
|
16
|
+
date: 2018-04-20 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rails
|