diff --git a/modules/core/client/controllers/header.client.controller.js b/modules/core/client/controllers/header.client.controller.js index f519a558..4c1911df 100644 --- a/modules/core/client/controllers/header.client.controller.js +++ b/modules/core/client/controllers/header.client.controller.js @@ -6,13 +6,14 @@ .controller('HeaderController', HeaderController); HeaderController.$inject = ['$scope', '$state', '$timeout', '$translate', 'Authentication', 'menuService', 'MeanTorrentConfig', 'localStorageService', - 'ScoreLevelService', 'InvitationsService', '$interval', 'MessagesService', 'TorrentsService', 'UsersService', 'DebugConsoleService']; + 'ScoreLevelService', 'InvitationsService', '$interval', 'MessagesService', 'TorrentsService', 'UsersService', 'DebugConsoleService', 'getStorageLangService']; function HeaderController($scope, $state, $timeout, $translate, Authentication, menuService, MeanTorrentConfig, localStorageService, ScoreLevelService, - InvitationsService, $interval, MessagesService, TorrentsService, UsersService, mtDebug) { + InvitationsService, $interval, MessagesService, TorrentsService, UsersService, mtDebug, getStorageLangService) { $scope.$state = $state; var vm = this; vm.user = Authentication.user; + vm.langService = getStorageLangService; vm.language = MeanTorrentConfig.meanTorrentConfig.language; vm.announceConfig = MeanTorrentConfig.meanTorrentConfig.announce; vm.messageConfig = MeanTorrentConfig.meanTorrentConfig.messages; diff --git a/modules/core/client/less/mt.less b/modules/core/client/less/mt.less index 661596cd..f3dd281a 100644 --- a/modules/core/client/less/mt.less +++ b/modules/core/client/less/mt.less @@ -1773,16 +1773,38 @@ body { } .lang-list { - margin-left: 10px; + margin-top: 5px; + padding-left: 5px; line-height: 2; .flag-icon { font-size: 18px; margin-left: 10px; &, - &:hover, &:focus { cursor: pointer; } + &:hover { + &:after { + content: ''; + background-color: #c0c0c0; + position: absolute; + width: 100%; + height: 3px; + top: -5px; + right: 0; + } + } + &.curr-language { + &:after { + content: ''; + background-color: @brand-primary; + position: absolute; + width: 100%; + height: 3px; + top: -5px; + right: 0; + } + } } } diff --git a/modules/core/client/views/footer.client.view.html b/modules/core/client/views/footer.client.view.html index b9ca8778..803b3c9f 100644 --- a/modules/core/client/views/footer.client.view.html +++ b/modules/core/client/views/footer.client.view.html @@ -36,7 +36,7 @@