diff --git a/modules/core/client/app/trans-string-en.js b/modules/core/client/app/trans-string-en.js index 1fda36ff..9d0f22b9 100644 --- a/modules/core/client/app/trans-string-en.js +++ b/modules/core/client/app/trans-string-en.js @@ -577,6 +577,15 @@ //footer view MIT_PROTOCOL: 'The source of this project is protected by MIT open source protocol', GIT_REPO: 'Power by ©meanTottent,view on GitHub', + TOTAL_USERS: 'Total Users', + TOTAL_TORRENTS: 'Total Torrents', + TOTAL_TORRENTSSIZE: 'Total TorrentsSize', + TOTAL_SEEDERS: 'Total Seeders', + TOTAL_LEECHERS: 'Total Leechers', + TOTAL_UPLOADED: 'Total Uploaded', + TOTAL_DOWNLOADED: 'Total Downloaded', + TOTAL_FORUMTOPICS: 'Total ForumTopics', + TOTAL_FORUMREPLIES: 'Total ForumReplies', ///////////////////////the movie db fields//////////////////////////////// TMDB_FIELDS: { diff --git a/modules/core/client/app/trans-string-zh.js b/modules/core/client/app/trans-string-zh.js index c0101312..aeb50295 100644 --- a/modules/core/client/app/trans-string-zh.js +++ b/modules/core/client/app/trans-string-zh.js @@ -577,6 +577,15 @@ //footer view MIT_PROTOCOL: '本项目源码受 MIT 开源协议保护', GIT_REPO: 'Power by ©meanTottent,GitHub 源码仓库', + TOTAL_USERS: '注册会员', + TOTAL_TORRENTS: '种子数', + TOTAL_TORRENTSSIZE: '种子总体积', + TOTAL_SEEDERS: '正在做种', + TOTAL_LEECHERS: '正在下载', + TOTAL_UPLOADED: '总上传量', + TOTAL_DOWNLOADED: '总下载量', + TOTAL_FORUMTOPICS: '论坛话题', + TOTAL_FORUMREPLIES: '论坛回复', ///////////////////////the movie db fields//////////////////////////////// TMDB_FIELDS: { diff --git a/modules/core/client/controllers/header.client.controller.js b/modules/core/client/controllers/header.client.controller.js index d60cb489..9ae2fe16 100644 --- a/modules/core/client/controllers/header.client.controller.js +++ b/modules/core/client/controllers/header.client.controller.js @@ -6,10 +6,10 @@ .controller('HeaderController', HeaderController); HeaderController.$inject = ['$scope', '$state', '$stateParams', '$translate', 'Authentication', 'menuService', 'MeanTorrentConfig', 'localStorageService', - 'ScoreLevelService', 'InvitationsService', '$interval', 'MessagesService']; + 'ScoreLevelService', 'InvitationsService', '$interval', 'MessagesService', 'TorrentsService']; function HeaderController($scope, $state, $stateParams, $translate, Authentication, menuService, MeanTorrentConfig, localStorageService, ScoreLevelService, - InvitationsService, $interval, MessagesService) { + InvitationsService, $interval, MessagesService, TorrentsService) { var vm = this; vm.user = Authentication.user; vm.language = MeanTorrentConfig.meanTorrentConfig.language; @@ -103,5 +103,14 @@ //}); } }; + + /** + * getSiteInfo + */ + vm.getSiteInfo = function () { + TorrentsService.siteInfo(function (data) { + vm.siteInfo = data; + }); + }; } }()); diff --git a/modules/core/client/css/core.css b/modules/core/client/css/core.css index 0b223ef7..c540b247 100644 --- a/modules/core/client/css/core.css +++ b/modules/core/client/css/core.css @@ -93,3 +93,11 @@ a:hover .header-profile-image { margin-right: 15px; } +.site-info { + border-bottom: solid 1px #222; + margin-bottom: 20px; + padding-bottom: 20px; + padding-top: 10px; + padding-left: 60px; +} + diff --git a/modules/core/client/views/footer.client.view.html b/modules/core/client/views/footer.client.view.html index f7fdaa84..47398454 100644 --- a/modules/core/client/views/footer.client.view.html +++ b/modules/core/client/views/footer.client.view.html @@ -1,22 +1,38 @@ -