## Body for history items, extra info and actions, data "peek"
<% current_user_roles = trans.get_current_user_roles() %>
%if not trans.user_is_admin() and not trans.app.security_agent.can_access_dataset( current_user_roles, data.dataset ):
You do not have permission to view this dataset.
%elif data_state == "queued":
Job is waiting to run
%elif data_state == "running":
Job is currently running
%elif data_state == "error":
An error occurred running this job.
%elif data_state == "discarded":
The job creating this dataset was cancelled before completion.
%elif data_state == 'setting_metadata':
Metadata is being Auto-Detected.
%elif data_state == "empty":
No data: ${data.display_info()}
%elif data_state in [ "ok", "failed_metadata" ]:
%if data_state == "failed_metadata":
Warning: setting metadata failed,
%endif
${data.blurb},
format: ${data.ext},
database: ${data.dbkey}
%else:
Error: unknown dataset state "${data_state}".
%endif