2015-11-13 20:05:48 +03:00
|
|
|
{{template "base/head" .}}
|
|
|
|
<div class="dashboard feeds">
|
2015-12-08 01:30:52 +03:00
|
|
|
{{template "user/dashboard/navbar" .}}
|
|
|
|
<div class="ui container">
|
2017-02-08 04:37:23 +03:00
|
|
|
{{template "base/alert" .}}
|
2015-12-08 01:30:52 +03:00
|
|
|
<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">
|
2017-01-30 08:57:47 +03:00
|
|
|
<div class="ui fluid input">
|
|
|
|
<input id="search_repo" name="q" value="" placeholder="{{.i18n.Tr "home.search_repos"}}" autofocus="">
|
|
|
|
</div>
|
2015-12-08 01:30:52 +03:00
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "home.my_repos"}} <span class="ui grey label">{{.ContextUser.NumRepos}}</span>
|
|
|
|
<div class="ui right">
|
2016-01-29 23:28:24 +03: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>
|
|
|
|
<span class="sr-only">{{.i18n.Tr "new_repo"}}</span>
|
|
|
|
</a>
|
2015-12-08 01:30:52 +03:00
|
|
|
</div>
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
2017-01-30 08:57:47 +03:00
|
|
|
<ul class="repo-owner-name-list search-list">
|
2015-12-08 01:30:52 +03:00
|
|
|
{{range .Repos}}
|
2017-01-30 08:57:47 +03:00
|
|
|
<li {{if .IsPrivate}}class="private"{{end}} data-title="{{.Name}}">
|
2015-12-08 01:30:52 +03:00
|
|
|
<a href="{{AppSubUrl}}/{{$.ContextUser.Name}}/{{.Name}}">
|
2016-07-16 07:45:13 +03:00
|
|
|
<i class="octicon octicon-{{if .IsFork}}repo-forked{{else if .IsPrivate}}lock{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i>
|
2016-01-11 15:41:43 +03:00
|
|
|
<strong class="text truncate item-name">{{.Name}}</strong>
|
2015-12-08 01:30:52 +03:00
|
|
|
<span class="ui right text light grey">
|
2016-07-16 07:45:13 +03:00
|
|
|
{{.NumStars}} <i class="octicon octicon-star rear"></i>
|
2015-12-08 01:30:52 +03:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
2016-07-24 09:32:46 +03:00
|
|
|
{{if gt .ContextUser.NumRepos .MaxShowRepoNum}}
|
|
|
|
<li>
|
|
|
|
<a href="{{.ContextUser.HomeLink}}">{{.i18n.Tr "home.show_more_repos"}}</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
2015-12-08 01:30:52 +03:00
|
|
|
</ul>
|
|
|
|
</div>
|
2015-11-13 20:05:48 +03:00
|
|
|
|
2015-12-08 01:30:52 +03:00
|
|
|
{{if not .ContextUser.IsOrganization}}
|
|
|
|
<h4 class="ui top attached header">
|
2016-07-24 09:32:46 +03:00
|
|
|
{{.i18n.Tr "home.collaborative_repos"}}
|
2015-12-08 01:30:52 +03:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
2017-01-30 08:57:47 +03:00
|
|
|
<ul id="collaborative-repo-list" class="search-list">
|
2015-12-08 01:30:52 +03:00
|
|
|
{{range .CollaborativeRepos}}
|
2017-01-30 08:57:47 +03:00
|
|
|
<li {{if .IsPrivate}}class="private"{{end}} data-title="{{.Name}}">
|
2015-12-08 01:30:52 +03:00
|
|
|
<a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">
|
2016-07-16 07:45:13 +03:00
|
|
|
<i class="octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i>
|
2016-01-11 15:41:43 +03:00
|
|
|
<span class="text truncate owner-and-repo">
|
|
|
|
<span class="text truncate owner-name">{{.Owner.Name}}</span> / <strong>{{.Name}}</strong>
|
|
|
|
</span>
|
2015-12-08 01:30:52 +03:00
|
|
|
<span class="ui right text light grey">
|
2016-07-16 07:45:13 +03:00
|
|
|
{{.NumStars}} <i class="octicon octicon-star rear"></i>
|
2015-12-08 01:30:52 +03:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2015-11-13 20:05:48 +03:00
|
|
|
|
2015-12-08 01:30:52 +03: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">
|
2016-01-29 23:28:24 +03: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>
|
|
|
|
<span class="sr-only">{{.i18n.Tr "new_org"}}</span>
|
|
|
|
</a>
|
2015-12-08 01:30:52 +03:00
|
|
|
</div>
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
2016-01-11 15:41:43 +03:00
|
|
|
<ul class="repo-owner-name-list">
|
2015-12-08 01:30:52 +03:00
|
|
|
{{range .ContextUser.Orgs}}
|
|
|
|
<li>
|
|
|
|
<a href="{{AppSubUrl}}/{{.Name}}">
|
2016-07-16 07:45:13 +03:00
|
|
|
<i class="octicon octicon-organization"></i>
|
2016-01-11 15:41:43 +03:00
|
|
|
<strong class="text truncate item-name">{{.Name}}</strong>
|
2015-12-08 01:30:52 +03:00
|
|
|
<span class="ui right text light grey">
|
2016-07-16 07:45:13 +03:00
|
|
|
{{.NumRepos}} <i class="octicon octicon-repo rear"></i>
|
2015-12-08 01:30:52 +03:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2015-11-13 20:05:48 +03:00
|
|
|
|
2015-12-08 01:30:52 +03: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">
|
2016-01-29 23:28:24 +03: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>
|
|
|
|
<span class="sr-only">{{.i18n.Tr "new_mirror"}}</span>
|
|
|
|
</a>
|
2015-12-08 01:30:52 +03:00
|
|
|
</div>
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
2016-01-11 15:41:43 +03:00
|
|
|
<ul class="repo-owner-name-list">
|
2015-12-08 01:30:52 +03:00
|
|
|
{{range .Mirrors}}
|
|
|
|
<li {{if .IsPrivate}}class="private"{{end}}>
|
|
|
|
<a href="{{AppSubUrl}}/{{$.ContextUser.Name}}/{{.Name}}">
|
2016-07-16 07:45:13 +03:00
|
|
|
<i class="octicon octicon-repo-clone"></i>
|
2016-01-11 15:41:43 +03:00
|
|
|
<strong class="text truncate item-name">{{.Name}}</strong>
|
2015-12-08 01:30:52 +03:00
|
|
|
<span class="ui right text light grey">
|
2016-07-16 07:45:13 +03:00
|
|
|
{{.Interval}}H <i class="octicon octicon-sync rear"></i>
|
2015-12-08 01:30:52 +03:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-07-26 08:24:27 +04:00
|
|
|
</div>
|
2015-12-08 01:30:52 +03:00
|
|
|
{{template "base/footer" .}}
|