From 775919c1299bb78c8f8b4ad498385b086ab33b6f Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 30 May 2018 21:26:03 +0800 Subject: mirror: show sync feeds on dashboard (#2017) --- templates/user/dashboard/feeds.tmpl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'templates/user') diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl index 3706434d..b4e8171d 100644 --- a/templates/user/dashboard/feeds.tmpl +++ b/templates/user/dashboard/feeds.tmpl @@ -5,7 +5,7 @@
-
+

{{.ShortActUserName}} @@ -53,9 +53,16 @@ {{$.i18n.Tr "action.delete_tag" .GetRepoLink .GetBranch .ShortRepoPath | Str2html}} {{else if eq .GetOpType 19}} {{$.i18n.Tr "action.fork_repo" .GetRepoLink .ShortRepoPath | Str2html}} + {{else if eq .GetOpType 20}} + {{ $branchLink := .GetBranch | EscapePound}} + {{$.i18n.Tr "action.mirror_sync_push" .GetRepoLink $branchLink .GetBranch .ShortRepoPath | Str2html}} + {{else if eq .GetOpType 21}} + {{$.i18n.Tr "action.mirror_sync_create" .GetRepoLink .GetBranch .ShortRepoPath | Str2html}} + {{else if eq .GetOpType 22}} + {{$.i18n.Tr "action.mirror_sync_delete" .GetRepoLink .GetBranch .ShortRepoPath | Str2html}} {{end}}

- {{if eq .GetOpType 5}} + {{if or (eq .GetOpType 5) (eq .GetOpType 20)}}
    {{ $push := ActionContent2Commits .}} -- cgit v1.2.3