summaryrefslogtreecommitdiff
path: root/app/views/notify/repository_push_email.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/notify/repository_push_email.html.haml')
-rw-r--r--app/views/notify/repository_push_email.html.haml20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/views/notify/repository_push_email.html.haml b/app/views/notify/repository_push_email.html.haml
index f2e405b14fd..b597d0f97b5 100644
--- a/app/views/notify/repository_push_email.html.haml
+++ b/app/views/notify/repository_push_email.html.haml
@@ -1,27 +1,27 @@
%h3
#{@message.author_name} #{@message.action_name} #{@message.ref_type} #{@message.ref_name}
- at #{link_to(@message.project_name_with_namespace, namespace_project_url(@message.project_namespace, @message.project))}
+ 在 #{link_to(@message.project_name_with_namespace, namespace_project_url(@message.project_namespace, @message.project))}
- if @message.compare
- if @message.reverse_compare?
%p
- %strong WARNING:
- The push did not contain any new commits, but force pushed to delete the commits and changes below.
+ %strong 警告:
+ 此推送不包含任何提交,但强制推送会删除下面的提交和变更。
%h4
- = @message.reverse_compare? ? "Deleted commits:" : "Commits:"
+ = @message.reverse_compare? ? "删除的提交:" : "提交:"
%ul
- @message.commits.each do |commit|
%li
%strong #{link_to(commit.short_id, namespace_project_commit_url(@message.project_namespace, @message.project, commit))}
%div
- %span by #{commit.author_name}
- %i at #{commit.committed_date.to_s(:iso8601)}
+ %span 由 #{commit.author_name}
+ %i 在 #{commit.committed_date.to_s(:iso8601)}
%pre.commit-message
= commit.safe_message
- %h4 #{pluralize @message.diffs_count, "changed file"}:
+ %h4 #{pluralize @message.diffs_count, "个修改的文件", "个修改的文件"}:
%ul
- @message.diffs.each_with_index do |diff, i|
@@ -43,14 +43,14 @@
= diff.new_path
- unless @message.disable_diffs?
- %h4 Changes:
+ %h4 变更:
- @message.diffs.each_with_index do |diff, i|
%li{id: "diff-#{i}"}
%a{href: @message.target_url + "#diff-#{i}"}
- if diff.deleted_file
%strong
= diff.old_path
- deleted
+ 已删除
- elsif diff.renamed_file
%strong
= diff.old_path
@@ -65,4 +65,4 @@
%br
- if @message.compare_timeout
- %h5 Huge diff. To prevent performance issues changes are hidden
+ %h5 巨大差异。因为性能原因隐藏问题变更