diff --git a/static/resources/css/index.css b/static/resources/css/index.css
index 463a3cc75..9cd1596ad 100644
--- a/static/resources/css/index.css
+++ b/static/resources/css/index.css
@@ -110,4 +110,5 @@ body {
.page-content {
margin: 0 20px 0 20px;
+ text-align: left;
}
diff --git a/static/resources/js/components/top-repository/top-repository.directive.html b/static/resources/js/components/top-repository/top-repository.directive.html
index e3b79fbfb..7693dc78f 100644
--- a/static/resources/js/components/top-repository/top-repository.directive.html
+++ b/static/resources/js/components/top-repository/top-repository.directive.html
@@ -1,4 +1,4 @@
-
+
@@ -9,7 +9,7 @@
// 'no_top_repositories' | tr // |
- //t.name// | //t.count// | //t.creator// |
+ //t.name// | //t.count// | //t.creator === '' ? 'N/A' : t.creator // |
diff --git a/static/resources/js/layout/index/index.controller.js b/static/resources/js/layout/index/index.controller.js
index 56d7e2e36..4499456db 100644
--- a/static/resources/js/layout/index/index.controller.js
+++ b/static/resources/js/layout/index/index.controller.js
@@ -6,7 +6,28 @@
.module('harbor.layout.index')
.controller('IndexController', IndexController);
- function IndexController() {
+ IndexController.$inject = ['$filter', 'trFilter'];
+
+ function IndexController($filter, trFilter) {
+ var vm = this;
+
+ var indexDesc = $filter('tr')('index_desc', []);
+ var indexDesc1 = $filter('tr')('index_desc_1', []);
+ var indexDesc2 = $filter('tr')('index_desc_2', []);
+ var indexDesc3 = $filter('tr')('index_desc_3', []);
+ var indexDesc4 = $filter('tr')('index_desc_4', []);
+ var indexDesc5 = $filter('tr')('index_desc_5', []);
+
+ vm.message = '
' +
+ indexDesc +
+ '
' +
+ '
' +
+ '- ▪︎ ' + indexDesc1 + '
' +
+ '- ▪︎ ' + indexDesc2 + '
' +
+ '- ▪︎ ' + indexDesc3 + '
' +
+ '- ▪︎ ' + indexDesc4 + '
' +
+ '- ▪︎ ' + indexDesc5 + '
' +
+ '
';
}
diff --git a/static/resources/js/services/i18n/locale_messages_en-US.js b/static/resources/js/services/i18n/locale_messages_en-US.js
index 7a68e84ba..6af41ad28 100644
--- a/static/resources/js/services/i18n/locale_messages_en-US.js
+++ b/static/resources/js/services/i18n/locale_messages_en-US.js
@@ -14,7 +14,7 @@ var locale_messages = {
'index_desc_3': 'Access Control: RBAC (Role Based Access Control) is provided. User management can be integrated with existing enterprise identity services like AD/LDAP. ',
'index_desc_4': 'Audit: All access to the registry are logged and can be used for audit purpose.',
'index_desc_5': 'GUI: User friendly single-pane-of-glass management console.',
- 'learn_more': 'Learn more...',
+ 'view_all': 'View all...',
'repositories': 'Repositories',
'project_repo_name': 'Project/Repository Name',
'creation_time': 'Creation Time',
@@ -51,8 +51,8 @@ var locale_messages = {
'public_projects': 'Public Projects',
'public': 'Public',
'public_repositories': 'Public Repositories',
- 'my_project_count': 'Projects',
- 'my_repo_count': 'Repositories',
+ 'my_project_count': 'My Projects',
+ 'my_repo_count': 'My Repositories',
'public_project_count': 'Public Projects',
'public_repo_count': 'Public Repositories',
'total_project_count': 'Total Projects',
@@ -166,5 +166,7 @@ var locale_messages = {
'confirm_to_change_profile': 'Are you sure to change your profile?',
'form_is_invalid': 'Form content is invalid',
'form_is_invalid_message': 'Form content is invalid, please fill the required fields.',
- 'administrator': 'Administrator'
+ 'administrator': 'Administrator',
+ 'popular_repositories': 'Popular Repositories',
+ 'harbor_intro_title': 'About Harbor'
};
\ No newline at end of file
diff --git a/static/resources/js/services/i18n/locale_messages_zh-CN.js b/static/resources/js/services/i18n/locale_messages_zh-CN.js
index a299130f3..fbaf94c1c 100644
--- a/static/resources/js/services/i18n/locale_messages_zh-CN.js
+++ b/static/resources/js/services/i18n/locale_messages_zh-CN.js
@@ -14,7 +14,7 @@ var locale_messages = {
'index_desc_3': '访问控制: 提供基于角色的访问控制,可集成企业目前拥有的用户管理系统(如:AD/LDAP)。',
'index_desc_4': '审计: 所有访问Registry服务的操作均被记录,便于日后审计。',
'index_desc_5': '管理界面: 具有友好易用图形管理界面。',
- 'learn_more': '更多...',
+ 'view_all': '显示全部...',
'repositories': '镜像仓库',
'project_repo_name': '项目/镜像仓库名称',
'creation_time': '创建时间',
@@ -51,8 +51,8 @@ var locale_messages = {
'public_projects': '公开项目',
'public': '公开',
'public_repositories': '公开镜像仓库',
- 'my_project_count': '项目',
- 'my_repo_count': '镜像仓库',
+ 'my_project_count': '我的项目',
+ 'my_repo_count': '我的镜像仓库',
'public_project_count': '公开项目',
'public_repo_count': '公开镜像仓库',
'total_project_count': '全部项目',
@@ -165,5 +165,7 @@ var locale_messages = {
'confirm_to_change_profile': '确认要修改个人信息吗?',
'form_is_invalid': '表单内容无效',
'form_is_invalid_message': '表单内容无效,请填写必填字段。',
- 'administrator': '管理员'
+ 'administrator': '管理员',
+ 'popular_repositories': '热门镜像仓库',
+ 'harbor_intro_title': '关于 Harbor'
};
\ No newline at end of file
diff --git a/views/index.htm b/views/index.htm
index 1362bfe03..6c4177f12 100644
--- a/views/index.htm
+++ b/views/index.htm
@@ -39,8 +39,9 @@
-
-
+
+
+
// 'index_desc' | tr //
@@ -51,15 +52,14 @@
- ▪︎ // 'index_desc_5' | tr //