Show Task's "last touched" in the web interface
This commit is contained in:
parent
1c9846bb8f
commit
92d6693871
@ -265,6 +265,10 @@ func taskDBtoAPI(dbTask *persistence.Task) api.Task {
|
||||
}
|
||||
}
|
||||
|
||||
if !dbTask.LastTouchedAt.IsZero() {
|
||||
apiTask.LastTouched = &dbTask.LastTouchedAt
|
||||
}
|
||||
|
||||
for i := range dbTask.Commands {
|
||||
apiTask.Commands[i] = commandDBtoAPI(dbTask.Commands[i])
|
||||
}
|
||||
|
@ -26,6 +26,9 @@
|
||||
|
||||
<dt class="field-updated">Updated</dt>
|
||||
<dd>{{ datetime.relativeTime(taskData.updated) }}</dd>
|
||||
|
||||
<dt class="field-last-touched">Last Touched by Worker</dt>
|
||||
<dd>{{ datetime.relativeTime(taskData.last_touched) }}</dd>
|
||||
</dl>
|
||||
|
||||
<h3 class="sub-title">Commands</h3>
|
||||
|
Loading…
x
Reference in New Issue
Block a user