You are here

content-kanban-column-entry.html.twig in Content Planner 8

<div class="kanban-entry" data-id="{{ entity_id }}" data-type="{{ entity_type }}"
     style="border: 1px solid {{ entity_type_config.color }};
            color: {{ entity_type_config.color }};
            background-color: {{ item_options.background_color }}">

  <span class="node-type-label">{{ entity_type_config.label }}</span>
  <div class="user-info">
    {% if user_picture %}
      <span class="user-picture"><img src="{{ user_picture }}" alt="{{ entity.username }}" /></span>
    {% endif %}
    <span class="username">{{ entity.username }}</span>
  </div>
  <span class="node-title"><a href="{{ operation_links.add }}">{{ entity.entityLoaded.label }}</a></span>
  <div class="node-publication-info">
    <span class="workflow-state">{{ workflow_state }}</span>
    {% if entity.status %}
      {% if entity.entityLoaded.created.value %}
        <span class="publish-on">{{ entity.entityLoaded.created.value | date("d.m.Y - H:i") }}</span>
      {% endif %}
    {% else %}
      {% if entity.entityLoaded.publish_on.value %}
        <span class="publish-on">{{ "Planned"|t }}: {{ entity.entityLoaded.publish_on.value | date("d.m.Y - H:i") }}</span>
      {% endif %}
    {% endif %}
  </div>

  <ul class="node-actions">
    <li><a class="node-action node-edit-link" href="{{ operation_links.edit }}?destination={{ path('content_kanban.kanban') }}" title="{{ "Edit"|t }}">{{ "Edit"|t }}</a></li>
    <li><a class="node-action node-delete-link" href="{{ operation_links.delete}}?destination={{ path('content_kanban.kanban') }}" title="{{ "Delete"|t }}">{{ "Delete"|t }}</a></li>
  </ul>

</div>

File

modules/content_kanban/templates/content-kanban-column-entry.html.twig
View source
  1. <div class="kanban-entry" data-id="{{ entity_id }}" data-type="{{ entity_type }}"
  2. style="border: 1px solid {{ entity_type_config.color }};
  3. color: {{ entity_type_config.color }};
  4. background-color: {{ item_options.background_color }}">
  5. <span class="node-type-label">{{ entity_type_config.label }}</span>
  6. <div class="user-info">
  7. {% if user_picture %}
  8. <span class="user-picture"><img src="{{ user_picture }}" alt="{{ entity.username }}" /></span>
  9. {% endif %}
  10. <span class="username">{{ entity.username }}</span>
  11. </div>
  12. <span class="node-title"><a href="{{ operation_links.add }}">{{ entity.entityLoaded.label }}</a></span>
  13. <div class="node-publication-info">
  14. <span class="workflow-state">{{ workflow_state }}</span>
  15. {% if entity.status %}
  16. {% if entity.entityLoaded.created.value %}
  17. <span class="publish-on">{{ entity.entityLoaded.created.value | date("d.m.Y - H:i") }}</span>
  18. {% endif %}
  19. {% else %}
  20. {% if entity.entityLoaded.publish_on.value %}
  21. <span class="publish-on">{{ "Planned"|t }}: {{ entity.entityLoaded.publish_on.value | date("d.m.Y - H:i") }}</span>
  22. {% endif %}
  23. {% endif %}
  24. </div>
  25. <ul class="node-actions">
  26. <li><a class="node-action node-edit-link" href="{{ operation_links.edit }}?destination={{ path('content_kanban.kanban') }}" title="{{ "Edit"|t }}">{{ "Edit"|t }}</a></li>
  27. <li><a class="node-action node-delete-link" href="{{ operation_links.delete}}?destination={{ path('content_kanban.kanban') }}" title="{{ "Delete"|t }}">{{ "Delete"|t }}</a></li>
  28. </ul>
  29. </div>