Sha256: 739a2ad2bd9d14858bce82cc2726bd1ce6dd4e368c9b5c3be05bb7db45997d30

Contents?: true

Size: 792 Bytes

Versions: 1

Compression:

Stored size: 792 Bytes

Contents

h1
  | #{t 'rep.list_title'}

- previews_group = proc do |m|
  - capture do
    h2 = preview_class_human_name(m)
    ul.list-group
      - email_methods(m).each do |method|
        li.list-group-item
          a href=rails_email_preview.rep_email_url(mail_class: m.to_s.underscore, mail_action: method.to_s, email_locale: @email_locale)
            = method.to_s.humanize

.row
  - split_in_halves(@preview_class_names) { |c| email_methods(c).length }.each do |classes|
    .col-sm-6.col-lg-6
      - classes.each do |class_name|
        = previews_group.call(class_name)

hr

p.text-center.text-small.text-info
  | #{total_emails} emails in #{@preview_class_names.length} mailers
  br
  a href="https://github.com/glebm/rails_email_preview" target='_blank' REP #{RailsEmailPreview::VERSION}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_email_preview-0.2.6 app/views/rails_email_preview/emails/index.html.slim