优化时间显示

pull/244/head
Minho 2018-03-22 21:14:05 +08:00
parent 556ca73a5d
commit 53bacaacd5
2 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@
<div class="dashboard">
<div class="pull-left" style="width: 200px;margin-bottom: 15px;">
<div class="book-image">
<img src="{{.Model.Cover}}" onerror="this.src='/static/images/book.jpg'" style="border: 1px solid #666">
<img src="{{.Model.Cover}}" onerror="this.src='{{cdnimg "/static/images/book.jpg"}}'" style="border: 1px solid #666">
</div>
</div>
@ -73,11 +73,11 @@
</div>
<div class="list">
<span class="title">创建时间:</span>
<span class="body"> {{date .Model.CreateTime "Y-m-d H:i:s"}} </span>
<span class="body"> {{dateformat .Model.CreateTime "2006-01-02 15:04:05"}} </span>
</div>
<div class="list">
<span class="title">修改时间:</span>
<span class="body"> {{date .Model.ModifyTime "Y-m-d H:i:s"}} </span>
<span class="body"> {{dateformat .Model.CreateTime "2006-01-02 15:04:05"}} </span>
</div>
<div class="list">
<span class="title">担任角色:</span>

View File

@ -87,7 +87,7 @@
</div>
<div class="info">
<span title="创建时间" data-toggle="tooltip" data-placement="bottom"><i class="fa fa-clock-o"></i>
{{date $item.CreateTime "Y-m-d H:i:s"}}
{{dateformat $item.CreateTime "2006-01-02 15:04:05"}}
</span>
<span title="创建者" data-toggle="tooltip" data-placement="bottom"><i class="fa fa-user"></i> {{if eq $item.RealName "" }}{{$item.CreateName}}{{else}}{{$item.RealName}}{{end}}</span>