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

tracker/templates/problems.html

{{define "content"}}
<header class="page-head">
  <h1>Problem solving</h1>
  <p class="lede">ปัญหาที่เจอระหว่างทำงานและวิธีแก้ ใช้อ้างอิงเมื่อเจอปัญหาแบบเดิมอีก ยังเปิดอยู่ {{.OpenProblem}} เรื่อง</p>
</header>
{{if .Problems}}
<div class="problems">
  {{range .Problems}}
  <article class="problem{{if ne .Status "solved"}} is-open{{end}}" id="{{.ID}}">
    <header class="problem-head">
      <h2><span class="tid">{{.ID}}</span> {{.Title}}</h2>
      <p class="problem-meta">{{if eq .Status "solved"}}<span class="chip chip-pass">แก้แล้ว</span>{{else}}<span class="chip chip-fail">ยังไม่แก้</span>{{end}} {{thaiDate .Date}}{{with index $.Epics .Epic}} {{template "where" .}}{{end}}</p>
    </header>
    <dl class="problem-body">
      {{if .Symptom}}<div><dt>อาการ</dt><dd>{{.Symptom}}</dd></div>{{end}}
      {{if .Cause}}<div><dt>สาเหตุ</dt><dd>{{.Cause}}</dd></div>{{end}}
      {{if .Solution}}<div><dt>วิธีแก้</dt><dd>{{.Solution}}</dd></div>{{end}}
    </dl>
    {{template "refs" .Refs}}
  </article>
  {{end}}
</div>
{{else}}
<p class="empty">ยังไม่มีบันทึกปัญหา เพิ่มได้ใน <code>tracker/data/problems.json</code></p>
{{end}}
{{end}}