mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-19 10:08:03 +08:00
增加文档编辑时间显示
This commit is contained in:
@@ -226,8 +226,12 @@ func (c *DocumentController) Read() {
|
||||
if doc.ModifyTime != doc.CreateTime {
|
||||
docInfo += ";更新于 "
|
||||
docInfo += doc.ModifyTime.Format("2006-01-02 15:04")
|
||||
if strings.TrimSpace(doc.Release) != "" {
|
||||
doc.Release += "<div class=\"wiki-bottom\">文档更新时间: " + doc.ModifyTime.Format("2006-01-02 15:04") + "</div>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if c.IsAjax() {
|
||||
var data struct {
|
||||
DocTitle string `json:"doc_title"`
|
||||
|
Reference in New Issue
Block a user