You are here

content-calendar-entry.html.twig in Content Planner 8

<div class="calendar-entry {% if node.editoptions %}draggable{% endif %}" data-nid="{{ node.nid }}" style="border: 1px solid {{ node_type_config.color }}; color: {{ node_type_config.color }}; {% if not node.status %}background-color: {{ options.bg_color_unpublished_content }};{% endif %}">


  <div class="user-info">
    {% if user_picture %}
      <span class="user-picture"><img src="{{ user_picture }}" alt="{{ node.username }}" /></span>
    {% endif %}
    {#<span class="username">{{ node.username }}</span>#}
  </div>
  <span class="node-type-label">{{ node_type_config.label }}</span>
  <span class="node-title"><a href="{{ path('entity.node.canonical', {'node': node.nid}) }}">{{ node.title }}</a></span>
  <div class="state-and-publication">

    <span class="workflow-state">{{ workflow_state }}</span>


    
    <!--<span class="publish-on">{{ node.publish_on_time }}</span>-->
    <span class="created-on">
      {% if node.scheduled %}
        <img src="/modules/contrib/content_planner/modules/content_calendar/assets/dist/images/scheduled.svg">
      {% endif %}
      {{ node.created_on_time }}
    </span>
  </div>

  {% if node.editoptions %}
  <ul class="node-actions">
    <li><a class="node-action node-edit-link" href="{{ path('entity.node.edit_form', {'node': node.nid}) }}?destination={{ path('content_calendar.calendar_redirect', {'month': month, 'year': year}) }}" title="{{ "Edit"|t }}">{{ "Edit"|t }}</a></li>
    <li><a class="node-action node-delete-link" href="{{ path('entity.node.delete_form', {'node': node.nid}) }}?destination={{ path('content_calendar.calendar_redirect', {'month': month, 'year': year}) }}" title="{{ "Delete"|t }}">{{ "Delete"|t }}</a></li>
    <!--<li><a class="node-action node-duplicate-link" href="{{ path('content_calendar.duplicate_node', {'node': node.nid}) }}?destination={{ path('content_calendar.calendar_redirect', {'month': month, 'year': year}) }}" title="{{ "Duplicate"|t }}">{{ "Duplicate"|t }}</a></li>-->
  </ul>
  {% endif %}

</div>

File

modules/content_calendar/templates/content-calendar-entry.html.twig
View source
  1. <div class="calendar-entry {% if node.editoptions %}draggable{% endif %}" data-nid="{{ node.nid }}" style="border: 1px solid {{ node_type_config.color }}; color: {{ node_type_config.color }}; {% if not node.status %}background-color: {{ options.bg_color_unpublished_content }};{% endif %}">
  2. <div class="user-info">
  3. {% if user_picture %}
  4. <span class="user-picture"><img src="{{ user_picture }}" alt="{{ node.username }}" /></span>
  5. {% endif %}
  6. {#<span class="username">{{ node.username }}</span>#}
  7. </div>
  8. <span class="node-type-label">{{ node_type_config.label }}</span>
  9. <span class="node-title"><a href="{{ path('entity.node.canonical', {'node': node.nid}) }}">{{ node.title }}</a></span>
  10. <div class="state-and-publication">
  11. <span class="workflow-state">{{ workflow_state }}</span>
  12. <!--<span class="publish-on">{{ node.publish_on_time }}</span>-->
  13. <span class="created-on">
  14. {% if node.scheduled %}
  15. <img src="/modules/contrib/content_planner/modules/content_calendar/assets/dist/images/scheduled.svg">
  16. {% endif %}
  17. {{ node.created_on_time }}
  18. </span>
  19. </div>
  20. {% if node.editoptions %}
  21. <ul class="node-actions">
  22. <li><a class="node-action node-edit-link" href="{{ path('entity.node.edit_form', {'node': node.nid}) }}?destination={{ path('content_calendar.calendar_redirect', {'month': month, 'year': year}) }}" title="{{ "Edit"|t }}">{{ "Edit"|t }}</a></li>
  23. <li><a class="node-action node-delete-link" href="{{ path('entity.node.delete_form', {'node': node.nid}) }}?destination={{ path('content_calendar.calendar_redirect', {'month': month, 'year': year}) }}" title="{{ "Delete"|t }}">{{ "Delete"|t }}</a></li>
  24. <!--<li><a class="node-action node-duplicate-link" href="{{ path('content_calendar.duplicate_node', {'node': node.nid}) }}?destination={{ path('content_calendar.calendar_redirect', {'month': month, 'year': year}) }}" title="{{ "Duplicate"|t }}">{{ "Duplicate"|t }}</a></li>-->
  25. </ul>
  26. {% endif %}
  27. </div>