2021-07-01 11:47:34 +00:00
|
|
|
{% if doc.status == "Open" %}
|
|
|
|
<div class="web-list-item transaction-list-item">
|
|
|
|
<div class="row">
|
2022-04-07 13:57:27 +00:00
|
|
|
<div class="col-xs-2 project-link">
|
2021-07-01 11:47:34 +00:00
|
|
|
<a class="transaction-item-link" href="/projects?project={{ doc.name | urlencode }}">Link</a>
|
|
|
|
{{ doc.name }}
|
|
|
|
</div>
|
2022-04-07 13:57:27 +00:00
|
|
|
<div class="col-xs-2 project-name">
|
2021-07-01 11:47:34 +00:00
|
|
|
{{ doc.project_name }}
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-3 text-center">
|
|
|
|
{% if doc.percent_complete %}
|
|
|
|
{% set pill_class = "green" if doc.percent_complete | round == 100 else
|
|
|
|
"orange" %}
|
|
|
|
<div class="ellipsis">
|
|
|
|
<span class="indicator-pill {{ pill_class }} filterable ellipsis">
|
|
|
|
<span>{{ frappe.utils.cint(doc.percent_complete) }}
|
|
|
|
%</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<span class="indicator-pill {{ " red" if doc.status=="Open" else "darkgrey" }}">
|
|
|
|
{{ doc.status }}</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% if doc["_assign"] %}
|
|
|
|
{% set assigned_users = json.loads(doc["_assign"])%}
|
2022-04-07 13:57:27 +00:00
|
|
|
<div class="col-xs-2 project-users">
|
2021-07-01 11:47:34 +00:00
|
|
|
{% for user in assigned_users %}
|
|
|
|
{% set user_details = frappe
|
|
|
|
.db
|
|
|
|
.get_value("User", user, [
|
|
|
|
"full_name", "user_image"
|
|
|
|
], as_dict = True) %}
|
|
|
|
{% if user_details.user_image %}
|
|
|
|
<span class="avatar avatar-small" style="width:32px; height:32px;" title="{{ user_details.full_name }}">
|
|
|
|
<img src="{{ user_details.user_image }}">
|
|
|
|
</span>
|
|
|
|
{% else %}
|
|
|
|
<span class="avatar avatar-small" style="width:32px; height:32px;" title="{{ user_details.full_name }}">
|
|
|
|
<div class='standard-image' style="background-color: #F5F4F4; color: #000;">
|
|
|
|
{{ frappe.utils.get_abbr(user_details.full_name) }}
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-04-07 13:57:27 +00:00
|
|
|
<div class="col-xs-3 text-right small text-muted project-modified-on">
|
2021-07-01 11:47:34 +00:00
|
|
|
{{ frappe.utils.pretty_date(doc.modified) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-16 12:31:22 +00:00
|
|
|
{% endif %}
|