本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
matt
/
life-report
關注
1
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
活動
瀏覽代碼
Support `rank` property in reports
This presents the items as an ordered list, rather than an unordered list.
master
Matt Baer
8 年之前
父節點
917025c260
當前提交
72226b065d
共有
2 個檔案被更改
,包括
4 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
lifereport.go
+3
-0
report.tmpl
+ 1
- 0
lifereport.go
查看文件
@@ -32,6 +32,7 @@ type (
Title string `json:"title"`
Summary []template.HTML `json:"summary"`
Details []template.HTML `json:"details"`
Rank []template.HTML `json:"rank"`
}
)
+ 3
- 0
report.tmpl
查看文件
@@ -15,6 +15,9 @@
{{if .Details}}<ul>
{{range .Details}}<li>{{.}}</li>{{end}}
</ul>{{end}}
{{if .Rank}}<ol>
{{range .Rank}}<li>{{.}}</li>{{end}}
</ol>{{end}}
<hr />
{{end}}
</div>
Write
Preview
Loading…
取消
儲存