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: a32bd3027b1b82781565e3b2c204a5a00df992e7
4
- data.tar.gz: f6505dd93cec622af6dd0c0aa66f360be2045248
3
+ metadata.gz: 5262e4ca7d3ba03541e0b3e0f633d07f86bb6368
4
+ data.tar.gz: 4615057c6bed5b839d542f694b27dbc9f8bf3b7b
5
5
  SHA512:
6
- metadata.gz: 56f8091e4a1dfbc941341694480a169fbe04fa3967482213032e0d36bea0b6f4a69deb08f9e72579fcff7d663bc84b1f2b49bf60b5cfe19f5837a6949a6737cd
7
- data.tar.gz: 066da30d2617045bd07255ef02e42d70719899840aaf633f6b5a3dc634f2e83b2d4e1f48932dcc41bb7f131a07d4f403002b50ee5f64812bf65b4c14f53f7fff
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 %>
@@ -1,3 +1,3 @@
1
1
  module C80Features
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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: 2015-12-17 00:00:00.000000000 Z
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.4.7
141
+ rubygems_version: 2.5.1
141
142
  signing_key:
142
143
  specification_version: 4
143
144
  summary: Features