Merge pull request #109 from taigaio/us/1054/attachments-date
Add file upload date on attachment datestable
commit
e94723e0b0
|
@ -267,7 +267,7 @@ module.directive("tgAttachments", ["$tgConfirm", AttachmentsDirective])
|
||||||
AttachmentDirective = ->
|
AttachmentDirective = ->
|
||||||
template = _.template("""
|
template = _.template("""
|
||||||
<div class="attachment-name">
|
<div class="attachment-name">
|
||||||
<a href="<%- url %>" title="<%- name %>" target="_blank">
|
<a href="<%- url %>" title="<%- name %> uploaded on <%- created_date %>" target="_blank">
|
||||||
<span class="icon icon-documents"></span>
|
<span class="icon icon-documents"></span>
|
||||||
<span><%- name %><span>
|
<span><%- name %><span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -291,7 +291,7 @@ AttachmentDirective = ->
|
||||||
templateEdit = _.template("""
|
templateEdit = _.template("""
|
||||||
<div class="attachment-name">
|
<div class="attachment-name">
|
||||||
<span class="icon.icon-document"></span>
|
<span class="icon.icon-document"></span>
|
||||||
<a href="<%- url %>" title="<%- name %>" target="_blank"><%- name %></a>
|
<a href="<%- url %>" title="<%- name %> uploaded on <%- created_date %>" target="_blank"><%- name %></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="attachment-size">
|
<div class="attachment-size">
|
||||||
<span><%- size %></span>
|
<span><%- size %></span>
|
||||||
|
@ -320,6 +320,7 @@ AttachmentDirective = ->
|
||||||
ctx = {
|
ctx = {
|
||||||
id: attachment.id
|
id: attachment.id
|
||||||
name: attachment.name
|
name: attachment.name
|
||||||
|
created_date: moment(attachment.created_date).format("DD MMM YYYY [at] hh:mm") #TODO: i18n
|
||||||
url: attachment.url
|
url: attachment.url
|
||||||
size: sizeFormat(attachment.size)
|
size: sizeFormat(attachment.size)
|
||||||
description: attachment.description
|
description: attachment.description
|
||||||
|
|
Loading…
Reference in New Issue