forked from kevadesu/forgejo
Reser repo owner to organization when error occurs in repo create page, dashboard news feed page, create organization page
This commit is contained in:
parent
5e81383413
commit
9813161411
22 changed files with 350 additions and 269 deletions
|
@ -73,7 +73,7 @@
|
|||
<ul class="list-no-style">
|
||||
{{range .Repos}}
|
||||
<li {{if .IsPrivate}}class="private"{{end}}>
|
||||
<a href="{{$.ContextUser.Name}}/{{.Name}}">
|
||||
<a href="/{{$.ContextUser.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="repo-name">
|
||||
<strong class="repo">{{.Name}}</strong>
|
||||
|
@ -88,7 +88,9 @@
|
|||
</div>
|
||||
{{if not .ContextUser.IsOrganization}}
|
||||
<div class="panel-header repo-contrib-header">
|
||||
<h4 class="text-bold">{{.i18n.Tr "home.collaborative_repos"}}</h4>
|
||||
<h4 class="text-bold">{{.i18n.Tr "home.collaborative_repos"}}
|
||||
<span class="repo-count label label-gray label-radius">{{.CollaborateCount}}</span>
|
||||
</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<ul class="list-no-style">
|
||||
|
@ -113,7 +115,9 @@
|
|||
{{if not .ContextUser.IsOrganization}}
|
||||
<div class="panel" id="dashboard-my-org">
|
||||
<div class="panel-header">
|
||||
<h4 class="text-bold">{{.i18n.Tr "home.my_orgs"}}</h4>
|
||||
<h4 class="text-bold">{{.i18n.Tr "home.my_orgs"}}
|
||||
<span class="repo-count label label-gray label-radius">{{.ContextUser.GetOrganizationCount}}</span>
|
||||
</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<ul class="list-no-style">
|
||||
|
@ -136,7 +140,26 @@
|
|||
{{end}}
|
||||
<div class="panel" id="dashboard-my-mirror">
|
||||
<div class="panel-header">
|
||||
<h4 class="text-bold">{{.i18n.Tr "home.my_mirrors"}}</h4>
|
||||
<h4 class="text-bold">{{.i18n.Tr "home.my_mirrors"}}
|
||||
<span class="repo-count label label-gray label-radius">{{.MirrorCount}}</span>
|
||||
</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<ul class="list-no-style">
|
||||
{{range .Mirrors}}
|
||||
<li {{if .IsPrivate}}class="private"{{end}}>
|
||||
<a href="/{{$.ContextUser.Name}}/{{.Name}}">
|
||||
<i class="octicon octicon-repo-clone"></i>
|
||||
<span class="repo-name">
|
||||
<strong class="repo">{{.Name}}</strong>
|
||||
</span>
|
||||
<span class="right repo-star">
|
||||
<i class="octicon octicon-star"></i>{{.NumStars}}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
{{.SignedUser.Name}}
|
||||
</a>
|
||||
</li>
|
||||
{{range .ContextUser.Orgs}}
|
||||
{{range .Orgs}}
|
||||
<li class="org {{if eq $.ContextUser.Id .Id}}checked{{end}}">
|
||||
<a href="{{.DashboardLink}}">
|
||||
<i class="octicon octicon-check"></i>
|
||||
|
|
5
templates/user/dashboard/pulls.tmpl
Normal file
5
templates/user/dashboard/pulls.tmpl
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{template "ng/base/head" .}}
|
||||
{{template "ng/base/header" .}}
|
||||
{{template "user/dashboard/nav" .}}
|
||||
|
||||
{{template "ng/base/footer" .}}
|
|
@ -1,17 +0,0 @@
|
|||
{{template "base/head" .}}
|
||||
{{template "base/navbar" .}}
|
||||
<div id="body-nav">
|
||||
<div class="container">
|
||||
<ul class="nav nav-pills pull-right">
|
||||
<li><a href="/">Feed</a></li>
|
||||
<li><a href="/issues">Issues</a></li>
|
||||
<li class="active"><a href="/pulls">Pull Requests</a></li>
|
||||
<li><a href="/stars">Stars</a></li>
|
||||
</ul>
|
||||
<h3>Pull Requests</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="body" class="container" data-page="user">
|
||||
{{if .HasInfo}}<div class="alert alert-info">{{.InfoMsg}}</div>{{end}}
|
||||
</div>
|
||||
{{template "base/footer" .}}
|
|
@ -7,7 +7,7 @@
|
|||
<h2>{{.i18n.Tr "sign_in"}}</h2>
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
{{template "base/alert" .}}
|
||||
{{template "ng/base/alert" .}}
|
||||
<p class="field">
|
||||
<label class="req" for="username">{{.i18n.Tr "home.uname_holder"}}</label>
|
||||
<input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="username" name="uname" type="text" value="{{.uname}}" required/>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<h2>{{.i18n.Tr "sign_up"}}</h2>
|
||||
</div>
|
||||
<div class="panel-content">
|
||||
{{template "base/alert" .}}
|
||||
{{template "ng/base/alert" .}}
|
||||
{{if .DisableRegistration}}
|
||||
<p>{{.i18n.Tr "auth.disable_register_prompt"}}</p>
|
||||
{{else}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue