|
|
@ -1,47 +1,34 @@ |
|
|
|
{{template "ng/base/head" .}} |
|
|
|
{{template "base/head" .}} |
|
|
|
{{template "ng/base/header" .}} |
|
|
|
<div class="dashboard feeds"> |
|
|
|
{{template "user/dashboard/nav" .}} |
|
|
|
{{template "user/dashboard/navbar" .}} |
|
|
|
<div id="dashboard-wrapper"> |
|
|
|
<div class="ui container"> |
|
|
|
<div id="dashboard" class="container"> |
|
|
|
<div class="ui grid"> |
|
|
|
{{template "ng/base/alert" .}} |
|
|
|
<div class="ten wide column"> |
|
|
|
<div id="dashboard-news" class="left grid-2-3"> |
|
|
|
|
|
|
|
{{template "user/dashboard/feeds" .}} |
|
|
|
{{template "user/dashboard/feeds" .}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="right grid-1-3" id="dashboard-sidebar"> |
|
|
|
<div class="six wide column"> |
|
|
|
<ul id="dashboard-sidebar-menu" class="menu menu-line"> |
|
|
|
<div class="ui {{if not .ContextUser.IsOrganization}}three{{else}}two{{end}} item tabable menu"> |
|
|
|
<li class="js-tab-nav js-tab-nav-show first" data-tab-target="#dashboard-my-repo"><a href="#">{{.i18n.Tr "repository"}}</a></li> |
|
|
|
<a class="item active" data-tab="repos">{{.i18n.Tr "repository"}}</a> |
|
|
|
{{if not .ContextUser.IsOrganization}} |
|
|
|
{{if not .ContextUser.IsOrganization}} |
|
|
|
<li class="js-tab-nav" data-tab-target="#dashboard-my-org"><a href="#">{{.i18n.Tr "organization"}}</a></li> |
|
|
|
<a class="item" data-tab="orgs">{{.i18n.Tr "organization"}}</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<li class="js-tab-nav last" data-tab-target="#dashboard-my-mirror"><a href="#">{{.i18n.Tr "mirror"}}</a></li> |
|
|
|
<a class="item" data-tab="mirrors">{{.i18n.Tr "mirror"}}</a> |
|
|
|
<li class="drop right"> |
|
|
|
|
|
|
|
<button class="btn btn-green text-bold" id="dashboard-new-repo"> |
|
|
|
|
|
|
|
<i class="octicon octicon-plus"></i> |
|
|
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
<ul class="menu menu-vertical drop-down" id="dashboard-new-repo-menu"> |
|
|
|
|
|
|
|
<li><a href="{{AppSubUrl}}/repo/create"><i class="octicon octicon-repo-create"></i>{{.i18n.Tr "new_repo"}}</a></li> |
|
|
|
|
|
|
|
<li><a href="{{AppSubUrl}}/repo/migrate"><i class="octicon octicon-repo-clone"></i>{{.i18n.Tr "new_migrate"}}</a></li> |
|
|
|
|
|
|
|
<li><a href="{{AppSubUrl}}/org/create"><i class="octicon octicon-organization"></i>{{.i18n.Tr "new_org"}}</a></li> |
|
|
|
|
|
|
|
</ul> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
</ul> |
|
|
|
|
|
|
|
<div class="panel" id="dashboard-my-repo"> |
|
|
|
|
|
|
|
<div class="panel-header"> |
|
|
|
|
|
|
|
<h4 class="left">{{.i18n.Tr "home.my_repos"}} |
|
|
|
|
|
|
|
<span class="repo-count label label-gray label-radius">{{.ContextUser.NumRepos}}</span> |
|
|
|
|
|
|
|
</h4> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="panel-body"> |
|
|
|
<div class="ui tab active list" data-tab="repos"> |
|
|
|
<ul class="list-no-style"> |
|
|
|
<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> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</h4> |
|
|
|
|
|
|
|
<div class="ui attached table segment"> |
|
|
|
|
|
|
|
<ul> |
|
|
|
{{range .Repos}} |
|
|
|
{{range .Repos}} |
|
|
|
<li {{if .IsPrivate}}class="private"{{end}}> |
|
|
|
<li {{if .IsPrivate}}class="private"{{end}}> |
|
|
|
<a href="{{AppSubUrl}}/{{$.ContextUser.Name}}/{{.Name}}"> |
|
|
|
<a href="{{AppSubUrl}}/{{$.ContextUser.Name}}/{{.Name}}"> |
|
|
|
<i class="octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i> |
|
|
|
<i class="octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i> |
|
|
|
<span class="repo-name"> |
|
|
|
<strong>{{.Name}}</strong> |
|
|
|
<strong class="repo">{{.Name}}</strong> |
|
|
|
<span class="ui right text light grey"> |
|
|
|
</span> |
|
|
|
|
|
|
|
<span class="right repo-star"> |
|
|
|
|
|
|
|
<i class="octicon octicon-star"></i>{{.NumStars}} |
|
|
|
<i class="octicon octicon-star"></i>{{.NumStars}} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
@ -49,23 +36,19 @@ |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{{if not .ContextUser.IsOrganization}} |
|
|
|
{{if not .ContextUser.IsOrganization}} |
|
|
|
<div class="panel-header repo-contrib-header"> |
|
|
|
<h4 class="ui top attached header"> |
|
|
|
<h4 class="text-bold">{{.i18n.Tr "home.collaborative_repos"}} |
|
|
|
{{.i18n.Tr "home.collaborative_repos"}} <span class="ui grey label">{{.CollaborateCount}}</span> |
|
|
|
<span class="repo-count label label-gray label-radius">{{.CollaborateCount}}</span> |
|
|
|
|
|
|
|
</h4> |
|
|
|
</h4> |
|
|
|
</div> |
|
|
|
<div class="ui attached table segment"> |
|
|
|
<div class="panel-body"> |
|
|
|
<ul> |
|
|
|
<ul class="list-no-style"> |
|
|
|
|
|
|
|
{{range .CollaborativeRepos}} |
|
|
|
{{range .CollaborativeRepos}} |
|
|
|
<li {{if .IsPrivate}}class="private"{{end}}> |
|
|
|
<li {{if .IsPrivate}}class="private"{{end}}> |
|
|
|
<a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}"> |
|
|
|
<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> |
|
|
|
<i class="octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i> |
|
|
|
<span class="repo-name"> |
|
|
|
{{.Owner.Name}} / <strong>{{.Name}}</strong> |
|
|
|
<span class="repo-name-prefix">{{.Owner.Name}} / </span> |
|
|
|
<span class="ui right text light grey"> |
|
|
|
<strong class="repo">{{.Name}}</strong> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<span class="right repo-star"> |
|
|
|
|
|
|
|
<i class="octicon octicon-star"></i>{{.NumStars}} |
|
|
|
<i class="octicon octicon-star"></i>{{.NumStars}} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
@ -75,23 +58,23 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{{if not .ContextUser.IsOrganization}} |
|
|
|
{{if not .ContextUser.IsOrganization}} |
|
|
|
<div class="panel" id="dashboard-my-org"> |
|
|
|
<div class="ui tab list" data-tab="orgs"> |
|
|
|
<div class="panel-header"> |
|
|
|
<h4 class="ui top attached header"> |
|
|
|
<h4 class="text-bold">{{.i18n.Tr "home.my_orgs"}} |
|
|
|
{{.i18n.Tr "home.my_orgs"}} <span class="ui grey label">{{.ContextUser.GetOrganizationCount}}</span> |
|
|
|
<span class="repo-count label label-gray label-radius">{{.ContextUser.GetOrganizationCount}}</span> |
|
|
|
<div class="ui right"> |
|
|
|
</h4> |
|
|
|
<a class="ui blue tiny show-panel button" href="{{AppSubUrl}}/org/create">{{.i18n.Tr "new_org"}}</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="panel-body"> |
|
|
|
</h4> |
|
|
|
<ul class="list-no-style"> |
|
|
|
<div class="ui attached table segment"> |
|
|
|
|
|
|
|
<ul> |
|
|
|
{{range .ContextUser.Orgs}} |
|
|
|
{{range .ContextUser.Orgs}} |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<a href="{{AppSubUrl}}/{{.Name}}"> |
|
|
|
<a href="{{AppSubUrl}}/{{.Name}}"> |
|
|
|
<i class="octicon octicon-organization"></i> |
|
|
|
<i class="octicon octicon-organization"></i> |
|
|
|
<span class="repo-name"> |
|
|
|
<strong>{{.Name}}</strong> |
|
|
|
<strong class="repo">{{.Name}}</strong> |
|
|
|
<span class="ui right text light grey"> |
|
|
|
</span> |
|
|
|
|
|
|
|
<span class="right repo-star"> |
|
|
|
|
|
|
|
<i class="octicon octicon-repo"></i>{{.NumRepos}} |
|
|
|
<i class="octicon octicon-repo"></i>{{.NumRepos}} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
@ -101,22 +84,19 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<div class="panel" id="dashboard-my-mirror"> |
|
|
|
|
|
|
|
<div class="panel-header"> |
|
|
|
<div class="ui tab list" data-tab="mirrors"> |
|
|
|
<h4 class="text-bold">{{.i18n.Tr "home.my_mirrors"}} |
|
|
|
<h4 class="ui top attached header"> |
|
|
|
<span class="repo-count label label-gray label-radius">{{.MirrorCount}}</span> |
|
|
|
{{.i18n.Tr "home.my_mirrors"}} <span class="ui grey label">{{.MirrorCount}}</span> |
|
|
|
</h4> |
|
|
|
</h4> |
|
|
|
</div> |
|
|
|
<div class="ui attached table segment"> |
|
|
|
<div class="panel-body"> |
|
|
|
<ul> |
|
|
|
<ul class="list-no-style"> |
|
|
|
|
|
|
|
{{range .Mirrors}} |
|
|
|
{{range .Mirrors}} |
|
|
|
<li {{if .IsPrivate}}class="private"{{end}}> |
|
|
|
<li {{if .IsPrivate}}class="private"{{end}}> |
|
|
|
<a href="{{AppSubUrl}}/{{$.ContextUser.Name}}/{{.Name}}"> |
|
|
|
<a href="{{AppSubUrl}}/{{$.ContextUser.Name}}/{{.Name}}"> |
|
|
|
<i class="octicon octicon-repo-clone"></i> |
|
|
|
<i class="octicon octicon-repo-clone"></i> |
|
|
|
<span class="repo-name"> |
|
|
|
<strong>{{.Name}}</strong> |
|
|
|
<strong class="repo">{{.Name}}</strong> |
|
|
|
<span class="ui right text light grey"> |
|
|
|
</span> |
|
|
|
|
|
|
|
<span class="right repo-star"> |
|
|
|
|
|
|
|
<i class="octicon octicon-sync"></i>{{.Interval}}H |
|
|
|
<i class="octicon octicon-sync"></i>{{.Interval}}H |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
@ -128,4 +108,5 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{template "ng/base/footer" .}} |
|
|
|
</div> |
|
|
|
|
|
|
|
{{template "base/footer" .}} |