diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-09-25 22:36:07 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-09-25 22:36:07 -0400 |
commit | ad52b2d79125e2f4ca7c535f27184fb385fca79c (patch) | |
tree | 3c40579d1f8e38fd174fd1fe220b79fe6729c2be /templates/user/dashboard/dashboard.tmpl | |
parent | 977779cdcf893b2a6e148c1d4772efccef2dbe03 (diff) | |
download | gitea-ad52b2d79125e2f4ca7c535f27184fb385fca79c.tar.gz gitea-ad52b2d79125e2f4ca7c535f27184fb385fca79c.zip |
Mirror fix on transfer repo
Diffstat (limited to 'templates/user/dashboard/dashboard.tmpl')
-rw-r--r-- | templates/user/dashboard/dashboard.tmpl | 43 |
1 files changed, 1 insertions, 42 deletions
diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index b14b79e320..02c0102e42 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -5,48 +5,7 @@ <div id="dashboard" class="container"> {{template "ng/base/alert" .}} <div id="dashboard-news" class="left grid-2-3"> - {{range .Feeds}} - <div class="news clear"> - <div class="avatar left"> - <img class="avatar-30" src="{{AvatarLink .GetActEmail}}" alt=""> - </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}} - {{$.i18n.Tr "action.create_repo" AppSubUrl .GetRepoLink .GetRepoLink | Str2html}} - {{else if eq .GetOpType 5}} - {{$.i18n.Tr "action.commit_repo" AppSubUrl .GetRepoLink .GetBranch .GetBranch AppSubUrl .GetRepoLink .GetRepoLink | Str2html}} - {{else if eq .GetOpType 6}} - {{ $index := index .GetIssueInfos 0}} - {{$.i18n.Tr "action.create_issue" AppSubUrl .GetRepoLink $index .GetRepoLink $index | Str2html}} - {{else if eq .GetOpType 8}} - {{$.i18n.Tr "action.transfer_repo" .GetRepoName AppSubUrl .GetRepoLink .GetRepoLink | Str2html}} - {{else if eq .GetOpType 10}} - {{ $index := index .GetIssueInfos 0}} - {{$.i18n.Tr "action.comment_issue" AppSubUrl .GetRepoLink $index .GetRepoLink $index | Str2html}} - {{end}} - </p> - {{if eq .GetOpType 5}} - <div class="news-content content"> - <ul class="list-no-style"> - {{ $push := ActionContent2Commits .}} - {{ $repoLink := .GetRepoLink}} - {{range $push.Commits}} - <li><img class="avatar-16" src="{{AvatarLink .AuthorEmail}}?s=16"> <a href="{{AppSubUrl}}/{{$repoLink}}/commit/{{.Sha1}}">{{ShortSha .Sha1}}</a> <span class="text-truncate grid-4-5">{{.Message}}</span></li> - {{end}} - </ul> - </div> - {{else if eq .GetOpType 6}} - <p class="news-content comment-news">{{index .GetIssueInfos 1}}</p> - {{else if eq .GetOpType 10}} - <p class="news-content comment-news">{{index .GetIssueInfos 1}}</p> - {{end}} - <p class="news-time text-italic">{{TimeSince .GetCreate $.i18n.Lang}}</p> - </div> - <i class="mega-octicon octicon-{{ActionIcon .GetOpType}} right"></i> - </div> - {{end}} + {{template "user/dashboard/feeds" .}} </div> <div class="right grid-1-3" id="dashboard-sidebar"> <ul id="dashboard-sidebar-menu" class="menu menu-line"> |