|
|
@ -15,9 +15,11 @@ |
|
|
|
{{$timeSince := TimeSince .DefaultBranch.Commit.Committer.When $.Lang}} |
|
|
|
{{$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> |
|
|
|
<span class="ui text light grey">{{$.i18n.Tr "repo.branches.updated_by" $timeSince .DefaultBranch.Commit.Committer.Name | Safe}}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
{{if $.IsRepositoryAdmin}} |
|
|
|
<div class="ui four wide column"> |
|
|
|
<div class="ui four wide column"> |
|
|
|
<a class="ui basic blue button" href="{{$.RepoLink}}/settings/branches">{{.i18n.Tr "repo.branches.change_default_branch"}}</a> |
|
|
|
<a class="ui basic blue button" href="{{$.RepoLink}}/settings/branches">{{.i18n.Tr "repo.branches.change_default_branch"}}</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -33,9 +35,11 @@ |
|
|
|
{{$timeSince := TimeSince .Commit.Committer.When $.Lang}} |
|
|
|
{{$timeSince := TimeSince .Commit.Committer.When $.Lang}} |
|
|
|
<span class="ui text light grey">{{$.i18n.Tr "repo.branches.updated_by" $timeSince .Commit.Committer.Name | Safe}}</span> |
|
|
|
<span class="ui text light grey">{{$.i18n.Tr "repo.branches.updated_by" $timeSince .Commit.Committer.Name | Safe}}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
{{if $.IsRepositoryWriter}} |
|
|
|
<div class="ui four wide column"> |
|
|
|
<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> |
|
|
|
<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> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|