-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds topic tree to taxonomy task detail view
- Loading branch information
1 parent
25ba39f
commit 03237a7
Showing
9 changed files
with
203 additions
and
168 deletions.
There are no files selected for viewing
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
47 changes: 0 additions & 47 deletions
47
indigo_app/templates/indigo_app/tasks/taxonomy_project_detail.html
This file was deleted.
Oops, something went wrong.
57 changes: 57 additions & 0 deletions
57
indigo_app/templates/indigo_app/tasks/taxonomy_task_detail.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,57 @@ | ||
{% extends "indigo_app/tasks/tabbed_layout.html" %} | ||
{% load i18n %} | ||
|
||
{% block title %}{% trans "Projects" %}{% endblock %} | ||
|
||
{% block content %} | ||
<div class="container-fluid mt-3 mb-5"> | ||
<div class="row"> | ||
<div class="col-md-3"> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<div data-vue-component="TaxonomyTOC"></div> | ||
{{ taxonomy_toc|json_script:"taxonomy_toc" }} | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md"> | ||
<div class="flex-fill"> | ||
<h5>{{ topic.name }}</h5> | ||
</div> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<div class="row"> | ||
<div class="col-7"> | ||
{% if topic.description %} | ||
{{ topic.description|safe }} | ||
{% endif %} | ||
</div> | ||
<div class="col-5"> | ||
<div class="row mt-2"> | ||
<div class="col-8"> | ||
<div class="progress bg-light"> | ||
<div class="progress-bar bg-success" role="progressbar" style="width: {{ project.pct_done }}%"></div> | ||
</div> | ||
</div> | ||
<div class="col text-muted"> | ||
{% blocktrans trimmed with n_done=topic.n_done count n_tasks=topic.n_tasks %} | ||
{{ n_done }} of {{ n_tasks }} task | ||
{% plural %} | ||
{{ n_done }} of {{ n_tasks }} tasks | ||
{% endblocktrans %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card-header p-sticky-0"> | ||
{% include 'indigo_api/_task_filter_form.html' with form=form show_country=True %} | ||
</div> | ||
{% if tasks %} | ||
{% include 'indigo_api/_task_cards.html' with task_groups=task_groups assign_button=False %} | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
Oops, something went wrong.