src/Cms/TenantBundle/Resources/views/Dashboard/Social/includes/accounts.html.twig line 1

Open in your IDE?
  1. {% embed '@ui/features/workflows/lists/default.html.twig' with {
  2.     lazyload: false
  3. } %}
  4.     {% block items %}
  5.         {% for account in accounts %}
  6.             {% include '@ui/features/workflows/lists/items/draft.html.twig' with {
  7.                 lazyload: false,
  8.                 title: '<i class="fa fa-%s"></i> %s'|format(
  9.                     (constant('DISCR', account) is same as('facebook')) ? 'facebook-square' : constant('DISCR', account),
  10.                     account.name
  11.                 ),
  12.                 classes: [],
  13.                 avatar: account.blamedBy,
  14.                 text1: 'Account ID: %s'|format(account),
  15.                 text2: '%s by %s %s'|format(
  16.                     (account.updatedAt is not empty) ? 'Updated' : 'Created',
  17.                     (account.updatedBy is not empty) ? account.updatedBy.displayName : account.createdBy.displayName,
  18.                     account.timestampedAt|ui_datetime
  19.                 ),
  20.                 bulk: false,
  21.                 statuses: account.usesAsToggles|map((toggled,use) => {
  22.                     text: 'campussuite.cms.tenant.social.uses.%s'|format(use)|trans,
  23.                     helper: (toggled) ? 'success' : 'gray',
  24.                 })|sort((a,b) => a.text <=> b.text),
  25.                 actions: [
  26.                     {
  27.                         title: 'Manage Uses',
  28.                         icon: 'fa fa-gear',
  29.                         link: path(routes.toggle, {
  30.                             account: account.id,
  31.                         }),
  32.                     },
  33.                     {
  34.                         icon: 'fa fa-ellipsis-v',
  35.                         items: [
  36.                             {
  37.                                 title: 'Delete',
  38.                                 icon: 'icon-solid-trash',
  39.                                 link: path(routes.delete, {
  40.                                     account: account.id,
  41.                                 }),
  42.                             },
  43.                         ]
  44.                     },
  45.                 ]
  46.             } %}
  47.         {% endfor %}
  48.     {% endblock %}
  49. {% endembed %}