{% extends "base.html" %}
{% block title %}Trait Submission{% endblock %}
{% block css %}
{% endblock %}
{% block content %}
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
{{ message }}
{% endfor %}
{% endif %}
{% endwith %}
{%if (not waiting) and (not approved) and (not rejected)%}
There are no diffs to act on.
{%endif%}
{% if waiting %}
Files for approval:
Resource Id |
Author |
TimeStamp |
|
|
{% for data in waiting %}
{% set file_url = url_for('metadata_edit.show_diff', name=data.filepath.name) %}
{{ data.meta.get("resource_id") }} |
{{ data.meta.get("author")}} |
{{ data.meta.get("time_stamp")}} |
{% set reject_url = url_for('metadata_edit.reject_data', resource_id=data.meta.get('resource_id'), file_name=data.filepath.name, dataset_name=data.diff.dataset_name, trait_name=data.diff.trait_name) %}
{% set approve_url = url_for('metadata_edit.approve_data', resource_id=data.meta.get('resource_id'), file_name=data.filepath.name, dataset_name=data.diff.dataset_name, trait_name=data.diff.trait_name) %}
|
|
{% endfor %}
{% endif %}
{% if approved %}
Approved Data:
Resource Id |
Author |
TimeStamp |
{% for data in approved %}
{% set file_url = url_for('metadata_edit.show_diff', name=data.filepath.name) %}
{{ data.meta.get("resource_id") }} |
{{ data.meta.get("author")}} |
{{ data.meta.get("time_stamp")}} |
{% endfor %}
{% endif %}
{% if rejected %}
Rejected Files:
Resource Id |
Author |
TimeStamp |
{% for data in rejected %}
{% set file_url = url_for('metadata_edit.show_diff', name=data.filepath.name) %}
{{ data.meta.get("resource_id") }} |
{{ data.meta.get("author")}} |
{{ data.meta.get("time_stamp")}} |
{% endfor %}
{% endif %}
{%endblock%}
{% block js %}
{% endblock %}