Improve the style of the dossier expiration summary email

This commit is contained in:
maatinito 2018-12-20 16:36:20 +01:00 committed by gregoirenovel
parent 87cccae17a
commit 5ca9267065

View file

@ -1,7 +1,7 @@
- content_for(:title, 'Expiration du délai de conservation des dossiers') - content_for(:title, 'Expiration du délai de conservation des dossiers')
- if @expired_dossiers.present? - if @expired_dossiers.present?
%h1= t('mail.administration.dossier_expiration_summary.expired_dossiers', count: @expired_dossiers.count) %h2= t('mail.administration.dossier_expiration_summary.expired_dossiers', count: @expired_dossiers.count)
- @expired_dossiers.group_by(&:procedure).each do |procedure, dossiers| - @expired_dossiers.group_by(&:procedure).each do |procedure, dossiers|
%dl %dl
%dt %dt
@ -10,7 +10,7 @@
= dossiers.map { |d| link_to(d.id, manager_dossier_url(d)) }.join(', ').html_safe = dossiers.map { |d| link_to(d.id, manager_dossier_url(d)) }.join(', ').html_safe
- if @expiring_dossiers.present? - if @expiring_dossiers.present?
%h1= t('mail.administration.dossier_expiration_summary.expiring_dossiers', count: @expiring_dossiers.count) %h2= t('mail.administration.dossier_expiration_summary.expiring_dossiers', count: @expiring_dossiers.count)
- @expiring_dossiers.group_by(&:procedure).each do |procedure, dossiers| - @expiring_dossiers.group_by(&:procedure).each do |procedure, dossiers|
%dl %dl
%dt %dt