diff options
author | Unknwon <u@gogs.io> | 2018-05-30 21:26:03 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-05-30 21:26:03 +0800 |
commit | 775919c1299bb78c8f8b4ad498385b086ab33b6f (patch) | |
tree | 23b5cd74717f5972988a8134692eb10e3cba0214 /templates/user | |
parent | 702acc06d8a6346aecc9abd9ce1b7f2da7f49e42 (diff) |
mirror: show sync feeds on dashboard (#2017)
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/dashboard/feeds.tmpl | 11 |
1 files changed, 9 insertions, 2 deletions
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 @@ </div> <div class="ui grid"> <div class="ui fifteen wide column"> - <div class="{{if eq .GetOpType 5}}push news{{end}}"> + <div class="{{if or (eq .GetOpType 5) (eq .GetOpType 20)}}push news{{end}}"> <p> <a href="{{AppSubURL}}/{{.GetActUserName}}">{{.ShortActUserName}}</a> <!-- Reference types to models/action.go --> @@ -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}} </p> - {{if eq .GetOpType 5}} + {{if or (eq .GetOpType 5) (eq .GetOpType 20)}} <div class="content"> <ul> {{ $push := ActionContent2Commits .}} |