diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base/head.tmpl | 3 | ||||
-rw-r--r-- | templates/user/dashboard/dashboard.tmpl | 23 |
2 files changed, 3 insertions, 23 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 8b6c25c643..f357b95166 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -14,6 +14,9 @@ {{if .IsSigned}} <meta name="_uid" content="{{.SignedUser.ID}}" /> {{end}} + {{if .ContextUser}} + <meta name="_context_uid" content="{{.ContextUser.ID}}" /> + {{end}} {{if .GoGetImport}} <meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}"> <meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}"> diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 806f52b51e..7a444c17d2 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -46,29 +46,6 @@ {{end}} </ul> </div> - - {{if not .ContextUser.IsOrganization}} - <h4 class="ui top attached header"> - {{.i18n.Tr "home.collaborative_repos"}} - </h4> - <div class="ui attached table segment"> - <ul id="collaborative-repo-list"> - {{range .CollaborativeRepos}} - <li {{if .IsPrivate}}class="private"{{end}}> - <a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}"> - <i class="octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i> - <span class="text truncate owner-and-repo"> - <span class="text truncate owner-name">{{.Owner.Name}}</span> / <strong>{{.Name}}</strong> - </span> - <span class="ui right text light grey"> - {{.NumStars}} <i class="octicon octicon-star rear"></i> - </span> - </a> - </li> - {{end}} - </ul> - </div> - {{end}} </div> {{if not .ContextUser.IsOrganization}} |