2014-09-25 23:33:39 +00:00
|
|
|
|
{{range .Feeds}}
|
|
|
|
|
<div class="news clear">
|
|
|
|
|
<div class="avatar left">
|
2014-11-21 15:58:08 +00:00
|
|
|
|
<img class="avatar-30" src="{{.ActAvatar}}" alt="">
|
2014-09-25 23:33:39 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="content left {{if eq .GetOpType 5}}push-news{{end}} grid-4-5">
|
|
|
|
|
<p class="text-bold">
|
|
|
|
|
<a href="{{AppSubUrl}}/{{.GetActUserName}}">{{.GetActUserName}}</a>
|
|
|
|
|
{{if eq .GetOpType 1}}
|
2015-03-12 20:01:23 +00:00
|
|
|
|
{{$.i18n.Tr "action.create_repo" .GetRepoLink .GetRepoPath | Str2html}}
|
2015-09-01 13:29:52 +00:00
|
|
|
|
{{else if eq .GetOpType 2}}
|
|
|
|
|
{{$.i18n.Tr "action.rename_repo" .GetContent .GetRepoLink .GetRepoPath | Str2html}}
|
2014-09-25 23:33:39 +00:00
|
|
|
|
{{else if eq .GetOpType 5}}
|
2015-03-12 20:01:23 +00:00
|
|
|
|
{{$.i18n.Tr "action.commit_repo" .GetRepoLink .GetBranch .GetRepoPath | Str2html}}
|
2014-09-25 23:33:39 +00:00
|
|
|
|
{{else if eq .GetOpType 6}}
|
|
|
|
|
{{ $index := index .GetIssueInfos 0}}
|
2015-03-12 20:01:23 +00:00
|
|
|
|
{{$.i18n.Tr "action.create_issue" .GetRepoLink $index .GetRepoPath | Str2html}}
|
2015-09-02 15:24:55 +00:00
|
|
|
|
{{else if eq .GetOpType 7}}
|
|
|
|
|
{{ $index := index .GetIssueInfos 0}}
|
|
|
|
|
{{$.i18n.Tr "action.create_pull_request" .GetRepoLink $index .GetRepoPath | Str2html}}
|
2014-09-25 23:33:39 +00:00
|
|
|
|
{{else if eq .GetOpType 8}}
|
2015-03-12 20:01:23 +00:00
|
|
|
|
{{$.i18n.Tr "action.transfer_repo" .GetContent .GetRepoLink .GetRepoPath | Str2html}}
|
2014-10-11 01:58:13 +00:00
|
|
|
|
{{else if eq .GetOpType 9}}
|
2015-03-12 20:01:23 +00:00
|
|
|
|
{{$.i18n.Tr "action.push_tag" .GetRepoLink .GetBranch .GetRepoPath | Str2html}}
|
2014-09-25 23:33:39 +00:00
|
|
|
|
{{else if eq .GetOpType 10}}
|
|
|
|
|
{{ $index := index .GetIssueInfos 0}}
|
2015-11-12 20:09:48 +00:00
|
|
|
|
{{$.i18n.Tr "action.comment_issue" .GetRepoLink $index .GetRepoPath | Str2html}} – {{.GetIssueTitle}}
|
2015-09-02 20:18:09 +00:00
|
|
|
|
{{else if eq .GetOpType 11}}
|
|
|
|
|
{{ $index := index .GetIssueInfos 0}}
|
|
|
|
|
{{$.i18n.Tr "action.merge_pull_request" .GetRepoLink $index .GetRepoPath | Str2html}}
|
2014-09-25 23:33:39 +00:00
|
|
|
|
{{end}}
|
|
|
|
|
</p>
|
|
|
|
|
{{if eq .GetOpType 5}}
|
|
|
|
|
<div class="news-content content">
|
|
|
|
|
<ul class="list-no-style">
|
|
|
|
|
{{ $push := ActionContent2Commits .}}
|
|
|
|
|
{{ $repoLink := .GetRepoLink}}
|
2015-08-24 18:47:43 +00:00
|
|
|
|
{{if $push.Commits}}
|
2014-09-25 23:33:39 +00:00
|
|
|
|
{{range $push.Commits}}
|
2015-03-13 19:41:51 +00:00
|
|
|
|
<li><img class="avatar-16" src="{{AvatarLink .AuthorEmail}}?s=16"> <a href="{{$repoLink}}/commit/{{.Sha1}}">{{ShortSha .Sha1}}</a> <span class="text-truncate grid-4-5">{{.Message}}</span></li>
|
2014-09-25 23:33:39 +00:00
|
|
|
|
{{end}}
|
2015-08-24 18:47:43 +00:00
|
|
|
|
{{end}}
|
2015-08-09 02:18:35 +00:00
|
|
|
|
{{if $push.CompareUrl}}<li><a href="{{AppSubUrl}}/{{$push.CompareUrl}}">{{$.i18n.Tr "action.compare_2_commits"}} »</a></li>{{end}}
|
2014-09-25 23:33:39 +00:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
{{else if eq .GetOpType 6}}
|
|
|
|
|
<p class="news-content comment-news">{{index .GetIssueInfos 1}}</p>
|
2015-09-02 15:24:55 +00:00
|
|
|
|
{{else if eq .GetOpType 7}}
|
|
|
|
|
<p class="news-content comment-news">{{index .GetIssueInfos 1}}</p>
|
2014-09-25 23:33:39 +00:00
|
|
|
|
{{else if eq .GetOpType 10}}
|
2015-11-12 20:09:48 +00:00
|
|
|
|
<p class="news-content comment-news">{{.GetIssueTitle}}</p>
|
2014-09-25 23:33:39 +00:00
|
|
|
|
<p class="news-content comment-news">{{index .GetIssueInfos 1}}</p>
|
2015-09-02 20:18:09 +00:00
|
|
|
|
{{else if eq .GetOpType 11}}
|
|
|
|
|
<p class="news-content comment-news">{{index .GetIssueInfos 1}}</p>
|
2014-09-25 23:33:39 +00:00
|
|
|
|
{{end}}
|
|
|
|
|
<p class="news-time text-italic">{{TimeSince .GetCreate $.i18n.Lang}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<i class="mega-octicon octicon-{{ActionIcon .GetOpType}} right"></i>
|
|
|
|
|
</div>
|
|
|
|
|
{{end}}
|