mirror of https://github.com/gogits/gogs.git
Unknwon
8 years ago
13 changed files with 269 additions and 27 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,31 @@ |
|||||||
|
{{template "base/head" .}} |
||||||
|
<div class="repository branches all"> |
||||||
|
{{template "repo/header" .}} |
||||||
|
<div class="ui container"> |
||||||
|
<div class="navbar"> |
||||||
|
{{template "repo/branches/navbar" .}} |
||||||
|
</div> |
||||||
|
<div class="ui top attached header"> |
||||||
|
{{.i18n.Tr "repo.branches.all"}} |
||||||
|
</div> |
||||||
|
<div class="ui attached segment list"> |
||||||
|
{{range .Branches}} |
||||||
|
<div class="item ui grid"> |
||||||
|
<div class="ui eleven wide column"> |
||||||
|
{{if .IsProtected}}<i class="octicon octicon-shield"></i> {{end}}<a class="markdown" href="{{$.RepoLink}}/src/{{.Name}}"><code>{{.Name}}</code></a> |
||||||
|
{{$timeSince := TimeSince .Commit.Committer.When $.Lang}} |
||||||
|
<span class="ui text light grey">{{$.i18n.Tr "repo.branches.updated_by" $timeSince .Commit.Committer.Name | Safe}}</span> |
||||||
|
</div> |
||||||
|
<div class="ui four wide column"> |
||||||
|
{{if eq $.BranchName .Name}} |
||||||
|
<a class="ui basic blue button" href="{{$.RepoLink}}/settings/branches">{{$.i18n.Tr "repo.branches.change_default_branch"}}</a> |
||||||
|
{{else}} |
||||||
|
<a class="ui basic button" href="{{$.RepoLink}}/compare/{{$.DefaultBranch.Name}}...{{.Name}}"><i class="octicon octicon-git-pull-request"></i> {{$.i18n.Tr "repo.pulls.new"}}</a> |
||||||
|
{{end}} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{{end}} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{{template "base/footer" .}} |
@ -0,0 +1,4 @@ |
|||||||
|
<div class="ui compact small menu"> |
||||||
|
<a class="{{if .PageIsBranchesOverview}}active{{end}} item" href="{{.RepoLink}}/branches">{{.i18n.Tr "repo.branches.overview"}}</a> |
||||||
|
<a class="{{if .PageIsBranchesAll}}active{{end}} item" href="{{.RepoLink}}/branches/all">{{.i18n.Tr "repo.branches.all"}}</a> |
||||||
|
</div> |
@ -0,0 +1,62 @@ |
|||||||
|
{{template "base/head" .}} |
||||||
|
<div class="repository branches overview"> |
||||||
|
{{template "repo/header" .}} |
||||||
|
<div class="ui container"> |
||||||
|
<div class="navbar"> |
||||||
|
{{template "repo/branches/navbar" .}} |
||||||
|
</div> |
||||||
|
<div class="ui top attached header"> |
||||||
|
{{.i18n.Tr "repo.settings.default_branch"}} |
||||||
|
</div> |
||||||
|
<div class="ui attached segment list"> |
||||||
|
<div class="item ui grid"> |
||||||
|
<div class="ui eleven wide column"> |
||||||
|
{{if .DefaultBranch.IsProtected}}<i class="octicon octicon-shield"></i> {{end}}<a class="markdown" href="{{$.RepoLink}}/src/{{.DefaultBranch.Name}}"><code>{{.DefaultBranch.Name}}</code></a> |
||||||
|
{{$timeSince := TimeSince .DefaultBranch.Commit.Committer.When $.Lang}} |
||||||
|
<span class="ui text light grey">{{$.i18n.Tr "repo.branches.updated_by" $timeSince .DefaultBranch.Commit.Committer.Name | Safe}}</span> |
||||||
|
</div> |
||||||
|
<div class="ui four wide column"> |
||||||
|
<a class="ui basic blue button" href="{{$.RepoLink}}/settings/branches">{{.i18n.Tr "repo.branches.change_default_branch"}}</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
{{if .ActiveBranches}} |
||||||
|
<div class="ui top attached header"> |
||||||
|
{{.i18n.Tr "repo.branches.active_branches"}} |
||||||
|
</div> |
||||||
|
<div class="ui attached segment list"> |
||||||
|
{{range .ActiveBranches}} |
||||||
|
<div class="item ui grid"> |
||||||
|
<div class="ui eleven wide column"> |
||||||
|
{{if .IsProtected}}<i class="octicon octicon-shield"></i> {{end}}<a class="markdown" href="{{$.RepoLink}}/src/{{.Name}}"><code>{{.Name}}</code></a> |
||||||
|
{{$timeSince := TimeSince .Commit.Committer.When $.Lang}} |
||||||
|
<span class="ui text light grey">{{$.i18n.Tr "repo.branches.updated_by" $timeSince .Commit.Committer.Name | Safe}}</span> |
||||||
|
</div> |
||||||
|
<div class="ui four wide column"> |
||||||
|
<a class="ui basic button" href="{{$.RepoLink}}/compare/{{$.DefaultBranch.Name}}...{{.Name}}"><i class="octicon octicon-git-pull-request"></i> {{$.i18n.Tr "repo.pulls.new"}}</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{{end}} |
||||||
|
</div> |
||||||
|
{{end}} |
||||||
|
|
||||||
|
{{if .StaleBranches}} |
||||||
|
<div class="ui top attached header"> |
||||||
|
{{.i18n.Tr "repo.branches.stale_branches"}} |
||||||
|
</div> |
||||||
|
<div class="ui attached segment list"> |
||||||
|
{{range .StaleBranches}} |
||||||
|
<div class="item ui grid"> |
||||||
|
<div class="ui fourteen wide column"> |
||||||
|
{{if .IsProtected}}<i class="octicon octicon-shield"></i> {{end}}<a class="markdown" href="{{$.RepoLink}}/src/{{.Name}}"><code>{{.Name}}</code></a> |
||||||
|
{{$timeSince := TimeSince .Commit.Committer.When $.Lang}} |
||||||
|
<span class="ui text light grey">{{$.i18n.Tr "repo.branches.updated_by" $timeSince .Commit.Committer.Name | Safe}}</span> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{{end}} |
||||||
|
</div> |
||||||
|
{{end}} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{{template "base/footer" .}} |
Loading…
Reference in new issue