summaryrefslogtreecommitdiff
path: root/app/views/admin/labels
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/labels')
-rw-r--r--app/views/admin/labels/_form.html.haml14
-rw-r--r--app/views/admin/labels/edit.html.haml4
-rw-r--r--app/views/admin/labels/index.html.haml8
-rw-r--r--app/views/admin/labels/new.html.haml4
4 files changed, 15 insertions, 15 deletions
diff --git a/app/views/admin/labels/_form.html.haml b/app/views/admin/labels/_form.html.haml
index 8c6b389bf15..49d921725f9 100644
--- a/app/views/admin/labels/_form.html.haml
+++ b/app/views/admin/labels/_form.html.haml
@@ -8,23 +8,23 @@
%br
.form-group
- = f.label :title, class: 'control-label'
+ = f.label :title, "标题", class: 'control-label'
.col-sm-10
= f.text_field :title, class: "form-control", required: true
.form-group
- = f.label :description, class: 'control-label'
+ = f.label :description, "描述", class: 'control-label'
.col-sm-10
= f.text_field :description, class: "form-control js-quick-submit"
.form-group
- = f.label :color, "Background color", class: 'control-label'
+ = f.label :color, "背景颜色", class: 'control-label'
.col-sm-10
.input-group
.input-group-addon.label-color-preview  
= f.color_field :color, class: "form-control"
.help-block
- Choose any color.
+ 选择任意颜色。
%br
- Or you can choose one of suggested colors below
+ 或者在下方选择推荐的颜色
.suggest-colors
- suggested_colors.each do |color|
@@ -32,8 +32,8 @@
 
.form-actions
- = f.submit 'Save', class: 'btn btn-save js-save-button'
- = link_to "Cancel", admin_labels_path, class: 'btn btn-cancel'
+ = f.submit '保存', class: 'btn btn-save js-save-button'
+ = link_to "取消", admin_labels_path, class: 'btn btn-cancel'
:javascript
new Labels();
diff --git a/app/views/admin/labels/edit.html.haml b/app/views/admin/labels/edit.html.haml
index 309aedceded..7dfff96999b 100644
--- a/app/views/admin/labels/edit.html.haml
+++ b/app/views/admin/labels/edit.html.haml
@@ -1,5 +1,5 @@
-- page_title "Edit", @label.name, "Labels"
+- page_title "编辑", @label.name, "标记"
%h3.page-title
- Edit Label
+ 编辑标记
%hr
= render 'form'
diff --git a/app/views/admin/labels/index.html.haml b/app/views/admin/labels/index.html.haml
index 3c57e3dc174..266a1bf9328 100644
--- a/app/views/admin/labels/index.html.haml
+++ b/app/views/admin/labels/index.html.haml
@@ -1,8 +1,8 @@
-- page_title "Labels"
+- page_title "标记"
= link_to new_admin_label_path, class: "pull-right btn btn-nr btn-new" do
- New label
+ 新标记
%h3.page-title
- Labels
+ 标记
%hr
.labels
@@ -12,5 +12,5 @@
= paginate @labels, theme: 'gitlab'
- else
.light-well
- .nothing-here-block There are no labels yet
+ .nothing-here-block 还没有标记
diff --git a/app/views/admin/labels/new.html.haml b/app/views/admin/labels/new.html.haml
index 0135ad0723d..14c8a954b18 100644
--- a/app/views/admin/labels/new.html.haml
+++ b/app/views/admin/labels/new.html.haml
@@ -1,5 +1,5 @@
-- page_title "New Label"
+- page_title "新标记"
%h3.page-title
- New Label
+ 新标记
%hr
= render 'form'