foxynews 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/foxynews/pressrooms/show.html.erb +12 -1
- data/lib/foxynews/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e52264fbc656b8cda45e6ecd6e5d002613932b4b
|
4
|
+
data.tar.gz: 4a4d4b0ba1288a6df4ff741193e69a7833993d42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb0fedc8f5082eb345a2752390b3db8200da8b2c1bac1788f75d5555b33b3166d79b12afb4de7f401602059e426dc416dc2d624c5af1c890fd55c4aa11bd7ce8
|
7
|
+
data.tar.gz: 2b638e393e474d988dda6a7b9cc03022961ef796f57622eaaa53e68d1d75567f93cfd945fe5912df0daef5ac75c88b021fb03f8c47c5c33717cd824683ec4877
|
@@ -3,7 +3,18 @@
|
|
3
3
|
|
4
4
|
<div class='press-release'>
|
5
5
|
<% @press_release.parsed_content.each do |content_block| %>
|
6
|
-
<% if content_block['type'] == '
|
6
|
+
<% if content_block['type'] == 'textarea' %>
|
7
|
+
<%= content_block['data']['body'].html_safe %>
|
8
|
+
<% elsif content_block['type'] == 'quote' %>
|
9
|
+
<div class='block-quote'>
|
10
|
+
<%= content_block['data']['quote'].html_safe %>
|
11
|
+
<span class='cite'><%= (content_block['data'].has_key? 'cite') ? content_block['data']['cite'].html_safe : '' %></span>
|
12
|
+
</div>
|
13
|
+
<% elsif content_block['type'] == 'media' %>
|
14
|
+
<% content_block['data']['json'].each do |media| %>
|
15
|
+
<img src=<%= media['sizes']['medium']['url'] %> width=<%= media['sizes']['medium']['width'] %> height=<%= media['sizes']['medium']['height'] %> alt=<%= media['sizes']['title'] %>/>
|
16
|
+
<% end %>
|
17
|
+
<% elsif content_block['type'] == 'text' %>
|
7
18
|
<p><%= content_block['data']['text'].html_safe %></p>
|
8
19
|
<% elsif content_block['type'] == 'quote' %>
|
9
20
|
<div class='block-quote'>
|
data/lib/foxynews/version.rb
CHANGED