Sha256: d39be1cff4aa17768f06790b110c744ce2db595a368c00889169d63cfd011d79

Contents?: true

Size: 1.13 KB

Versions: 10

Compression:

Stored size: 1.13 KB

Contents

<%- set_title @content.headline -%>
<%- meta_description @content.summary -%>

<%- if @content.has_sections? -%>
  <%= render '/sections/contents' -%>
  <h2><%= @content.headline -%></h2>
  <h3><%= @section.headline -%></h3>
  <%= @section.content.html_safe -%>
<%- else -%>
  <%= @content.content.html_safe -%>
<%- end -%>
<%- unless @content.references.blank? -%>
  <h3>References</h3>
  <%= @content.references -%>
<%- end -%>

<%- unless @content.related_content.blank? -%>
  <h3>Related <%= @content.publication.content_type -%></h3>
  <ul class="related_content_list">
  <%- @content.related_content.each do |related| -%>
    <li><%= link_to related.headline, related.humanize_path -%></li>
  <%- end -%>
  </ul>
<%- end -%>

<br />

<%- unless @content.publication.has_faqs? -%>
  <h3>Referring to This Page</h3>
  <p>Use or reference to this content on the Internet must be accompanied by a link to the page you cite.</p>
<%- end -%>

<%= link_to 'Download PDF', "#{@content.humanize_path.gsub(/\/$/,'.pdf')}", :class => :button if @content.publication.pdf_enabled -%>
<%= link_to 'Back', @content.publication.humanize_path, :class => :button -%>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
editorial_logic-1.3.3 app/views/managed_contents/show.html.erb
editorial_logic-1.3.2 app/views/managed_contents/show.html.erb
editorial_logic-1.3.1 app/views/managed_contents/show.html.erb
editorial_logic-1.3.0 app/views/managed_contents/show.html.erb
editorial_logic-1.1.6 app/views/managed_contents/show.html.erb
editorial_logic-1.1.5 app/views/managed_contents/show.html.erb
editorial_logic-1.1.4 app/views/managed_contents/show.html.erb
editorial_logic-1.1.3 app/views/managed_contents/show.html.erb
editorial_logic-1.1.1 app/views/managed_contents/show.html.erb
editorial_logic-1.1.0 app/views/managed_contents/show.html.erb