{% include 'duplicate-modal.html' %}
{# Modal for timestamping #}
{{ 'Timestamp Entry'|trans }}
{{ 'Timestamping an entry will create an irrefutable proof that the data was present at this point in time. You can timestamp an entry as many times as necessary: an immutable timestamp archive will be created each time, and stored as attachment.'|trans }}
{{ 'With Trusted Timestamping (RFC3161), a cryptographic hash of your data is sent to a trusted third party. They reply with a token containing the current time, and they sign the token with their private key.'|trans }}
{# Modal for blockchain timestamping #}
{{ 'Timestamp Entry'|trans }}
{# this first paragraph is the same as above for trusted timestamping #}
{{ 'Timestamping an entry will create an irrefutable proof that the data was present at this point in time. You can timestamp an entry as many times as necessary: an immutable timestamp archive will be created each time, and stored as attachment.'|trans }}
{{ 'With Blockchain Timestamping, the cryptographic fingerprint of your data is added to a blockchain that is impossible to modify. This function uses the Bloxberg Consortium blockchain based on Ethereum.'|trans }}
{# Modal for signature #}
{{ 'Add signature'|trans }}
{{ 'Adding your signature will cryptographically sign the content of this entry, and the signature will be stored alongside the content at the time of signature, in an archive, visible as attachment (masked by default because archived).'|trans }}
{% if not App.Users.userData.sig_privkey %}
{{ 'Your account is missing a cryptographic key pair, necessary for signature. You must generate one from your User Control Panel before you can sign an entry.'|trans }}
{% else %}
{% endif %}
{% if Entity.entityData.is_procurable %}
{# Modal for procurement request #}
{{ 'Create procurement request'|trans }}
{{ 'This resource can be purchased. It costs %.2f %s for %d units.'|format(Entity.entityData.proc_price_tax, Entity.entityData.proc_currency|toSymbol, Entity.entityData.proc_pack_qty)|trans }}
{% endif %}
{# TOP TOOLBAR #}
{# BACK TO LINK #}
{% if App.Session.has('lastquery') %}
{% set lastquery = App.Session.get('lastquery') %}
{% else %}
{% set lastquery = 'mode=show' %}
{% endif %}
{# for templates: create from button #}
{% if Entity.entityType.value == 'experiments_templates' %}
{% endif %}
{% if mode == 'edit' %}
{# VIEW #}
{% else %}
{# EDIT #}
{% if not (Entity.entityData.locked or Entity.isReadOnly) %}
{% endif %}
{% endif %}
{% if not App.Session.has('is_anon') %}
{# DUPLICATE #}
{% if Entity.entityType.value == 'items' and Entity.canBook and Entity.entityData.is_bookable %}
{% endif %}
{% endif %}
{% if not App.Session.has('is_anon') and App.Config.configArr.anon_users and Entity.entityData.access_key %}
{# SHARE #}
{% endif %}
{# SIGN #}
{# TIMESTAMP #}
{% if not App.Session.has('is_anon') and not Entity.isReadOnly %}
{% endif %}
{# BLOXBERG TIMESTAMP #}
{% if not Entity.isReadOnly and App.Config.configArr.blox_enabled %}
{% endif %}
{# PROCUREMENT REQUEST #}
{% if Entity.entityData.is_procurable %}
{% endif %}
{% if not App.Session.has('is_anon') %}
{% endif %}
{# DOWNLOAD / EXPORT MENU #}
{% include 'export-menu.html' %}
{% if not App.Session.has('is_anon') %}
{# TOGGLE PIN #}
{% include 'toggle-pin.html' %}
{# LOCK #}
{% set lockIcon = 'fa-lock-open' %}
{% set alt = 'Lock/Unlock item'|trans %}
{% if Entity.entityData.locked %}
{% set lockIcon = 'fa-lock' %}
{% set alt = Entity.entityData.locked_at %}
{% endif %}
{% endif %}
{# EXCLUSIVE EDIT MODE #}
{% if mode == 'edit' and App.Users.userData.enforce_exclusive_edit_mode != 1 or mode == 'view' and Entity.ExclusiveEditMode.isActive and App.Users.userData.enforce_exclusive_edit_mode == 1 %}
{% set lockIcon = 'fa-lock-open' %}
{% set alt = 'Enable/Disable exclusive edit mode'|trans %}
{% if Entity.ExclusiveEditMode.isActive %}
{% set lockIcon = 'fa-lock' %}
{% endif %}
{% endif %}
{# REQUEST ACTION #}
{# MORE OPTIONS #}
{% if Entity.entityType.value == 'items' %}
{# BOOKING PARAMS #}
{# PROCUREMENT #}
{% endif %}
{# TRANSFER OWNERSHIP #}
{% if Entity.entityData.userid == App.Users.userData.userid or App.Users.isAdmin %}
{% endif %}
{# REVISIONS #}
{{ 'See revisions'|trans }}
{# CHANGELOG #}
{{ 'See changelog'|trans }}
{% if not App.Session.has('is_anon') %}
{% endif %}
{# DELETE #}
{# show message if we are not owner #}
{% if Entity.entityData.userid != Entity.Users.userData.userid %}
{{ 'Owned by %s'|trans|format(Entity.entityData.fullname)|msg('ok', false) }}
{% endif %}