summaryrefslogtreecommitdiff
path: root/app/views/dashboard/projects
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/dashboard/projects')
-rw-r--r--app/views/dashboard/projects/_zero_authorized_projects.html.haml28
-rw-r--r--app/views/dashboard/projects/index.html.haml6
-rw-r--r--app/views/dashboard/projects/starred.html.haml8
3 files changed, 21 insertions, 21 deletions
diff --git a/app/views/dashboard/projects/_zero_authorized_projects.html.haml b/app/views/dashboard/projects/_zero_authorized_projects.html.haml
index d54c7cad7be..82fa8aab7f9 100644
--- a/app/views/dashboard/projects/_zero_authorized_projects.html.haml
+++ b/app/views/dashboard/projects/_zero_authorized_projects.html.haml
@@ -1,25 +1,25 @@
- publicish_project_count = ProjectsFinder.new.execute(current_user).count
-%h3.page-title Welcome to GitLab!
-%p.light Self hosted Git management application.
+%h3.page-title 欢迎来到 GitLab!
+%p.light 自托管 Git 管理应用。
%hr
%div
.dashboard-intro-icon
%i.fa.fa-bookmark-o
.dashboard-intro-text
%p.slead
- You don't have access to any projects right now.
+ 你现在不能访问任何项目。
%br
- if current_user.can_create_project?
- You can create up to
- %strong= pluralize(number_with_delimiter(current_user.projects_limit), "project") + "."
+ 你可以最多创建
+ %strong= pluralize(number_with_delimiter(current_user.projects_limit), "个项目", "个项目") + "."
- else
- If you are added to a project, it will be displayed here.
+ 如果你加入了项目,它将会显示在这里。
- if current_user.can_create_project?
.link_holder
= link_to new_project_path, class: "btn btn-new" do
= icon('plus')
- New Project
+ 新项目
- if current_user.can_create_group?
%hr
@@ -28,13 +28,13 @@
%i.fa.fa-users
.dashboard-intro-text
%p.slead
- You can create a group for several dependent projects.
+ 你可以创建一个存放多个相关项目的群组。
%br
- Groups are the best way to manage projects and members.
+ 群组是管理项目和成员的最佳方式。
.link_holder
= link_to new_group_path, class: "btn btn-new" do
%i.fa.fa-plus
- New Group
+ 新群组
-if publicish_project_count > 0
%hr
@@ -43,11 +43,11 @@
%i.fa.fa-globe
.dashboard-intro-text
%p.slead
- There are
+ 此服务器上有
%strong= number_with_delimiter(publicish_project_count)
- public projects on this server.
+ 个公开项目。
%br
- Public projects are an easy way to allow everyone to have read-only access.
+ 公开项目允许所有人都可以只读访问。
.link_holder
= link_to trending_explore_projects_path, class: "btn btn-new" do
- Browse public projects
+ 浏览公开项目
diff --git a/app/views/dashboard/projects/index.html.haml b/app/views/dashboard/projects/index.html.haml
index 4565e752c1f..c6c52b2d01c 100644
--- a/app/views/dashboard/projects/index.html.haml
+++ b/app/views/dashboard/projects/index.html.haml
@@ -1,9 +1,9 @@
= content_for :meta_tags do
- if current_user
- = auto_discovery_link_tag(:atom, dashboard_projects_url(format: :atom, private_token: current_user.private_token), title: "All activity")
+ = auto_discovery_link_tag(:atom, dashboard_projects_url(format: :atom, private_token: current_user.private_token), title: "所有活动")
-- page_title "Projects"
-- header_title "Projects", dashboard_projects_path
+- page_title "项目"
+- header_title "项目", dashboard_projects_path
= render 'dashboard/projects_head'
diff --git a/app/views/dashboard/projects/starred.html.haml b/app/views/dashboard/projects/starred.html.haml
index 70705923d42..770b8bd7b2b 100644
--- a/app/views/dashboard/projects/starred.html.haml
+++ b/app/views/dashboard/projects/starred.html.haml
@@ -1,5 +1,5 @@
-- page_title "Starred Projects"
-- header_title "Projects", dashboard_projects_path
+- page_title "星标项目"
+- header_title "项目", dashboard_projects_path
= render 'dashboard/projects_head'
@@ -9,5 +9,5 @@
- if @projects.any?
= render 'projects'
- else
- %h3 You don't have starred projects yet
- %p.slead Visit project page and press on star icon and it will appear on this page.
+ %h3 你还没有给任何项目加注星标
+ %p.slead 访问项目页面然后按下星标图标即可将项目显示在此页面。