ความคืบหน้างาน ไฟล์ต้นฉบับ

tracker/templates/checkpoints.html

{{define "content"}}
<header class="page-head">
  <h1>ประวัติ Checkpoint</h1>
  <p class="lede">บันทึกสรุปที่ Agent เขียนหลังทำงานแต่ละช่วง ว่าทำอะไร แก้ไขหรืออัปเดตอะไร และเกี่ยวกับ task ไหน เรียงจากล่าสุด</p>
</header>
{{if .Checkpoints}}
<ol class="timeline">
  {{range .Checkpoints}}
  <li class="cp" id="{{.ID}}">
    <time class="cp-when" datetime="{{.When.Format "2006-01-02T15:04:05Z07:00"}}">{{thaiDateTime .When}}</time>
    <article class="cp-body">
      <h2 class="cp-title">{{.Title}}</h2>
      <p class="cp-meta"><span class="tid">{{.ID}}</span>{{if .Agent}} {{.Agent}}{{end}}{{if .Commit}} <span class="cp-commit">commit <code>{{.Commit}}</code></span>{{end}}</p>
      {{if .Summary}}<p class="cp-summary">{{.Summary}}</p>{{end}}
      {{if .Changes}}<ul class="cp-changes">{{range .Changes}}<li>{{.}}</li>{{end}}</ul>{{end}}
      {{if .Tasks}}<p class="cp-tasks">Task: {{range .Tasks}}<a class="cp-task" href="{{taskHref .}}">{{.}}</a>{{end}}</p>{{end}}
      {{template "refs" .Refs}}
    </article>
  </li>
  {{end}}
</ol>
{{else}}
<p class="empty">ยังไม่มี checkpoint เมื่อทำงานเสร็จแต่ละช่วง ให้เพิ่มบันทึกสรุปใน <code>tracker/data/checkpoints.json</code></p>
{{end}}
{{end}}