mirror of https://github.com/gogits/gogs.git
Unknwon
8 years ago
16 changed files with 175 additions and 122 deletions
File diff suppressed because one or more lines are too long
@ -1,49 +0,0 @@
|
||||
{{template "base/head" .}} |
||||
<div class="user"> |
||||
<div class="ui container"> |
||||
<div class="ui grid"> |
||||
{{template "user/settings/navbar" .}} |
||||
<div class="twelve wide column content"> |
||||
{{template "base/alert" .}} |
||||
<h4 class="ui top attached header"> |
||||
{{.i18n.Tr "admin.repositories"}} ({{.i18n.Tr "admin.total" .Total}}) |
||||
</h4> |
||||
<div class="ui attached segment"> |
||||
{{template "admin/base/search" .}} |
||||
</div> |
||||
|
||||
{{range .Repos}} |
||||
<div class="ui attached segment repos"> |
||||
<div class="ui list"> |
||||
<div class="item"> |
||||
<a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}"> |
||||
<span class="octicon octicon-repo text light grey"></span> |
||||
{{.Owner.Name}}/{{.Name}} |
||||
</a> |
||||
<span class="ui text light grey">{{.Size | FileSize}}</span> |
||||
{{if .IsPrivate}} |
||||
<div class="right floated content"> |
||||
<a class="ui red tiny button inline text-thin delete-button" href="" data-url="{{$.Link}}/leave?page={{$.Page.Current}}" data-id="{{.ID}}">{{$.i18n.Tr "settings.leave"}}</a> |
||||
</div> |
||||
{{end}} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{{end}} |
||||
|
||||
{{template "admin/base/page" .}} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="ui small basic leave modal"> |
||||
<div class="ui icon header"> |
||||
{{.i18n.Tr "teams.leave"}} |
||||
</div> |
||||
<div class="content"> |
||||
<p>{{.i18n.Tr "teams.leave_desc"}}</p> |
||||
</div> |
||||
{{template "base/delete_modal_actions" .}} |
||||
</div> |
||||
{{template "base/footer" .}} |
@ -0,0 +1,54 @@
|
||||
{{template "base/head" .}} |
||||
<div class="user settings repositories"> |
||||
<div class="ui container"> |
||||
<div class="ui grid"> |
||||
{{template "user/settings/navbar" .}} |
||||
<div class="twelve wide column content"> |
||||
{{template "base/alert" .}} |
||||
<h4 class="ui top attached header"> |
||||
{{.i18n.Tr "settings.repos"}} |
||||
</h4> |
||||
|
||||
<div class="ui attached segment repos"> |
||||
<div class="ui middle aligned divided list"> |
||||
{{range .Repos}} |
||||
<div class="item"> |
||||
<span class="text light grey"> |
||||
{{if .IsPrivate}} |
||||
<span class="text gold"><i class="octicon octicon-lock"></i></span> |
||||
{{else if .IsFork}} |
||||
<i class="octicon octicon-repo-forked"></i> |
||||
{{else if .IsMirror}} |
||||
<i class="octicon octicon-repo-clone"></i> |
||||
{{else}} |
||||
<i class="octicon octicon-repo"></i> |
||||
{{end}} |
||||
</span> |
||||
<a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}"> |
||||
{{.Owner.Name}}/{{.Name}} |
||||
</a> |
||||
<span class="ui text light grey">{{.Size | FileSize}}</span> |
||||
{{if not (eq .OwnerID $.SignedUserID)}} |
||||
<div class="right floated content"> |
||||
<a class="ui red tiny button inline text-thin delete-button" href="" data-url="{{$.Link}}/leave" data-id="{{.ID}}">{{$.i18n.Tr "settings.repos.leave"}}</a> |
||||
</div> |
||||
{{end}} |
||||
</div> |
||||
{{end}} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="ui small basic delete modal"> |
||||
<div class="ui icon header"> |
||||
{{.i18n.Tr "settings.repos.leave_title"}} |
||||
</div> |
||||
<div class="content"> |
||||
<p>{{.i18n.Tr "settings.repos.leave_desc"}}</p> |
||||
</div> |
||||
{{template "base/delete_modal_actions" .}} |
||||
</div> |
||||
{{template "base/footer" .}} |
Loading…
Reference in new issue