{% extends "::author.html.twig" %} {% block title %} Dashboard {% endblock %} {% block body %}

Dashboard

  • MY ARTICLE
  • AS CO-AUTHOR
{#
#}

Draft

{% if entitiesDraft | length > 0 %} {% set draftCount = 0 %} {% for todo in entitiesDraft |reverse %} {% set draftCount=draftCount+1 %} {% if draftCount<11 %}
todo {{ todo.user.title }} .{{ todo.user.firstname }}

{{ todo.title }}

{% if todo.reviewer | length %}

Reviewer
{% set cpt_todo = 0 %} {% for rev in todo.reviewer %} {% set cpt_todo = cpt_todo+1 %} {{ rev.title }}.{{ rev.firstname }} {% if cpt_todo != todo.reviewer |length %},{% endif %} {% endfor %}

{% endif %}

Co-author
{% set cpt_todo_i = 0 %} {% for coauth in todo.coauthor %} {% set cpt_todo_i = cpt_todo_i+1 %} {{ coauth.title }}.{{ coauth.firstname }} {% if cpt_todo_i != todo.coauthor |length %},{% endif %} {% endfor %}

{% endif %} {% endfor %} {% set draftCalcule = (draftCount/10) %} {% set decimalDraft = draftCalcule - draftCalcule|round(0) %} {% if decimalDraft>0 %} {% set draftCalcule = draftCalcule|round(0)+1 %} {% endif %} {% if draftCalcule > 1 %}
{% for i in 1 .. draftCalcule %} {% if i == 1 %} {{ i }} {% else %} {{ i }} {% endif %} {% endfor %}
{% endif %} {% endif %} {#{% if coauthors_draft | length > 0 %}#} {#{% for todo_coauthors in coauthors_draft %}#} {#{% if todo_coauthors.status != 4 and todo_coauthors.status != 3 and todo_coauthors.status != 2 and todo_coauthors.status != 1 %}#} {#
#} {#todo {{ todo_coauthors.user.title }}.{{ todo_coauthors.user.firstname }}#} {#

{{ todo_coauthors.title }}

#} {#{% if todo_coauthors.reviewer | length %}#} {#

Reviewer
#} {#{% set cpt_todo_coauthors = 0 %}#} {#{% for rev_todo_coauthors in todo_coauthors.reviewer %}#} {#{% set cpt_todo_coauthors = cpt_todo_coauthors+1 %}#} {#{{ rev_todo_coauthors.title }}.{{ rev_todo_coauthors.firstname }} #} {#{% if cpt_todo_coauthors != todo_coauthors.reviewer |length %},{% endif %}#} {#{% endfor %}#} {#

#} {#{% endif %}#} {#

Co-author
#} {#{% set cpt_todo_coauthors_i = 0 %}#} {#{% for coauth_todo_coauthors in todo_coauthors.coauthor %}#} {#{% set cpt_todo_coauthors_i = cpt_todo_coauthors_i+1 %}#} {#{{ coauth_todo_coauthors.title }}.{{ coauth_todo_coauthors.firstname }} #} {#{% if cpt_todo_coauthors_i != todo_coauthors.coauthor |length %},{% endif %}#} {#{% endfor %}#} {#

#} {##} {#
#} {#{% endif %}#} {#{% endfor %}#} {#{% endif %}#}

Pending

{% if entities | length > 0 %} {% set pendingCount = 0 %} {% for pending in entities |reverse %} {% if pending.status == 3 or pending.status == 5 %} {% set pendingCount=pendingCount+1 %} {% if pendingCount<11 %}
pending {{ pending.user.title }}.{{ pending.user.firstname }}

{{ pending.title }}

{% if pending.reviewer | length %}

Reviewer
{% set cpt_pending = 0 %} {% for revp in pending.reviewer %} {% set cpt_pending = cpt_pending+1 %} {{ revp.title }}.{{ revp.firstname }} {% if cpt_pending != pending.reviewer |length %} , {% endif %} {% endfor %}

{% endif %}
{% endif %} {% endif %} {% endfor %} {% set pendCalcule = (pendingCount/10) %} {% set decimal = pendCalcule - pendCalcule|round(0) %} {% if decimal>0 %} {% set pendCalcule = pendCalcule|round(0)+1 %} {% endif %} {% if pendCalcule > 1 %}
{% for i in 1 .. pendCalcule %} {% if i == 1 %} {{ i }} {% else %} {{ i }} {% endif %} {% endfor %}
{% endif %} {% endif %} {#{% if coauthors | length > 0 %}#} {#{% for pending_coauthors in coauthors %}#} {#{% if pending_coauthors.status == 3 or pending_coauthors.status == 5 %}#} {#
#} {#pending {{ pending_coauthors.user.title }}.{{ pending_coauthors.user.firstname }}#} {#

{{pending_coauthors.title }}

#} {#{% if pending_coauthors.reviewer | length %}#} {#

Reviewer
#} {#{% set cpt_pending_coauthors = 0 %}#} {#{% for rev_pending_coauthors in pending_coauthors.reviewer %}#} {#{% set cpt_pending_coauthors = cpt_pending_coauthors+1 %}#} {#{{ rev_pending_coauthors.title }}.{{ rev_pending_coauthors.firstname }} #} {#{% if cpt_pending_coauthors != pending_coauthors.reviewer |length %},{% endif %}#} {#{% endfor %}#} {#

#} {#{% endif %}#} {#

Co-author
#} {#{% set cpt_pending_coauthors_i = 0 %}#} {#{% for coauth_pending_coauthors in pending_coauthors.coauthor %}#} {#{% set cpt_pending_coauthors_i = cpt_pending_coauthors_i+1 %}#} {#{{ coauth_pending_coauthors.title }}.{{ coauth_pending_coauthors.firstname }} #} {#{% if cpt_pending_coauthors_i != pending_coauthors.coauthor |length %},{% endif %}#} {#{% endfor %}#} {#

#} {##} {#
#} {#{% endif %}#} {#{% endfor %}#} {#{% endif %}#}

For Correction

{% if entities | length > 0 %} {% set correctionCount = 0 %} {% for toreview in entities | reverse %} {% if toreview.status == 2 %} {% set correctionCount = correctionCount+1 %} {% if correctionCount<11 %}
for correction {{ toreview.user.title }}.{{ toreview.user.firstname }}

{{ toreview.title }}

{% if toreview.reviewer | length %}

Reviewer
{% set cpt_toreview = 0 %} {% for retoreview in toreview.reviewer %} {% set cpt_toreview = cpt_toreview+1 %} {{ retoreview.title }}.{{ retoreview.firstname }} {% if cpt_toreview != toreview.reviewer |length %} , {% endif %} {% endfor %}

{% endif %}
{% endif %} {% endif %} {% endfor %} {% set corrCalcule = (correctionCount/10) %} {% set decimalCorrection = corrCalcule - corrCalcule|round(0) %} {% if decimal>0 %} {% set corrCalcule = corrCalcule|round(0)+1 %} {% endif %} {% if corrCalcule > 1 %} {% for i in 1 .. corrCalcule %} {% if i == 1 %} {{ i }} {% else %} {{ i }} {% endif %} {% endfor %} {% endif %} {% endif %} {#{% if coauthors | length > 0 %}#} {#{% for toreview_coauthors in coauthors %} #} {#{% if toreview_coauthors.status == 2 %}#} {#
#} {#for correction {{ toreview_coauthors.user.title }}.{{ toreview_coauthors.user.firstname }}#} {#

{{toreview_coauthors.title }}

#} {#{% if toreview_coauthors.reviewer | length %}#} {#

Reviewer
#} {#{% set cpt_toreview_coauthors = 0 %}#} {#{% for rev_toreview_coauthors in toreview_coauthors.reviewer %}#} {#{% set cpt_toreview_coauthors = cpt_toreview_coauthors+1 %}#} {#{{ rev_toreview_coauthors.title }}.{{ rev_toreview_coauthors.firstname }} #} {#{% if cpt_toreview_coauthors != toreview_coauthors.reviewer |length %},{% endif %}#} {#{% endfor %}#} {#

#} {#{% endif %}#} {#

Co-author
#} {#{% set cpt_toreview_coauthors_i = 0 %}#} {#{% for coauth_toreview_coauthors in toreview_coauthors.coauthor %}#} {#{% set cpt_toreview_coauthors_i = cpt_toreview_coauthors_i+1 %}#} {#{{ coauth_toreview_coauthors.title }}.{{ coauth_toreview_coauthors.firstname }} #} {#{% if cpt_toreview_coauthors_i != toreview_coauthors.coauthor |length %},{% endif %}#} {#{% endfor %}#} {#

#} {##} {#
#} {#{% endif %}#} {#{% endfor %}#} {#{% endif %}#}

Rejected

{% if entities | length > 0 %} {% set rejectCount = 0 %} {% for rejected in entities | reverse %} {% if rejected.status == 4 %} {% set rejectCount = rejectCount+1 %} {% if rejectCount < 11 %}
Rejected {{ rejected.user.title }}.{{ rejected.user.firstname }}

{{ rejected.title }}

{% if rejected.reviewer | length %}

Reviewer
{% set cpt_rejected = 0 %} {% for rejected in rejected.reviewer %} {% set cpt_rejected = cpt_rejected+1 %} {{ rejected.title }}.{{ rejected.firstname }} {# {% if rejected.reviewer | length >1 %}#} {# {% if cpt_rejected != rejected.reviewer | length %} , {% endif %}#} {# {% endif %}#} {% endfor %}

{% endif %}
{% endif %} {% endif %} {% endfor %} {% set rejectCalcule = (rejectCount/10) %} {% set decimalRejected = rejectCalcule|round(0)-rejectCalcule %} {% if decimalRejected>0 and rejectCalcule>1 %} {% set rejectCalcule = rejectCalcule|round(0)+1 %} {% endif %} {% if rejectCalcule > 1 %} {% for i in 1 .. rejectCalcule %} {% if i == 1 %} {{ i }} {% else %} {{ i }} {% endif %} {% endfor %} {% endif %} {% endif %} {#{% if coauthors | length > 0 %}#} {#{% for rejected_coauthors in coauthors %} #} {#{% if rejected_coauthors.status == 4 %}#} {#
#} {#Rejected {{ rejected_coauthors.user.title }}.{{ rejected_coauthors.user.firstname }}#} {#

{{rejected_coauthors.title }}

#} {#{% if rejected_coauthors.reviewer | length %}#} {#

Reviewer
#} {#{% set cpt_rejected_coauthors = 0 %}#} {#{% for rev_rejected_coauthors in rejected_coauthors.reviewer %}#} {#{% set cpt_rejected_coauthors = cpt_rejected_coauthors+1 %}#} {#{{ rev_rejected_coauthors.title }}.{{ rev_rejected_coauthors.firstname }} #} {#{% if cpt_rejected_coauthors != rejected_coauthors.reviewer |length %},{% endif %}#} {#{% endfor %}#} {#

#} {#{% endif %}#} {#

Co-author
#} {#{% set cpt_rejected_coauthors_i = 0 %}#} {#{% for coauth_rejected_coauthors in rejected_coauthors.coauthor %}#} {#{% set cpt_rejected_coauthors_i = cpt_rejected_coauthors_i+1 %}#} {#{{ coauth_rejected_coauthors.title }}.{{ coauth_rejected_coauthors.firstname }} #} {#{% if cpt_rejected_coauthors_i != rejected_coauthors.coauthor |length %},{% endif %}#} {#{% endfor %}#} {#

#} {##} {#
#} {#{% endif %}#} {#{% endfor %}#} {#{% endif %}#}

Published

{% if entities | length > 0 %} {% set publicCount = 0 %} {% for published in entities | reverse %} {% if published.status == 1 %} {% set publicCount = publicCount+1 %} {% if publicCount < 11 %}
Published {{ published.user.title }}.{{ published.user.firstname }}

{{ published.title }}

Reviewer
{% set cpt_published = 0 %} {% for revpublished in published.reviewer %} {% set cpt_published = cpt_published+1 %} {{ revpublished.title }}.{{ revpublished.firstname }} {% if cpt_published != published.reviewer |length %},{% endif %} {% endfor %}

{% endif %} {% endif %} {% endfor %} {% endif %} {% if coauthors | length > 0 %} {% for published_coauthors in coauthors %} {% if published_coauthors.status == 1 %} {% set publicCount = publicCount+1 %}
Published {{ published_coauthors.user.title }} .{{ published_coauthors.user.firstname }}

{{ published_coauthors.title }}

{% if published_coauthors.reviewer | length %}

Reviewer
{% set cpt_published_coauthors = 0 %} {% for rev_published_coauthors in published_coauthors.reviewer %} {% set cpt_published_coauthors = cpt_published_coauthors+1 %} {{ rev_published_coauthors.title }}.{{ rev_published_coauthors.firstname }} {% if cpt_published_coauthors != published_coauthors.reviewer |length %},{% endif %} {% endfor %}

{% endif %}

Co-author
{% set cpt_published_coauthors_i = 0 %} {% for coauth_published_coauthors in published_coauthors.coauthor %} {% set cpt_published_coauthors_i = cpt_published_coauthors_i+1 %} {{ coauth_published_coauthors.title }}.{{ coauth_published_coauthors.firstname }} {% if cpt_published_coauthors_i != published_coauthors.coauthor |length %},{% endif %} {% endfor %}

{% endif %} {% endfor %} {% set publicCalcule = (publicCount/10) %} {% set decimalPublic = publicCalcule|round(0) - publicCalcule %} {% if decimalPublic > 0 %} {% set publicCalcule = publicCalcule|round(0)+1 %} {% endif %} {% if publicCalcule > 1 %} {% for i in 1 .. publicCalcule %} {% if i == 1 %} {{ i }} {% else %} {{ i }} {% endif %} {% endfor %} {% endif %} {% endif %}
{% endblock %}