c80_features 0.1.2 → 0.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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5262e4ca7d3ba03541e0b3e0f633d07f86bb6368
|
|
4
|
+
data.tar.gz: 4615057c6bed5b839d542f694b27dbc9f8bf3b7b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dcb4fa087b9c442ffbe7b8878d50bf704c4fcc8c691883d9b215777fc47e0c817d21dcafe6cbc3830a94104a414a0e87ee628857201a5ed55747609d67a504d5
|
|
7
|
+
data.tar.gz: afb485d96a662a3a341a663fc9619edac3f68c2a97b78cf9a5459621a25e2e4eecb1b8362da6dbef2f9b4e2879459c81ffd12b3948e843c6c990c8949eb07a0b
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
module C80Features
|
|
2
2
|
module ApplicationHelper
|
|
3
3
|
|
|
4
|
+
def render_features_block_with_images2
|
|
5
|
+
para_all = C80Features::Para.all
|
|
6
|
+
render :partial => 'c80_features/features_block_with_images2',
|
|
7
|
+
:locals => {
|
|
8
|
+
:para_all => para_all
|
|
9
|
+
}
|
|
10
|
+
end
|
|
11
|
+
|
|
4
12
|
def render_features_block_with_images
|
|
5
13
|
para_all = C80Features::Para.all
|
|
6
14
|
render :partial => 'c80_features/features_block_with_images',
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<% para_all.each_with_index do |paragraph,index| %>
|
|
2
|
+
<div id="<%= "feature_#{index+1}"%>" style="background: transparent url(<%= image_path(paragraph.image.url) %>) no-repeat 50% 0;">
|
|
3
|
+
<% if paragraph.title.present? %>
|
|
4
|
+
<h3><%= paragraph.title %></h3>
|
|
5
|
+
<% end %>
|
|
6
|
+
<div class="cnt"><%= paragraph.content.html_safe %></div>
|
|
7
|
+
</div>
|
|
8
|
+
<% end %>
|
data/lib/c80_features/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: c80_features
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- C80609A
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-06-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -109,6 +109,7 @@ files:
|
|
|
109
109
|
- app/uploaders/c80_features/para_uploader.rb
|
|
110
110
|
- app/views/c80_features/_features_block.html.erb
|
|
111
111
|
- app/views/c80_features/_features_block_with_images.html.erb
|
|
112
|
+
- app/views/c80_features/_features_block_with_images2.html.erb
|
|
112
113
|
- bin/console
|
|
113
114
|
- bin/setup
|
|
114
115
|
- c80_features.gemspec
|
|
@@ -137,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
137
138
|
version: '0'
|
|
138
139
|
requirements: []
|
|
139
140
|
rubyforge_project:
|
|
140
|
-
rubygems_version: 2.
|
|
141
|
+
rubygems_version: 2.5.1
|
|
141
142
|
signing_key:
|
|
142
143
|
specification_version: 4
|
|
143
144
|
summary: Features
|