From 352f4c7ed9fa48cfed871b40e9aab43ec139609e Mon Sep 17 00:00:00 2001 From: OldHawk Date: Tue, 11 Apr 2017 22:37:01 +0800 Subject: [PATCH] init subtitle,mypanel info --- modules/core/client/app/trans-string-cn.js | 8 +- modules/core/client/app/trans-string-en.js | 10 +- modules/core/client/less/mt.less | 3 +- .../controllers/torrents.client.controller.js | 1 + .../views/view-torrent.client.view.html | 112 +++++++++++------- .../controllers/torrents.server.controller.js | 6 +- 6 files changed, 91 insertions(+), 49 deletions(-) diff --git a/modules/core/client/app/trans-string-cn.js b/modules/core/client/app/trans-string-cn.js index 37e77ff0..be09d035 100644 --- a/modules/core/client/app/trans-string-cn.js +++ b/modules/core/client/app/trans-string-cn.js @@ -121,6 +121,13 @@ 0: '如果你有该种子的字幕文件,你可以在这里上传.', 1: '请注意字幕文件名的正确格式,比如: Sing.2016.3D.HKG.BluRay.1080p.AVC.Atmos.TrueHD7.1-MTeam.chs&eng.srt' }, + MY_TORRENT_RULES: { + 0: '这个种子文件是由你自己上传的,你可以对其做如下操作.', + 1: '如需其它帮助,请与我们的管理员联系:{{admin}}.' + }, + ENTER_VIDEO_NFO: '请输入视频NFO信息', + TORRENT_SEED_USERS: '做种用户列表', + TORRENT_LEECHER_USERS: '下载用户列表', //TorrentsUploadsController TORRENTS_UPLOAD_SUCCESSFULLY: '文件上传成功', @@ -144,7 +151,6 @@ CANCEL_BUTTON: '算了,以后再说', AGREE_RULES: '我已阅读并同意站内所有协议条款,协议条款', DOWNLOAD_TORRENT: '下载种子', - ENTER_VIDEO_NFO: '请输入视频NFO信息', //footer view MIT_PROTOCOL: '本项目源码受 MIT 开源协议保护', diff --git a/modules/core/client/app/trans-string-en.js b/modules/core/client/app/trans-string-en.js index 866e20a6..ae9e5e1f 100644 --- a/modules/core/client/app/trans-string-en.js +++ b/modules/core/client/app/trans-string-en.js @@ -118,9 +118,16 @@ UPLOAD_SUBTITLE: 'Upload Subtitle files', SUBTITLE_LIST: 'Subtitle list', SUBTITLE_RULES: { - 0: 'If the torrent has no subtitle files, you can uploads here.', + 0: 'If the torrent has no subtitle files, you have the following actions.', 1: 'Please note the filename format, such as: Sing.2016.3D.HKG.BluRay.1080p.AVC.Atmos.TrueHD7.1-MTeam.chs&eng.srt' }, + MY_TORRENT_RULES: { + 0: 'This torrent file is uploaded by yourself, you have actions bellow.', + 1: 'For additional assistance, please contact our administrator: {{admin}}' + }, + ENTER_VIDEO_NFO: 'Please enter video NFO', + TORRENT_SEED_USERS: 'Seed Users', + TORRENT_LEECHER_USERS: 'Leecher Users', //TorrentsUploadsController & views TORRENTS_UPLOAD_SUCCESSFULLY: 'Successfully uploads file', @@ -144,7 +151,6 @@ CANCEL_BUTTON: 'NO, CANCEL IT', AGREE_RULES: 'I agree and already read all the rules, read here', DOWNLOAD_TORRENT: 'Download Torrent', - ENTER_VIDEO_NFO: 'Please enter video NFO', //footer view MIT_PROTOCOL: 'The source of this project is protected by MIT open source protocol', diff --git a/modules/core/client/less/mt.less b/modules/core/client/less/mt.less index d743256f..b9595bbf 100644 --- a/modules/core/client/less/mt.less +++ b/modules/core/client/less/mt.less @@ -24,7 +24,7 @@ //filter: blur(1px); .filter { background-color: #2a2730; - background-color: rgba(0, 0, 0, .6); + background-color: rgba(0, 0, 0, .7); //opacity: 0.5; padding-top: 30px; padding-bottom: 30px; @@ -315,4 +315,5 @@ .video-nfo { font-size: 12px !important; + background-color: #fff !important; } diff --git a/modules/torrents/client/controllers/torrents.client.controller.js b/modules/torrents/client/controllers/torrents.client.controller.js index 70cd9e6a..8bb40a53 100644 --- a/modules/torrents/client/controllers/torrents.client.controller.js +++ b/modules/torrents/client/controllers/torrents.client.controller.js @@ -12,6 +12,7 @@ DownloadService, $window, $sce, $filter) { var vm = this; vm.user = Authentication.user; + vm.announce = MeanTorrentConfig.meanTorrentConfig.announce; vm.tmdbConfig = MeanTorrentConfig.meanTorrentConfig.tmdbConfig; vm.resourcesTags = MeanTorrentConfig.meanTorrentConfig.resourcesTags; diff --git a/modules/torrents/client/views/view-torrent.client.view.html b/modules/torrents/client/views/view-torrent.client.view.html index 5c3650c6..61cd8c66 100644 --- a/modules/torrents/client/views/view-torrent.client.view.html +++ b/modules/torrents/client/views/view-torrent.client.view.html @@ -160,8 +160,8 @@ -
{{ 'VIDEO_NFO' | translate}}:
-
+
{{ 'VIDEO_NFO' | translate}}:
+