- if @email.admin_email
  - set_meta_tags nofollow: true


%div.row
  %div.col-md-8
    = link_to newsletter_path(@newsletter) do
      %h1
        #{@newsletter.name}
    %div
      %p
        Sent #{@email.created_at}
  %div.col-md-4
    %p
      = link_to 'More from the Newsletter', newsletter_path(@newsletter), class: 'btn btn-default'
    - if !@links .empty?
      %p
        = link_to 'View the Links', link_path(@email), class: 'btn btn-default'


%div.row
  %div.col-md-12
    %h2
      = @email.subject
%div.row.col-md-12
- if @email.raw_html && !@email.raw_html.empty?
  = raw @email.raw_html.html_safe
- else
  = raw @email.body.html_safe


- if !@related_emails.empty?
  %div.row
    %div.col-md-12
      %h3
        Related Emails
  %div.row.col-md-12
    - @related_emails.each do |email|
      %p
        = link_to email.subject, email


- if @email.admin_email
  - set_meta_tags nofollow: true


%div.row
  %div.col-md-8
    = link_to newsletter_path(@newsletter) do
      %h1
        #{@newsletter.name}
    %div
      %p
        Sent #{@email.created_at}
  %div.col-md-4
    %p
      = link_to 'More from the Newsletter', newsletter_path(@newsletter), class: 'btn btn-default'
    - if !@links .empty?
      %p
        = link_to 'View the Links', link_path(@email), class: 'btn btn-default'


%div.row
  %div.col-md-12
    %h2
      = @email.subject
%div.row.col-md-12
- if @email.raw_html && !@email.raw_html.empty?
  = raw @email.raw_html.html_safe
- else
  = raw @email.body.html_safe


- if !@related_emails.empty?
  %div.row
    %div.col-md-12
      %h3
        Related Emails
  %div.row.col-md-12
    - @related_emails.each do |email|
      %p
        = link_to email.subject, email
%div.row
  %div.col-md-12
    %p
      = link_to 'More from the Newsletter', newsletter_path(@newsletter), class: 'btn btn-default'
    - if !@links .empty?
      %p
        = link_to 'View the Links', link_path(@email), class: 'btn btn-default'


Add the links a bit more
Add the links a bit more
