[% IF admin_summary.size || errors_summary.size-%]
[% IF admin_summary.size -%]

## [%|loc%]Administration Tasks[%END%]

[%|loc%]The following items are waiting for your validation[%END%]

[% FOREACH list_to_admin = admin_summary -%]
- [%|loc(list_to_admin.key)%]List %1:[%END%] [% IF list_to_admin.value.mod_message %][%|loc(list_to_admin.value.mod_message)%]%1 message(s)[%END%][% END %] [% IF list_to_admin.value.mod_shared_total %][%|loc(list_to_admin.value.mod_shared_total)%]%1 document(s)[%END%][% END %] [% IF list_to_admin.value.mod_subscription %][%|loc(list_to_admin.value.mod_subscription)%]%1 subscription request(s)[%END%][% END %] [% IF list_to_admin.value.mod_signoff %][%|loc(list_to_admin.value.mod_signoff)%]%1 unsubscription request(s)[%END%][% END %]
[% END -%]

[% ELSE %]
[% END %]

[% IF errors_summary.size -%]

## [%|loc%]User Errors[%END%]

[%|loc%]We received error reports while trying to send you messages. Some of them may have been lost.[%END%]

[% FOREACH user_with_errors = errors_summary -%]
- [%|loc(user_with_errors.key)%] List %1: [%END%] [% IF user_with_errors.value %] [%|loc(user_with_errors.value.count)%] %1 error(s)[% END %], [% | mailto("${user_with_errors.key}-request@${conf.host}") ~%] [%|loc()%]please contact the list owners[% END %] [%~ END%]
  - [%|loc(user_with_errors.value.first)%]first bounce: %1[% END %]
  - [%|loc(user_with_errors.value.last)%]last bounce: %1[% END %]
  - [%|loc(user_with_errors.value.type)%]Last bounce category: %1[% END %]
  [% END %]
[% END %]

[% END %]
[% END %]