mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 22:57:38 +01:00
update for css of index page and i18n switch actions of UI.
This commit is contained in:
parent
354a01c495
commit
050ee79ab9
@ -17,7 +17,7 @@ body {
|
||||
.up-section {
|
||||
position: relative;
|
||||
padding: 15px 15px 15px;
|
||||
margin: 20px 0 20px 0;
|
||||
margin: 20px -10px 0 0;
|
||||
background-color: #FFFFFF;
|
||||
height: 277px;
|
||||
}
|
||||
@ -38,6 +38,7 @@ body {
|
||||
.down-section {
|
||||
position: relative;
|
||||
padding: 15px 15px 15px;
|
||||
margin: 20px -10px 0 0;
|
||||
background-color: #FFFFFF;
|
||||
height: 350px;
|
||||
}
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
function setLanguage(name) {
|
||||
I18nService().setCurrentLanguage(name);
|
||||
$window.location.reload();
|
||||
}
|
||||
|
||||
function logOut() {
|
||||
|
@ -4,7 +4,8 @@
|
||||
|
||||
angular
|
||||
.module('harbor.optional.menu', [
|
||||
'harbor.services.user'
|
||||
'harbor.services.user',
|
||||
'harbor.services.i18n'
|
||||
]);
|
||||
|
||||
})();
|
@ -6,10 +6,10 @@
|
||||
.module('harbor.layout.header')
|
||||
.controller('HeaderController', HeaderController);
|
||||
|
||||
HeaderController.$inject = ['$scope'];
|
||||
HeaderController.$inject = ['$scope', 'I18nService', '$cookies', '$window'];
|
||||
|
||||
function HeaderController($scope) {
|
||||
var vm = this;
|
||||
function HeaderController($scope, I18nService, $cookies, $window) {
|
||||
|
||||
}
|
||||
|
||||
})();
|
@ -4,6 +4,7 @@
|
||||
|
||||
angular
|
||||
.module('harbor.layout.header', [
|
||||
'harbor.services.user'
|
||||
'harbor.services.user',
|
||||
'harbor.services.i18n'
|
||||
]);
|
||||
})();
|
@ -23,7 +23,6 @@
|
||||
language = defaultLanguage;
|
||||
}
|
||||
$cookies.put('language', language, {'path': '/'});
|
||||
$window.location.reload();
|
||||
},
|
||||
'getCurrentLanguage': function() {
|
||||
return $cookies.get('language') || defaultLanguage;
|
||||
|
Loading…
Reference in New Issue
Block a user