From 3600498c8f7177e70f2a876dc00abe55e7ccc818 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 10 Oct 2014 21:58:13 -0400 Subject: [PATCH] Add push tag action --- conf/locale/locale_en-US.ini | 1 + conf/locale/locale_zh-CN.ini | 1 + templates/user/dashboard/feeds.tmpl | 2 ++ 3 files changed, 4 insertions(+) diff --git a/conf/locale/locale_en-US.ini b/conf/locale/locale_en-US.ini index 92cbf324cf7..7452fb735ff 100644 --- a/conf/locale/locale_en-US.ini +++ b/conf/locale/locale_en-US.ini @@ -618,6 +618,7 @@ commit_repo = pushed to %s at %s create_issue = opened issue %s#%s comment_issue = commented on issue %s#%s transfer_repo = transfered repository %s to %s +push_tag = pushed tag %s to %s compare_2_commits = View comparison for these 2 commits [tool] diff --git a/conf/locale/locale_zh-CN.ini b/conf/locale/locale_zh-CN.ini index ed3e1beff49..aeed4756168 100644 --- a/conf/locale/locale_zh-CN.ini +++ b/conf/locale/locale_zh-CN.ini @@ -618,6 +618,7 @@ commit_repo = 推送了 %s 分支的代码到 %s#%s comment_issue = 评论了工单 %s#%s transfer_repo = 将仓库 %s 转移至 %s +push_tag = 推送了标签 %s%s compare_2_commits = 查看 2 次提交的内容对比 [tool] diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl index a805802b1d2..57c97def2ed 100644 --- a/templates/user/dashboard/feeds.tmpl +++ b/templates/user/dashboard/feeds.tmpl @@ -15,6 +15,8 @@ {{$.i18n.Tr "action.create_issue" AppSubUrl .GetRepoLink $index .GetRepoLink $index | Str2html}} {{else if eq .GetOpType 8}} {{$.i18n.Tr "action.transfer_repo" .GetContent AppSubUrl .GetRepoLink .GetRepoLink | Str2html}} + {{else if eq .GetOpType 9}} + {{$.i18n.Tr "action.push_tag" AppSubUrl .GetRepoLink .GetBranch .GetBranch AppSubUrl .GetRepoLink .GetRepoLink | Str2html}} {{else if eq .GetOpType 10}} {{ $index := index .GetIssueInfos 0}} {{$.i18n.Tr "action.comment_issue" AppSubUrl .GetRepoLink $index .GetRepoLink $index | Str2html}}