aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/dashboard
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-25 19:33:39 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-25 19:33:39 -0400
commit71e4689d118b3628a6ef7b93117c54265c4d83a5 (patch)
tree90b7b998ba4f5813f7286f3c5a02bece68f6dc62 /templates/user/dashboard
parentf69761563b7a4fe9ace2a1643391cbcf9b92b372 (diff)
downloadgitea-71e4689d118b3628a6ef7b93117c54265c4d83a5.tar.gz
gitea-71e4689d118b3628a6ef7b93117c54265c4d83a5.zip
Page: User profile
Diffstat (limited to 'templates/user/dashboard')
-rw-r--r--templates/user/dashboard/dashboard.tmpl2
-rw-r--r--templates/user/dashboard/feeds.tmpl42
2 files changed, 43 insertions, 1 deletions
diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl
index 370173e473..b14b79e320 100644
--- a/templates/user/dashboard/dashboard.tmpl
+++ b/templates/user/dashboard/dashboard.tmpl
@@ -48,7 +48,7 @@
</div>
{{end}}
</div>
- <div id="dashboard-sidebar" class="right grid-1-3">
+ <div class="right grid-1-3" id="dashboard-sidebar">
<ul id="dashboard-sidebar-menu" class="menu menu-line">
<li class="js-tab-nav js-tab-nav-show first" data-tab-target="#dashboard-my-repo"><a href="#">{{.i18n.Tr "repository"}}</a></li>
{{if not .ContextUser.IsOrganization}}
diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl
new file mode 100644
index 0000000000..3eb8036162
--- /dev/null
+++ b/templates/user/dashboard/feeds.tmpl
@@ -0,0 +1,42 @@
+{{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}} \ No newline at end of file