2015-11-13 22:35:48 +05:30
|
|
|
{{template "base/head" .}}
|
|
|
|
<div class="dashboard feeds">
|
|
|
|
{{template "user/dashboard/navbar" .}}
|
|
|
|
<div class="ui container">
|
|
|
|
<div class="ui grid">
|
|
|
|
<div class="ten wide column">
|
|
|
|
{{template "user/dashboard/feeds" .}}
|
|
|
|
</div>
|
|
|
|
<div class="six wide column">
|
|
|
|
<div class="ui {{if not .ContextUser.IsOrganization}}three{{else}}two{{end}} item tabable menu">
|
|
|
|
<a class="item active" data-tab="repos">{{.i18n.Tr "repository"}}</a>
|
|
|
|
{{if not .ContextUser.IsOrganization}}
|
|
|
|
<a class="item" data-tab="orgs">{{.i18n.Tr "organization"}}</a>
|
|
|
|
{{end}}
|
|
|
|
<a class="item" data-tab="mirrors">{{.i18n.Tr "mirror"}}</a>
|
2014-07-26 09:54:27 +05:30
|
|
|
</div>
|
2015-11-13 22:35:48 +05:30
|
|
|
<div class="ui tab active list" data-tab="repos">
|
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "home.my_repos"}} <span class="ui grey label">{{.ContextUser.NumRepos}}</span>
|
|
|
|
<div class="ui right">
|
|
|
|
<a class="ui blue tiny show-panel button" href="{{AppSubUrl}}/repo/create">{{.i18n.Tr "new_repo"}}</a>
|
2014-07-26 09:54:27 +05:30
|
|
|
</div>
|
2015-11-13 22:35:48 +05:30
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<ul>
|
|
|
|
{{range .Repos}}
|
|
|
|
<li {{if .IsPrivate}}class="private"{{end}}>
|
|
|
|
<a href="{{AppSubUrl}}/{{$.ContextUser.Name}}/{{.Name}}">
|
2015-11-14 03:40:25 +05:30
|
|
|
<i class="icon octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i>
|
2015-11-13 22:35:48 +05:30
|
|
|
<strong>{{.Name}}</strong>
|
|
|
|
<span class="ui right text light grey">
|
|
|
|
<i class="octicon octicon-star"></i>{{.NumStars}}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{if not .ContextUser.IsOrganization}}
|
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "home.collaborative_repos"}} <span class="ui grey label">{{.CollaborateCount}}</span>
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<ul>
|
|
|
|
{{range .CollaborativeRepos}}
|
|
|
|
<li {{if .IsPrivate}}class="private"{{end}}>
|
|
|
|
<a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">
|
2015-11-14 03:40:25 +05:30
|
|
|
<i class="icon octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i>
|
2015-11-13 22:35:48 +05:30
|
|
|
{{.Owner.Name}} / <strong>{{.Name}}</strong>
|
|
|
|
<span class="ui right text light grey">
|
|
|
|
<i class="octicon octicon-star"></i>{{.NumStars}}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{if not .ContextUser.IsOrganization}}
|
|
|
|
<div class="ui tab list" data-tab="orgs">
|
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "home.my_orgs"}} <span class="ui grey label">{{.ContextUser.GetOrganizationCount}}</span>
|
|
|
|
<div class="ui right">
|
|
|
|
<a class="ui blue tiny show-panel button" href="{{AppSubUrl}}/org/create">{{.i18n.Tr "new_org"}}</a>
|
2014-07-26 09:54:27 +05:30
|
|
|
</div>
|
2015-11-13 22:35:48 +05:30
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<ul>
|
|
|
|
{{range .ContextUser.Orgs}}
|
|
|
|
<li>
|
|
|
|
<a href="{{AppSubUrl}}/{{.Name}}">
|
2015-11-14 03:40:25 +05:30
|
|
|
<i class="icon octicon octicon-organization"></i>
|
2015-11-22 12:02:09 +05:30
|
|
|
<strong>{{.ShortName 20}}</strong>
|
2015-11-13 22:35:48 +05:30
|
|
|
<span class="ui right text light grey">
|
|
|
|
<i class="octicon octicon-repo"></i>{{.NumRepos}}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<div class="ui tab list" data-tab="mirrors">
|
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "home.my_mirrors"}} <span class="ui grey label">{{.MirrorCount}}</span>
|
2015-12-02 01:35:34 +05:30
|
|
|
<div class="ui right">
|
|
|
|
<a class="ui blue tiny show-panel button" href="{{AppSubUrl}}/repo/migrate">{{.i18n.Tr "new_migrate"}}</a>
|
|
|
|
</div>
|
2015-11-13 22:35:48 +05:30
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<ul>
|
|
|
|
{{range .Mirrors}}
|
|
|
|
<li {{if .IsPrivate}}class="private"{{end}}>
|
|
|
|
<a href="{{AppSubUrl}}/{{$.ContextUser.Name}}/{{.Name}}">
|
2015-11-14 03:40:25 +05:30
|
|
|
<i class="icon octicon octicon-repo-clone"></i>
|
2015-11-13 22:35:48 +05:30
|
|
|
<strong>{{.Name}}</strong>
|
|
|
|
<span class="ui right text light grey">
|
|
|
|
<i class="octicon octicon-sync"></i>{{.Interval}}H
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-07-26 09:54:27 +05:30
|
|
|
</div>
|
2015-11-13 22:35:48 +05:30
|
|
|
</div>
|
2014-07-26 09:54:27 +05:30
|
|
|
</div>
|
2015-11-13 22:35:48 +05:30
|
|
|
</div>
|
2014-07-26 09:54:27 +05:30
|
|
|
</div>
|
2015-11-13 22:35:48 +05:30
|
|
|
{{template "base/footer" .}}
|