denny/ShinyCMS-ruby

View on GitHub
plugins/ShinyNewsletters/app/views/shiny_newsletters/admin/sends/index.html.erb

Summary

Maintainability
Test Coverage
<%= render partial: 'admin/includes/search', locals: { action: shiny_newsletters.search_sends_path, placeholder: t( '.search' ) } %>

<% if @sending.present? %>
  <%= render partial: 'sending' %>
<% end %>

<% if @scheduled.present? %>
  <%= render partial: 'scheduled' %>
<% end %>

<% if @sends.present? %>
  <%= render partial: 'sends' %>
<% end %>

<% if @sent.present? %>
  <%= render partial: 'sent' %>
<% end %>

<% if @sending.blank? && @scheduled.blank? && @sends.blank? && @sent.blank? %>
<p>
  <%= t( '.no_sends' ) %>
</p>
<% end %>