闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.9 KiB

  1. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  2. %tbody
  3. %tr
  4. %td.email-body
  5. .email-container
  6. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  7. %tbody
  8. %tr
  9. %td.content-cell.darker.hero-with-button
  10. .email-row
  11. .col-6
  12. %table.column{ cellspacing: 0, cellpadding: 0 }
  13. %tbody
  14. %tr
  15. %td.column-cell.text-center.padded
  16. %h1= t 'notification_mailer.digest.title'
  17. %p.lead= t('notification_mailer.digest.body', since: l((@me.user_current_sign_in_at || @since).to_date, format: :short), instance: site_hostname)
  18. %table.button{ align: 'center', cellspacing: 0, cellpadding: 0 }
  19. %tbody
  20. %tr
  21. %td.button-primary
  22. = link_to web_url do
  23. %span= t 'notification_mailer.digest.action'
  24. - @notifications.each_with_index do |n, i|
  25. = render 'status', status: n.target_status, i: i
  26. - unless @follows_since.zero?
  27. %table.email-table{ cellspacing: 0, cellpadding: 0 }
  28. %tbody
  29. %tr
  30. %td.email-body
  31. .email-container
  32. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  33. %tbody
  34. %tr
  35. %td.content-cell.content-start.border-top
  36. .email-row
  37. .col-6
  38. %table.column{ cellspacing: 0, cellpadding: 0 }
  39. %tbody
  40. %tr
  41. %td.column-cell.text-center
  42. %p= t('notification_mailer.digest.new_followers_summary', count: @follows_since)