From bad6c3f976d18333c52f3db5ee05595a5eee5525 Mon Sep 17 00:00:00 2001 From: OldHawk Date: Sun, 28 May 2017 16:36:58 +0800 Subject: [PATCH] feat(torrents): add SE info of TVSerial list --- modules/core/client/less/mt.less | 9 +++ .../views/admin/admin-list.client.view.html | 63 +++++++++++-------- .../client/views/movie-list.client.view.html | 49 ++++++++------- .../views/status/downloading.client.view.html | 58 ++++++++--------- .../views/status/seeding.client.view.html | 58 ++++++++--------- .../views/status/uploaded.client.view.html | 58 ++++++++--------- 6 files changed, 162 insertions(+), 133 deletions(-) diff --git a/modules/core/client/less/mt.less b/modules/core/client/less/mt.less index a61353fa..ff6b93c1 100644 --- a/modules/core/client/less/mt.less +++ b/modules/core/client/less/mt.less @@ -592,6 +592,15 @@ body { } } +.label-se-info { + color: #0366d6; + background-color: #ddd; + &:hover { + cursor: pointer; + color: #f00; + } +} + .label-ttype { &:hover { cursor: pointer; diff --git a/modules/torrents/client/views/admin/admin-list.client.view.html b/modules/torrents/client/views/admin/admin-list.client.view.html index e122fff3..9b571258 100644 --- a/modules/torrents/client/views/admin/admin-list.client.view.html +++ b/modules/torrents/client/views/admin/admin-list.client.view.html @@ -171,14 +171,23 @@ alt="...">
-
{{item.resource_detail_info.original_title}} +
{{item.resource_detail_info.original_title}} / {{item.resource_detail_info.title}} (By: {{item.user.displayName}}) - - {{ 'CA_DOWNLOAD' | translate}} - + + {{ 'CA_DOWNLOAD' | translate}} + +
+
{{item.resource_detail_info.original_name}} + / {{item.resource_detail_info.name}} + (By: {{item.user.displayName}}) + + {{ 'CA_DOWNLOAD' | translate}} +
@@ -189,27 +198,29 @@
- - {{ item.resource_detail_info.release_date}} - - - {{ 'TORRENT_RECOMMEND_LEVEL_ITEM.' + item.torrent_recommended.toUpperCase() | translate}} - - - {{item.torrent_sale_status}} {{item.torrent_sale_expires | unlife}} - - - - {{ 'RESOURCESTAGS.' + vm.getTagTitle(t) + '.' + t | translate}} + + {{ item.resource_detail_info.release_date}} + + + {{ 'TORRENT_RECOMMEND_LEVEL_ITEM.' + item.torrent_recommended.toUpperCase() | translate}} + + + {{item.torrent_sale_status}} {{item.torrent_sale_expires | unlife}} + + S{{item.torrent_seasons}}E{{item.torrent_episodes}} + + + {{ 'RESOURCESTAGS.' + vm.getTagTitle(t) + '.' + t | translate}} + -
diff --git a/modules/torrents/client/views/movie-list.client.view.html b/modules/torrents/client/views/movie-list.client.view.html index c49da07d..6ee27fd1 100644 --- a/modules/torrents/client/views/movie-list.client.view.html +++ b/modules/torrents/client/views/movie-list.client.view.html @@ -32,9 +32,10 @@
@@ -206,27 +207,29 @@
- - {{ item.resource_detail_info.release_date}} - - - {{ 'TORRENT_RECOMMEND_LEVEL_ITEM.' + item.torrent_recommended.toUpperCase() | translate}} - - - {{item.torrent_sale_status}} {{item.torrent_sale_expires | unlife}} - - - - {{ 'RESOURCESTAGS.' + vm.getTagTitle(t) + '.' + t | translate}} + + {{ item.resource_detail_info.release_date}} + + + {{ 'TORRENT_RECOMMEND_LEVEL_ITEM.' + item.torrent_recommended.toUpperCase() | translate}} + + + {{item.torrent_sale_status}} {{item.torrent_sale_expires | unlife}} + + S{{item.torrent_seasons}}E{{item.torrent_episodes}} + + + {{ 'RESOURCESTAGS.' + vm.getTagTitle(t) + '.' + t | translate}} + -
diff --git a/modules/users/client/views/status/downloading.client.view.html b/modules/users/client/views/status/downloading.client.view.html index 4abc3a70..5674d519 100644 --- a/modules/users/client/views/status/downloading.client.view.html +++ b/modules/users/client/views/status/downloading.client.view.html @@ -64,34 +64,36 @@
- - {{'TORRENT_TYPE_LABEL.' + item.torrent.torrent_type.toUpperCase() | translate}} - - - {{'TORRENT_STATUS_LABEL.' + item.torrent.torrent_status.toUpperCase() | translate}} - - - {{ item.torrent.resource_detail_info.release_date}} - - - {{ 'TORRENT_RECOMMEND_LEVEL_ITEM.' + item.torrent.torrent_recommended.toUpperCase() | translate}} - - - {{item.torrent.torrent_sale_status}} {{item.torrent.torrent_sale_expires | unlife}} - - - - {{ 'RESOURCESTAGS.' + vm.getTagTitle(t, item.torrent) + '.' + t | translate}} - - + + {{'TORRENT_TYPE_LABEL.' + item.torrent.torrent_type.toUpperCase() | translate}} + + + {{'TORRENT_STATUS_LABEL.' + item.torrent.torrent_status.toUpperCase() | translate}} + + + {{ item.torrent.resource_detail_info.release_date}} + + + {{ 'TORRENT_RECOMMEND_LEVEL_ITEM.' + item.torrent.torrent_recommended.toUpperCase() | translate}} + + + {{item.torrent.torrent_sale_status}} {{item.torrent.torrent_sale_expires | unlife}} + + S{{item.torrent_seasons}}E{{item.torrent_episodes}} + + + {{ 'RESOURCESTAGS.' + vm.getTagTitle(t, item.torrent) + '.' + t | translate}} + +
diff --git a/modules/users/client/views/status/seeding.client.view.html b/modules/users/client/views/status/seeding.client.view.html index 98df195c..1ba375c9 100644 --- a/modules/users/client/views/status/seeding.client.view.html +++ b/modules/users/client/views/status/seeding.client.view.html @@ -64,34 +64,36 @@
- - {{'TORRENT_TYPE_LABEL.' + item.torrent.torrent_type.toUpperCase() | translate}} - - - {{'TORRENT_STATUS_LABEL.' + item.torrent.torrent_status.toUpperCase() | translate}} - - - {{ item.torrent.resource_detail_info.release_date}} - - - {{ 'TORRENT_RECOMMEND_LEVEL_ITEM.' + item.torrent.torrent_recommended.toUpperCase() | translate}} - - - {{item.torrent.torrent_sale_status}} {{item.torrent.torrent_sale_expires | unlife}} - - - - {{ 'RESOURCESTAGS.' + vm.getTagTitle(t, item.torrent) + '.' + t | translate}} - - + + {{'TORRENT_TYPE_LABEL.' + item.torrent.torrent_type.toUpperCase() | translate}} + + + {{'TORRENT_STATUS_LABEL.' + item.torrent.torrent_status.toUpperCase() | translate}} + + + {{ item.torrent.resource_detail_info.release_date}} + + + {{ 'TORRENT_RECOMMEND_LEVEL_ITEM.' + item.torrent.torrent_recommended.toUpperCase() | translate}} + + + {{item.torrent.torrent_sale_status}} {{item.torrent.torrent_sale_expires | unlife}} + + S{{item.torrent_seasons}}E{{item.torrent_episodes}} + + + {{ 'RESOURCESTAGS.' + vm.getTagTitle(t, item.torrent) + '.' + t | translate}} + +
diff --git a/modules/users/client/views/status/uploaded.client.view.html b/modules/users/client/views/status/uploaded.client.view.html index 7d76a28e..2068cd90 100644 --- a/modules/users/client/views/status/uploaded.client.view.html +++ b/modules/users/client/views/status/uploaded.client.view.html @@ -64,34 +64,36 @@
- - {{'TORRENT_TYPE_LABEL.' + item.torrent_type.toUpperCase() | translate}} - - - {{'TORRENT_STATUS_LABEL.' + item.torrent_status.toUpperCase() | translate}} - - - {{ item.resource_detail_info.release_date}} - - - {{ 'TORRENT_RECOMMEND_LEVEL_ITEM.' + item.torrent_recommended.toUpperCase() | translate}} - - - {{item.torrent_sale_status}} {{item.torrent_sale_expires | unlife}} - - - - {{ 'RESOURCESTAGS.' + vm.getTagTitle(t, item) + '.' + t | translate}} - - + + {{'TORRENT_TYPE_LABEL.' + item.torrent_type.toUpperCase() | translate}} + + + {{'TORRENT_STATUS_LABEL.' + item.torrent_status.toUpperCase() | translate}} + + + {{ item.resource_detail_info.release_date}} + + + {{ 'TORRENT_RECOMMEND_LEVEL_ITEM.' + item.torrent_recommended.toUpperCase() | translate}} + + + {{item.torrent_sale_status}} {{item.torrent_sale_expires | unlife}} + + S{{item.torrent_seasons}}E{{item.torrent_episodes}} + + + {{ 'RESOURCESTAGS.' + vm.getTagTitle(t, item) + '.' + t | translate}} + +