%h1 Newsletters

%div.row
  %ul.block-grid-md-4.block-grid-sm-2
    - @newsletters.each do |newsletter|
      %li
        = link_to newsletter do
          = image_tag attachment_url(newsletter, :featured_image, :fill, 300, 300, format: "jpg")
        %h2
          = link_to newsletter.name, newsletter
        = link_to 'Learn more', newsletter.url, class: 'btn btn-block btn-lg btn-primary'
        = newsletter.description
  %br

  = link_to 'New Newsletter', new_newsletter_path

%div.row
  %h1
    = params[:tag].capitalize.html_safe
    Newsletters

  %ul.block-grid-md-4.block-grid-sm-2
    - @newsletters.each do |newsletter|
      %li
        = link_to newsletter do
          = image_tag attachment_url(newsletter, :featured_image, :fill, 300, 300, format: "jpg")
        %h2
          = link_to newsletter.name, newsletter
        = link_to 'Learn more', newsletter.url, class: 'btn btn-block btn-lg btn-primary'
        = newsletter.description
  %br
  - if current_user && current_user.is_admin?
    = link_to 'New Newsletter', new_newsletter_path


Set up the newsletter set up
Set up the newsletter set up
