Skip to content

Commit

Permalink
feat:增加文章阅读页编辑按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
lifei6671 committed Sep 18, 2018
1 parent b8c2970 commit 4d59df6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions views/blog/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
<div class="item">{{.Model.ModifyRealName}}</div>
<div class="item">修改于</div>
<div class="item">{{date .Model.Modified "Y-m-d H:i:s"}}</div>
{{if eq .Member.MemberId .Model.MemberId}}
<div class="item"><a href='{{urlfor "BlogController.ManageEdit" ":id" .Model.BlogId}}' title="文章编辑"><i class="fa fa-edit"></i> 编辑</a></div>
{{end}}
</div>
</div>
<div class="row">
Expand Down

0 comments on commit 4d59df6

Please sign in to comment.