diff options
| -rw-r--r-- | ui/pages/post/get.tmpl.html | 6 | ||||
| -rw-r--r-- | ui/templates/comments.tmpl.html | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ui/pages/post/get.tmpl.html b/ui/pages/post/get.tmpl.html index 1489f36..f705f65 100644 --- a/ui/pages/post/get.tmpl.html +++ b/ui/pages/post/get.tmpl.html @@ -5,14 +5,14 @@ <span class="post-tags">{{.Tags}}</span> <span class="post-domain">{{.UrlDomainName}}</span> <span class="post-author">by <a href="u/{{.Username}}">{{.Username}}</a></span> - <span class="post-date">{{.CreatedAt | relative}}</span> + <span class="post-date">{{.CreatedAt}}</span> <span class="actions"> <span class="action-flag">Flag</span> <span class="action-hide">Hide</span> </span> - {{ if .Description && !.Url }} + {{ if and .Description not .Url }} <p>{{.Description}}</p> - {{endif}} + {{end}} <form action="/p/{{.ID}}/comment" method="POST"> <textarea placeholder="This better be good." name="comment"></textarea> <button type="submit">Yup</button> diff --git a/ui/templates/comments.tmpl.html b/ui/templates/comments.tmpl.html index 560e918..b069bbd 100644 --- a/ui/templates/comments.tmpl.html +++ b/ui/templates/comments.tmpl.html @@ -2,7 +2,7 @@ <div id="post-comments"> {{range $comment := .comments }} <span class="comment-author">by <a href="/u/{{$comment.username}}">{{$comment.username}}</a></span> - <span class="comment-created-at">{{$comment.created_at | relative_time}}</span> + <span class="comment-created-at">{{$comment.created_at}}</span> <span class="actions"> <span class="action-flag">Flag</span> <span class="action-hide">Hide</span> |
