Sha256: ae5304c4586aa3977d13070c8470cd92efda3520cabf3ebe2cc0ba39d8681b97
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
<h1><%= @press_release.title %></h1> <h2><%= @press_release.subtitle %></h2> <div class='press-release'> <% @press_release.parsed_content.each do |content_block| %> <% if content_block['type'] == 'text' %> <p><%= content_block['data']['text'].html_safe %></p> <% elsif content_block['type'] == 'quote' %> <div class='block-quote'> <%= content_block['data']['quote'].html_safe %> <span class='cite'><%= (content_block['data'].has_key? 'cite') ? content_block['data']['cite'].html_safe : '' %></span> </div> <% elsif content_block['type'] == 'media_collection' %> <% content_block['data']['items'].each do |media| %> <img src=<%= media['sizes']['medium']['url'] %> width=<%= media['sizes']['medium']['width'] %> height=<%= media['sizes']['medium']['height'] %> alt=<%= media['sizes']['title'] %>/> <% end %> <% elsif content_block['type'] == 'media_item' %> <img src=<%= content_block['data']['item']['sizes']['medium']['url'] %> width=<%= content_block['data']['item']['sizes']['medium']['width'] %> height=<%= content_block['data']['item']['sizes']['medium']['height'] %> alt=<%= content_block['data']['item']['sizes']['title'] %>/> <% end %> <% end %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foxynews-1.0.0 | app/views/foxynews/pressrooms/show.html.erb |