2015-11-13 18:05:48 +01:00
|
|
|
{{template "base/head" .}}
|
|
|
|
<div class="dashboard feeds">
|
2015-12-07 23:30:52 +01:00
|
|
|
{{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>
|
|
|
|
</div>
|
|
|
|
<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">
|
2015-12-12 22:53:16 +01:00
|
|
|
<a class="poping up" href="{{AppSubUrl}}/repo/create" data-content="{{.i18n.Tr "new_repo"}}" data-variation="tiny inverted" data-position="left center"><i class="plus icon"></i></a>
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<ul>
|
|
|
|
{{range .Repos}}
|
|
|
|
<li {{if .IsPrivate}}class="private"{{end}}>
|
|
|
|
<a href="{{AppSubUrl}}/{{$.ContextUser.Name}}/{{.Name}}">
|
|
|
|
<i class="icon octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i>
|
|
|
|
<strong>{{.Name}}</strong>
|
|
|
|
<span class="ui right text light grey">
|
|
|
|
<i class="octicon octicon-star"></i>{{.NumStars}}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2015-11-13 18:05:48 +01:00
|
|
|
|
2015-12-07 23:30:52 +01:00
|
|
|
{{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}}">
|
|
|
|
<i class="icon octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i>
|
|
|
|
{{.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>
|
2015-11-13 18:05:48 +01:00
|
|
|
|
2015-12-07 23:30:52 +01:00
|
|
|
{{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">
|
2015-12-12 22:53:16 +01:00
|
|
|
<a class="poping up" href="{{AppSubUrl}}/org/create" data-content="{{.i18n.Tr "new_org"}}" data-variation="tiny inverted" data-position="left center"><i class="plus icon"></i></a>
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<ul>
|
|
|
|
{{range .ContextUser.Orgs}}
|
|
|
|
<li>
|
|
|
|
<a href="{{AppSubUrl}}/{{.Name}}">
|
|
|
|
<i class="icon octicon octicon-organization"></i>
|
|
|
|
<strong>{{.ShortName 20}}</strong>
|
|
|
|
<span class="ui right text light grey">
|
|
|
|
<i class="octicon octicon-repo"></i>{{.NumRepos}}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2015-11-13 18:05:48 +01:00
|
|
|
|
2015-12-07 23:30:52 +01:00
|
|
|
<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>
|
|
|
|
<div class="ui right">
|
2015-12-12 22:53:16 +01:00
|
|
|
<a class="poping up" href="{{AppSubUrl}}/repo/migrate?mirror=1" data-content="{{.i18n.Tr "new_mirror"}}" data-variation="tiny inverted" data-position="left center"><i class="plus icon"></i></a>
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<ul>
|
|
|
|
{{range .Mirrors}}
|
|
|
|
<li {{if .IsPrivate}}class="private"{{end}}>
|
|
|
|
<a href="{{AppSubUrl}}/{{$.ContextUser.Name}}/{{.Name}}">
|
|
|
|
<i class="icon octicon octicon-repo-clone"></i>
|
|
|
|
<strong>{{.Name}}</strong>
|
|
|
|
<span class="ui right text light grey">
|
|
|
|
<i class="octicon octicon-sync"></i>{{.Interval}}H
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-07-26 06:24:27 +02:00
|
|
|
</div>
|
2015-12-07 23:30:52 +01:00
|
|
|
{{template "base/footer" .}}
|