Tweaks to attract index and text for empty list of own tasks
This commit is contained in:
@@ -1,9 +1,14 @@
|
|||||||
| {% extends 'attract/layout.html' %}
|
| {% extends 'attract/layout.html' %}
|
||||||
| {% block bodyattrs %}{{ super() }} data-context='dashboard'{% endblock %}
|
| {% block bodyattrs %}{{ super() }} data-context='dashboard'{% endblock %}
|
||||||
| {% block page_title %}Attract{% endblock %}
|
| {% block page_title %}Dashboard{% endblock %}
|
||||||
|
|
||||||
| {% block body %}
|
| {% block body %}
|
||||||
#col_main
|
#col_main
|
||||||
|
.dashboard
|
||||||
|
.d-stats
|
||||||
|
h3
|
||||||
|
i.pi-attract
|
||||||
|
| Attract
|
||||||
| {% if current_user.is_authenticated %}
|
| {% if current_user.is_authenticated %}
|
||||||
| {% from "attract/tasks/task_list_for_user.html" import task_list_for_user %}
|
| {% from "attract/tasks/task_list_for_user.html" import task_list_for_user %}
|
||||||
| {{ task_list_for_user(tasks['_meta']['total'], tasks['_items']) }}
|
| {{ task_list_for_user(tasks['_meta']['total'], tasks['_items']) }}
|
||||||
@@ -14,7 +19,7 @@
|
|||||||
#col_right
|
#col_right
|
||||||
.dashboard
|
.dashboard
|
||||||
.d-stats
|
.d-stats
|
||||||
h3 Attract Projects
|
h3 Statistics
|
||||||
|
|
||||||
| {% for proj, summary in projs_with_summaries %}
|
| {% for proj, summary in projs_with_summaries %}
|
||||||
.d-stats-card
|
.d-stats-card
|
||||||
|
@@ -1,19 +1,24 @@
|
|||||||
| {% macro task_list_for_user(task_count, tasks, include_shotname=True) -%}
|
| {% macro task_list_for_user(task_count, tasks, include_shotname=True) -%}
|
||||||
.col_header.task-list-header
|
.col_header.task-list-header
|
||||||
| Your tasks ({{ task_count }})
|
| Your Tasks ({{ task_count }})
|
||||||
|
|
||||||
#task-list.col-list
|
#task-list.col-list
|
||||||
| {% for task in tasks %}
|
| {% for task in tasks if tasks %}
|
||||||
//- NOTE: this is tightly linked to the JS in tasks.js, function task_add()
|
//- NOTE: this is tightly linked to the JS in tasks.js, function task_add()
|
||||||
a.col-list-item.task-list-item(
|
a.col-list-item.task-list-item(
|
||||||
class="status-{{ task.properties.status }} task-link",
|
class="status-{{ task.properties.status }} task-link",
|
||||||
title="In project '{{ task._project_info.name }}'",
|
title="In project '{{ task._project_info.name }}'",
|
||||||
href="{{ url_for('attract.tasks.perproject.view_task', project_url=task._project_info.url, task_id=task._id) }}")
|
href="{{ url_for('attract.tasks.perproject.view_task', project_url=task._project_info.url, task_id=task._id) }}")
|
||||||
span.status-indicator
|
span.status-indicator
|
||||||
| {% if include_shotname and task._parent_info %}
|
| {% if include_shotname and task._parent_info %}
|
||||||
span.shotname {{ task._parent_info.name }}
|
span.shotname {{ task._parent_info.name }}
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
span.name {{ task.name }}
|
span.name {{ task.name }}
|
||||||
span.type {{ task.properties.task_type }}
|
span.type {{ task.properties.task_type }}
|
||||||
| {% endfor %}
|
| {% else %}
|
||||||
|
.col-list-item.empty
|
||||||
|
span.no-tasks
|
||||||
|
i.pi-grin
|
||||||
|
| No tasks assigned to you. Holidays!
|
||||||
|
| {% endfor %}
|
||||||
| {%- endmacro %}
|
| {%- endmacro %}
|
||||||
|
Reference in New Issue
Block a user