Merge pull request #2068 from nanoant/patch/repo-file-list-layout
Repo file list layout & misc fixestokarchuk/v1.17
commit
73d9eebf01
@ -1,9 +1,9 @@ |
|||||||
{{template "base/head" .}} |
{{template "base/head" .}} |
||||||
<div class="repository commits"> |
<div class="repository commits"> |
||||||
{{template "repo/header" .}} |
{{template "repo/header" .}} |
||||||
|
{{template "repo/sidebar" .}} |
||||||
<div class="ui container"> |
<div class="ui container"> |
||||||
{{template "repo/sidebar" .}} |
{{template "repo/commits_table" .}} |
||||||
{{template "repo/commits_table" .}} |
</div> |
||||||
</div> |
|
||||||
</div> |
</div> |
||||||
{{template "base/footer" .}} |
{{template "base/footer" .}} |
||||||
|
@ -1,27 +1,34 @@ |
|||||||
{{if not .IsBareRepo}} |
{{if not .IsBareRepo}} |
||||||
<div class="ui secondary pointing menu navbar"> |
<div class="ui tabs container"> |
||||||
<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}"> |
<div class="ui tabular menu navbar"> |
||||||
<i class="icon octicon octicon-code"></i> {{.i18n.Tr "repo.code"}} |
<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}"> |
||||||
</a> |
<i class="icon octicon octicon-code"></i> {{.i18n.Tr "repo.code"}} |
||||||
<a class="{{if .PageIsIssueList}}active{{end}} item" href="{{.RepoLink}}/issues"> |
</a> |
||||||
<i class="icon octicon octicon-issue-opened"></i> {{.i18n.Tr "repo.issues"}} <span class="ui blue small label">{{.Repository.NumOpenIssues}}</span> |
<a class="{{if .PageIsIssueList}}active{{end}} item" href="{{.RepoLink}}/issues"> |
||||||
</a> |
<i class="icon octicon octicon-issue-opened"></i> {{.i18n.Tr "repo.issues"}} <span class="ui {{if eq 0 .Repository.NumOpenIssues}}gray{{else}}blue{{end}} small label">{{.Repository.NumOpenIssues}}</span> |
||||||
<a class="{{if .PageIsPullList}}active{{end}} item" href="{{.RepoLink}}/pulls"> |
</a> |
||||||
<i class="icon octicon octicon-git-pull-request"></i> {{.i18n.Tr "repo.pulls"}} <span class="ui blue small label">{{.Repository.NumOpenPulls}}</span> |
<a class="{{if .PageIsPullList}}active{{end}} item" href="{{.RepoLink}}/pulls"> |
||||||
</a> |
<i class="icon octicon octicon-git-pull-request"></i> {{.i18n.Tr "repo.pulls"}} <span class="ui {{if eq 0 .Repository.NumOpenPulls}}gray{{else}}blue{{end}} small label">{{.Repository.NumOpenPulls}}</span> |
||||||
<a class="{{if .PageIsCommits}}active{{end}} item" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}"> |
</a> |
||||||
<i class="icon octicon octicon-history"></i> {{.i18n.Tr "repo.commits"}} <span class="ui blue small label">{{.CommitsCount}}</span> |
<a class="{{if .PageIsCommits}}active{{end}} item" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}"> |
||||||
</a> |
<i class="icon octicon octicon-history"></i> {{.i18n.Tr "repo.commits"}} <span class="ui {{if eq 0 .CommitsCount}}gray{{else}}blue{{end}} small label">{{.CommitsCount}}</span> |
||||||
<a class="{{if .PageIsReleaseList}}active{{end}} item" href="{{.RepoLink}}/releases"> |
</a> |
||||||
<i class="icon octicon octicon-tag"></i> {{.i18n.Tr "repo.releases"}} <span class="ui blue small label">{{.Repository.NumTags}}</span> |
<a class="{{if .PageIsReleaseList}}active{{end}} item" href="{{.RepoLink}}/releases"> |
||||||
</a> |
<i class="icon octicon octicon-tag"></i> {{.i18n.Tr "repo.releases"}} <span class="ui {{if eq 0 .Repository.NumTags}}gray{{else}}blue{{end}} small label">{{.Repository.NumTags}}</span> |
||||||
<a class="{{if .PageIsWiki}}active{{end}} item" href="{{.RepoLink}}/wiki"> |
</a> |
||||||
<i class="icon octicon octicon-book"></i> {{.i18n.Tr "repo.wiki"}} |
<a class="{{if .PageIsWiki}}active{{end}} item" href="{{.RepoLink}}/wiki"> |
||||||
</a> |
<i class="icon octicon octicon-book"></i> {{.i18n.Tr "repo.wiki"}} |
||||||
{{if .IsRepositoryAdmin}} |
</a> |
||||||
<a class="{{if .PageIsSettings}}active{{end}} item" href="{{.RepoLink}}/settings"> |
{{if .IsRepositoryAdmin}} |
||||||
<i class="icon octicon octicon-tools"></i> {{.i18n.Tr "repo.settings"}} |
<div class="right menu"> |
||||||
</a> |
<a class="{{if .PageIsSettings}}active{{end}} item" href="{{.RepoLink}}/settings"> |
||||||
{{end}} |
<i class="icon octicon octicon-tools"></i> {{.i18n.Tr "repo.settings"}} |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
{{end}} |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
|
<div class="ui tabs divider"></div> |
||||||
|
{{else}} |
||||||
|
<div class="ui divider"></div> |
||||||
{{end}} |
{{end}} |
Loading…
Reference in new issue