Sha256: b01ed906b9d486f6c8b35071c3e83e670dda7b3f86e701b40fc49f1ce83a2158

Contents?: true

Size: 940 Bytes

Versions: 61

Compression:

Stored size: 940 Bytes

Contents

<div class="article" id="<%= element_dom_id(element) %>"<%= element_preview_code(element) -%><%= element_tags(element) %>>
  <%- intro = render_essence_view_by_name(element, 'intro') -%>
  <%- if !intro.blank? -%>
  <div class="intro">
    <%= intro %>
  </div>
  <%- end -%>
  <% element.contents.where(:name => 'headline').each do |content| %>
  <% next if content.ingredient.blank? %>
  <h1 class="headline"><%= render_essence content %></h1>
  <% end %>
  <div class="text_bild_container">
    <%- content = element.contents.find_by_essence_type("Alchemy::EssencePicture") -%>
    <%- if content -%>
    <div class="image <%= content.essence.css_class %>">
      <%= render_essence_view(content, :image_size => "450x1000", :crop => true) %>
    </div>
    <%- end -%>
    <% element.contents.where(:name => 'text').each do |content| %>
    <div class="text">
      <%= render_essence content %>
    </div>
    <% end %>
  </div>
</div>

Version data entries

61 entries across 61 versions & 3 rubygems

Version Path
alchemy_cms-3.1.0.beta1 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-3.0.2 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-3.0.1 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-3.0.0 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-3.0.0.rc8 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-2.9.0 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-2.8.3 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-2.7.5 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-2.6.3 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-3.0.0.rc7 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-3.0.0.rc6 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-2.7.4 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-2.8.2 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-2.8.1 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-2.7.3 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-3.0.0.rc5 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-2.7.2 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-2.7.1 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-2.7.0 spec/dummy/app/views/alchemy/elements/_article_view.html.erb
alchemy_cms-2.6.2.1 spec/dummy/app/views/alchemy/elements/_article_view.html.erb