2016-07-05 06:42:39 +00:00
|
|
|
{% for timesheet in doc.timesheets %}
|
|
|
|
<div class='timesheet'>
|
|
|
|
<a class="no-decoration timesheet-link {{ timesheet.css_seen }}" href="/timesheet/{{ timesheet.info.name}}">
|
|
|
|
<div class='row project-item'>
|
2018-10-16 06:30:46 +00:00
|
|
|
<div class='col-xs-10'>
|
2020-08-27 11:36:10 +00:00
|
|
|
<span class="indicator {{ "blue" if timesheet.info.status=="Submitted" else "red" if timesheet.info.status=="Draft" else "darkgray" }}" title="{{ timesheet.info.status }}" > {{ timesheet.info.name }} </span>
|
2016-07-05 06:42:39 +00:00
|
|
|
<div class="small text-muted item-timestamp">
|
2017-06-09 08:33:20 +00:00
|
|
|
{{ _("From") }} {{ frappe.format_date(timesheet.from_time) }} {{ _("to") }} {{ frappe.format_date(timesheet.to_time) }}
|
2016-07-05 06:42:39 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-10-16 06:30:46 +00:00
|
|
|
<div class='col-xs-1' style="margin-right:-30px;">
|
|
|
|
<span class="avatar avatar-small" title="{{ timesheet.info.modified_by }}"> <img src="{{ timesheet.info.user_image }}" style="display:flex;"></span>
|
2020-08-27 11:36:10 +00:00
|
|
|
</div>
|
2018-10-16 06:30:46 +00:00
|
|
|
<div class='col-xs-1'>
|
2016-07-05 06:42:39 +00:00
|
|
|
<span class="pull-right list-comment-count small {{ "text-extra-muted" if timesheet.comment_count==0 else "text-muted" }}">
|
|
|
|
<i class="octicon octicon-comment-discussion"></i>
|
|
|
|
{{ timesheet.info.comment_count }}
|
2020-08-27 11:36:10 +00:00
|
|
|
</span>
|
2016-07-05 06:42:39 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|