{% embed '@ui/features/workflows/lists/default.html.twig' with {
lazyload: false
} %}
{% block items %}
{% for account in accounts %}
{% include '@ui/features/workflows/lists/items/draft.html.twig' with {
lazyload: false,
title: '<i class="fa fa-%s"></i> %s'|format(
(constant('DISCR', account) is same as('facebook')) ? 'facebook-square' : constant('DISCR', account),
account.name
),
classes: [],
avatar: account.blamedBy,
text1: 'Account ID: %s'|format(account),
text2: '%s by %s %s'|format(
(account.updatedAt is not empty) ? 'Updated' : 'Created',
(account.updatedBy is not empty) ? account.updatedBy.displayName : account.createdBy.displayName,
account.timestampedAt|ui_datetime
),
bulk: false,
statuses: account.usesAsToggles|map((toggled,use) => {
text: 'campussuite.cms.tenant.social.uses.%s'|format(use)|trans,
helper: (toggled) ? 'success' : 'gray',
})|sort((a,b) => a.text <=> b.text),
actions: [
{
title: 'Manage Uses',
icon: 'fa fa-gear',
link: path(routes.toggle, {
account: account.id,
}),
},
{
icon: 'fa fa-ellipsis-v',
items: [
{
title: 'Delete',
icon: 'icon-solid-trash',
link: path(routes.delete, {
account: account.id,
}),
},
]
},
]
} %}
{% endfor %}
{% endblock %}
{% endembed %}