{% include 'includes/set_sessionid.html' %}
{% if is_valid_session %}
{% include 'includes/tg_project_info.html' %}
{% if not current_tg_project_id %}
{% set p_validation = project.get_validation_results(refresh=False) %}
{% set tg_project = tg_project if tg_project else project.get_tgp(instance) %}
{% set all_tgp_contents = tg_project.get_project_contents() %}
{% for c_validation in p_validation["subprojects"] %}
|
|
|
|
|
{% for file_name, file_errors in c_validation.files.items() %}
{% if 'file_attributes' in c_validation %}
{% set title = c_validation.file_attributes[file_name]['work_title'] %}
{% else %}
{% set title = file_name %}
{% endif %}
|
{{title}} ({{file_name}})
|
{% if len(file_errors) == 0 %}
{% else %}
{% endif %}
|
{% if all_tgp_contents[title] %}
{% else %}
{% endif %}
|
{% if all_tgp_contents[title] and all_tgp_contents[title]['published'] %}
{% else %}
{% endif %}
|
{% endfor %}
{% endfor %}
|
|
|
|
|
{% for filename in project.project_config.other_files.get_all_files() %}
|
{{filename}}
|
|
{% if all_tgp_contents[filename] %}
{% else %}
{% endif %}
|
{% if all_tgp_contents[filename] and all_tgp_contents[filename]['published'] %}
{% else %}
{% endif %}
|
{% endfor %}
{% endif %}