diff --git a/src/marketplace/templates/marketplace/components/proj_task_deliverables_list.html b/src/marketplace/templates/marketplace/components/proj_task_deliverables_list.html new file mode 100644 index 0000000..7e8f94d --- /dev/null +++ b/src/marketplace/templates/marketplace/components/proj_task_deliverables_list.html @@ -0,0 +1,41 @@ +{% if task.task_home_url %} + + External task home + +{% endif %} + +{% if task.task_deliverables_url %} + + + External deliverables page + +{% endif %} + +{% if project.deliverable_management_url %} + + + External project home + +{% endif %} + +{% if project.deliverable_github_url %} + + + Project GitHub page + +{% endif %} + +{% if project.deliverable_reports_url %} + + + Project reports + +{% endif %} + +{% if project.deliverable_documentation_url %} + + + Project documentation + +{% endif %} diff --git a/src/marketplace/templates/marketplace/proj_deliverables.html b/src/marketplace/templates/marketplace/proj_deliverables.html index b599b74..1b86fc9 100644 --- a/src/marketplace/templates/marketplace/proj_deliverables.html +++ b/src/marketplace/templates/marketplace/proj_deliverables.html @@ -1,31 +1,24 @@ {% extends "marketplace/proj.html" %} -{% block tabcontents %} +{% load markdown_deux_tags %} - {% load markdown_deux_tags %} +{% block tabcontents %} + +
This project has been completed.
+Below you can find links to all the public results, documentation, data, code, etc. that has been generated as part of the project.
+ {% endif %} - {% if project.is_completed %} - {% if project.deliverables_description %} - {{ project.deliverables_description|markdown }} +This project has been completed. Below you can find links to all the public results, documentation, data, code, etc. that has been generated as part of the project.
- {% endif %} - {% if project.deliverable_management_url %} - - {% endif %} - {% if project.deliverable_github_url %} - +This project is still in progress, so no public deliverables are available.
{% endif %} - {% if project.deliverable_reports_url %} - - {% endif %} - {% if project.deliverable_documentation_url %} - - {% endif %} - {% else %} -This project is still in progress, so no public deliverables are available.
- {% endif %} - +{{ project_task.description|markdown }}
-{{ project_task.onboarding_instructions|markdown }}
- - {% if project.deliverable_management_url %} - External project home - {% endif %} - {% if project.deliverable_github_url %} - Project github page - {% endif %} - {% if project.deliverable_reports_url %} - Project reports - {% endif %} - {% if project.deliverable_documentation_url %} - Project documentation - {% endif %} - +{{ project_task.description|markdown }}
+{{ project_task.onboarding_instructions|markdown }}
+Start: {{ project_task.estimated_start_date }} (estimated), {{ project_task.actual_start_date }} (actual)
-End: {{ project_task.estimated_end_date }} (estimated), {{ project_task.actual_end_date }} (actual)
+End: {{ project_task.estimated_end_date }} (estimated){% if project_task.actual_end_date %}, {{ project_task.actual_end_date }} (actual){% endif %}
Created on: {{ project_task.creation_date }}
Last modified: {{ project_task.last_modified_date }}
Start: {{ project_task.estimated_start_date }} (estimated), {{ project_task.actual_start_date }} (actual)
-End: {{ project_task.estimated_end_date }} (estimated), {{ project_task.actual_end_date }} (actual)
+End: {{ project_task.estimated_end_date }} (estimated){% if project_task.actual_end_date %}, {{ project_task.actual_end_date }} (actual){% endif %}
Estimated effort in hours: {{ project_task.estimated_effort_hours }}
-Actual effort spent in hours: {{ project_task.actual_effort_hours }}
+Estimated effort in hours: {{ project_task.estimated_effort_hours|default:'(none)' }}
+Actual effort spent in hours: {{ project_task.actual_effort_hours|default:'(none)' }}
-External task home: {{ project_task.task_home_url }}
-External deliverables page: {{ project_task.task_deliverables_url }}
+External task home: {{ project_task.task_home_url|default:'(none)'|urlize }}
+External deliverables page: {{ project_task.task_deliverables_url|default:'(none)'|urlize }}
Remember to put all the results of your work in the appropriate sites - designed for the task:
- {% if project.deliverable_management_url %} - External project home - {% endif %} - {% if project.deliverable_github_url %} - Project github page - {% endif %} - {% if project.deliverable_reports_url %} - Project reports - {% endif %} - {% if project.deliverable_documentation_url %} - Project documentation - {% endif %} +Task: {{ project_task.name }}
+ ++
Remember to put all the results of your work into the appropriate documents and/or repositories + designated for this task.
+You don't have any active task in this project.
{% endif %} diff --git a/src/marketplace/templates/marketplace/proj_task_review.html b/src/marketplace/templates/marketplace/proj_task_review.html index 8b9b287..ee29f64 100644 --- a/src/marketplace/templates/marketplace/proj_task_review.html +++ b/src/marketplace/templates/marketplace/proj_task_review.html @@ -1,24 +1,40 @@ {% extends "marketplace/proj_task_base.html" %} +{% load markdown_deux_tags rules %} + {% block taskcontents %} +Task: {{ project_task.name }}
-Estimated effort in hours: {{ project_task.estimated_effort_hours }}
-Total effort spent (in hours): {{ task_review.volunteer_effort_hours }}
-Volunteer's comments: {{ task_review.volunteer_comment|markdown }}
+External task home: {{ project_task.task_home_url }}
- {% endif %} - {% if project_task.task_deliverables_url %} -External deliverables page: {{ project_task.task_deliverables_url }}
- {% endif %} -Request date: {{ task_review.review_request_date }}
+{{ task_review.volunteer_comment|markdown }}+