{% if type == 'subdef' %} {% for mediaSubdef in mediaSubdefs %} {% endfor %} {% for notGeneratedSubdef in notGeneratedSubdefs %} {% endfor %}
{{ 'admin::inspector: subdefname' | trans }} {{ 'admin::inspector: path' | trans }} {{ 'admin::inspector: creation date' | trans }} {{ 'admin::inspector: modification date' | trans }}
{{ mediaSubdef.get_name() }} {{ mediaSubdef.getRealPath() }} {{ mediaSubdef.get_creation_date() | date('Y-m-d H:i:s') }} {{ mediaSubdef.get_modification_date() | date('Y-m-d H:i:s')}}
{{ notGeneratedSubdef }} - - -
{% endif %} {% if type == 'basket' %} {% for basketElement in basketElements %} {% endfor %}
{{ 'admin::inspector: basket id' | trans }} {{ 'admin::inspector: basket name' | trans }} {{ 'admin::inspector: basket user id' | trans }} {{ 'admin::inspector: basket creation date' | trans }} {{ 'admin::inspector: basket modification date' | trans }} {{ 'admin::inspector: basket archive' | trans }}
{{ basketElement.getBasket().getId() }} {{ basketElement.getBasket().getName() }} {{ basketElement.getBasket().getUser().getId() }} {{ basketElement.getBasket().getCreated() | date('Y-m-d H:i:s') }} {{ basketElement.getBasket().getUpdated() | date('Y-m-d H:i:s')}} {% set archived = basketElement.getBasket().getArchived() %} {% if archived %} yes {% else %} no {% endif %}
{% endif %} {% if type == 'story' %} {% for recordParent in recordParents %} {% endfor %}
{{ 'admin::inspector: story id' | trans }} {{ 'admin::inspector: story title' | trans }} {{ 'admin::inspector: story creation date' | trans }} {{ 'admin::inspector: story modification date' | trans }}
{{ recordParent.getRecordId() }} {{ recordParent.get_title() }} {{ recordParent.getCreated() | date('Y-m-d H:i:s') }} {{ recordParent.getUpdated() | date('Y-m-d H:i:s') }}
{% endif %} {% if type == 'log' %} {% for logDoc in logDocs %} {% endfor %}
{{ 'log_docs id' }} {{ 'Date'}} {{ 'Action'}} {{ 'Final' }} {{ 'Comment' }}
{{ logDoc.id }} {{ logDoc.date | date('Y-m-d H:i:s') }} {% if logDoc.action == 'push' %} {% set n_user = logDoc.final | length %} {% trans with {'%n_user%' : n_user } %}report::Push vers %n_user% utilisateurs depuis lapplication box{% endtrans %} {% elseif logDoc.action == 'validate' %} {% set n_user = logDoc.final | length %} {% trans with {'%n_user%' : n_user } %}report::Demande de validation vers %n_user% utilisateurs depuis lapplication box{% endtrans %} {% elseif logDoc.action == 'edit' %} {{ 'report::Edition des meta-donnees' | trans }} {% elseif logDoc.action == 'collection' %} {% set dest = logDoc.final | join(', ') %} {% set coll_name = dest|bas_labels(app) %} {% trans with {'%coll_name%' : coll_name} %}report::Changement de collection vers : %coll_name%{% endtrans %} {% elseif logDoc.action == 'status' %} {{ 'report::Edition des status' | trans }} {% elseif logDoc.action == 'print' %} {% set format = logDoc.final | join(', ') %} {% trans with {'%format%' : format} %}report::Impression des formats : %format%{% endtrans %} {% elseif logDoc.action == 'substit' %} {% set dest = logDoc.final | join(', ') %} {% trans with {'%dest%' : dest} %}report::Substitution de %dest%{% endtrans %} {% elseif logDoc.action == 'publish' %} {% set dest = logDoc.final | join(', ') %} {% trans with {'%dest%' : dest} %}report::Publication de %dest%{% endtrans %} {% elseif logDoc.action == 'download' %} {% set dest = logDoc.final | join(', ') %} {% trans with {'%dest%' : dest} %}report::Telechargement de %dest%{% endtrans %} {% elseif logDoc.action == 'mail' %} {% set dest = logDoc.comment | join(', ') %} {% set content = logDoc.final | join(', ') %} {% trans with {'%dest%' : dest, '%content%' : content} %}Envoi par mail a %dest% de %content%{% endtrans %} {% elseif logDoc.action == 'ftp' %} {% set dest = logDoc.comment | join(', ') %} {% set content = logDoc.final | join(', ') %} {% trans with {'%dest%' : dest, '%content%' : content} %}Envoi par ftp a %dest% de %content%{% endtrans %} {% elseif logDoc.action == 'subdefCreation' %} {% set comment = logDoc.comment | join(', ') | json_to_array %} {% trans with {'%subdefName%' : logDoc.final | join(', '), '%duration%' : (comment.duration == '') ? '-' : comment.duration | date_duration , '%status%' : comment.status} %}create subdefinition during %duration% -- status %status%{% endtrans %} {% elseif logDoc.action == 'writeMetadatas' %} {% set comment = logDoc.comment | join(', ') | json_to_array %} {% trans with {'%subdefName%' : logDoc.final | join(', '), '%duration%' : (comment.duration == '') ? '-' : comment.duration | date_duration , '%status%' : comment.status} %}write metadatas during %duration% -- status %status%{% endtrans %} {% elseif logDoc.action == 'delete' %} {{ 'report::supression du document' | trans }} {% elseif logDoc.action == 'add' %} {{ 'report::ajout du documentt' | trans }} {% else %} {{ 'report::Modification du document -- je ne me souviens plus de quoi...' | trans }} {% endif %} {% if logDoc.usrid is not null %} {% set user = app['repo.users'].find(logDoc.usrid) %} {% set user_infos = user.getDisplayName() | e %} {% trans with {'%user_infos%' : user_infos} %}report:: par %user_infos%{% endtrans %} {% endif %} {{ logDoc.final }} {{ logDoc.comment }}
{% endif %}