From ee467665b5b6af80c1cab5fd08256ca1cdabd4eb Mon Sep 17 00:00:00 2001 From: OldHawk Date: Sun, 17 Dec 2017 09:20:51 +0800 Subject: [PATCH] feat(torrents): add upload time into torrent detail tab #20 --- modules/core/client/app/trans-string-en.js | 1 + modules/core/client/app/trans-string-zh.js | 1 + modules/torrents/client/views/view-torrent.client.view.html | 3 +++ 3 files changed, 5 insertions(+) diff --git a/modules/core/client/app/trans-string-en.js b/modules/core/client/app/trans-string-en.js index 63548b65..c8f20aac 100644 --- a/modules/core/client/app/trans-string-en.js +++ b/modules/core/client/app/trans-string-en.js @@ -300,6 +300,7 @@ VIDEO_NFO: 'Video NFO', ALL_FILES_LIST: 'Files List', VIDEO_SIZE: 'Video Size', + UPLOAD_TIME: 'Upload Time', VIDEO_SALE_INFO: 'Video Sale Info', SALE_EXPIRES_TIME: 'expires', UPLOAD_SUBTITLE: 'Upload Subtitle file', diff --git a/modules/core/client/app/trans-string-zh.js b/modules/core/client/app/trans-string-zh.js index 1d2dc53e..34384a29 100644 --- a/modules/core/client/app/trans-string-zh.js +++ b/modules/core/client/app/trans-string-zh.js @@ -300,6 +300,7 @@ VIDEO_NFO: '视频 NFO', ALL_FILES_LIST: '文件清单', VIDEO_SIZE: '视频文件大小', + UPLOAD_TIME: '上传时间', VIDEO_SALE_INFO: '视频促销信息', SALE_EXPIRES_TIME: '过期', UPLOAD_SUBTITLE: '上传字幕文件', diff --git a/modules/torrents/client/views/view-torrent.client.view.html b/modules/torrents/client/views/view-torrent.client.view.html index e0f9d82a..42e4c968 100644 --- a/modules/torrents/client/views/view-torrent.client.view.html +++ b/modules/torrents/client/views/view-torrent.client.view.html @@ -575,6 +575,9 @@
{{ 'VIDEO_SIZE' | translate}}:
{{vm.torrentLocalInfo.torrent_size | bytes:2}}
+
{{ 'UPLOAD_TIME' | translate}}:
+
{{vm.torrentLocalInfo.createdat | date: 'yyyy-MM-dd HH:mm:ss'}}
+
{{ 'ATTRIBUTE_TAGS' | translate}}: