-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleaned up UI of project/task pages -- particularly list of deliverab…
…les links resolves #62
- Loading branch information
Showing
8 changed files
with
144 additions
and
117 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
src/marketplace/templates/marketplace/components/proj_task_deliverables_list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{% if task.task_home_url %} | ||
<a href="{{ task.task_home_url }}" target="_blank" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center"> | ||
External task home | ||
<span class="material-icons d-inline-flex"><small>open_in_new</small></span> | ||
</a> | ||
{% endif %} | ||
|
||
{% if task.task_deliverables_url %} | ||
<a href="{{ task.task_deliverables_url }}" target="_blank" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center"> | ||
External deliverables page | ||
<span class="material-icons d-inline-flex"><small>open_in_new</small></span> | ||
</a> | ||
{% endif %} | ||
|
||
{% if project.deliverable_management_url %} | ||
<a href="{{ project.deliverable_management_url }}" target="_blank" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center"> | ||
External project home | ||
<span class="material-icons d-inline-flex"><small>open_in_new</small></span> | ||
</a> | ||
{% endif %} | ||
|
||
{% if project.deliverable_github_url %} | ||
<a href="{{ project.deliverable_github_url }}" target="_blank" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center"> | ||
Project GitHub page | ||
<span class="material-icons d-inline-flex"><small>open_in_new</small></span> | ||
</a> | ||
{% endif %} | ||
|
||
{% if project.deliverable_reports_url %} | ||
<a href="{{ project.deliverable_reports_url }}" target="_blank" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center"> | ||
Project reports | ||
<span class="material-icons d-inline-flex"><small>open_in_new</small></span> | ||
</a> | ||
{% endif %} | ||
|
||
{% if project.deliverable_documentation_url %} | ||
<a href="{{ project.deliverable_documentation_url }}" target="_blank" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center"> | ||
Project documentation | ||
<span class="material-icons d-inline-flex"><small>open_in_new</small></span> | ||
</a> | ||
{% endif %} |
39 changes: 16 additions & 23 deletions
39
src/marketplace/templates/marketplace/proj_deliverables.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,24 @@ | ||
{% extends "marketplace/proj.html" %} | ||
|
||
{% block tabcontents %} | ||
{% load markdown_deux_tags %} | ||
|
||
{% load markdown_deux_tags %} | ||
{% block tabcontents %} | ||
<div class="col-lg-5"> | ||
<h4 class="section-header">Project results</h4> | ||
|
||
<h4 class="section-header">Project results</h4> | ||
{% if project.is_completed %} | ||
{% if project.deliverables_description %} | ||
{{ project.deliverables_description|markdown }} | ||
{% else %} | ||
<p>This project has been completed.</p> | ||
<p>Below you can find links to all the public results, documentation, data, code, <em>etc.</em> that has been generated as part of the project.</p> | ||
{% endif %} | ||
|
||
{% if project.is_completed %} | ||
{% if project.deliverables_description %} | ||
{{ project.deliverables_description|markdown }} | ||
<div class="list-group list-group-flush"> | ||
{% include 'marketplace/components/proj_task_deliverables_list.html' with project=project %} | ||
</div> | ||
{% else %} | ||
<p>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.</p> | ||
{% endif %} | ||
{% if project.deliverable_management_url %} | ||
<div><a href="{{ project.deliverable_management_url }}">Project home</a></div> | ||
{% endif %} | ||
{% if project.deliverable_github_url %} | ||
<div><a href="{{ project.deliverable_github_url }}">Project github page</a></div> | ||
<p>This project is still in progress, so no public deliverables are available.</p> | ||
{% endif %} | ||
{% if project.deliverable_reports_url %} | ||
<div><a href="{{ project.deliverable_reports_url }}">Project reports</a></div> | ||
{% endif %} | ||
{% if project.deliverable_documentation_url %} | ||
<div><a href="{{ project.deliverable_documentation_url }}">Project documentation</a></div> | ||
{% endif %} | ||
{% else %} | ||
<p>This project is still in progress, so no public deliverables are available.</p> | ||
{% endif %} | ||
|
||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
{% extends 'marketplace/proj.html' %} | ||
|
||
{% block tabcontents %} | ||
|
||
<form id="finishproject"> | ||
<h4 class="section-header">Finish project</h4> | ||
<p>Are you sure you want to finish this project? This will make the project completed and no more volunteering work will be allowed in it.</p> | ||
|
||
<p>Are you sure you want to finish this project?</p> | ||
<p>This will make the project completed and no more volunteering work will be allowed in it.</p> | ||
|
||
{% csrf_token %} | ||
{% include 'marketplace/components/standard_form_fields.html' %} | ||
|
||
<div class="form-row"> | ||
<div class="col-lg-9 offset-lg-3"> | ||
<button type="submit" | ||
form="finishproject" | ||
formaction="{% url 'marketplace:proj_finish' project.id %}" | ||
formmethod="post" | ||
class="btn btn-success mr-3"> | ||
<i class="material-icons" style="vertical-align: middle">done_all</i> | ||
Yes, finish this project | ||
</button> | ||
<a class="btn btn-outline-primary" href="{% url 'marketplace:proj_info' project.id %}"> | ||
<i class="material-icons" style="vertical-align: middle">close</i> | ||
No, keep this project in QA | ||
</a> | ||
</div> | ||
</div> | ||
<button type="submit" | ||
form="finishproject" | ||
formaction="{% url 'marketplace:proj_finish' project.id %}" | ||
formmethod="post" | ||
class="btn btn-success mr-2"> | ||
<i class="material-icons" style="vertical-align: middle">done_all</i> | ||
Yes, finish this project | ||
</button> | ||
<a class="btn btn-outline-primary" href="{% url 'marketplace:proj_info' project.id %}"> | ||
<i class="material-icons" style="vertical-align: middle">close</i> | ||
No, keep this project in QA | ||
</a> | ||
</form> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 30 additions & 14 deletions
44
src/marketplace/templates/marketplace/proj_task_review.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters