|
@@ -3,10 +3,22 @@
|
|
{{template "repo/header" .}}
|
|
{{template "repo/header" .}}
|
|
<div class="ui container">
|
|
<div class="ui container">
|
|
{{template "base/alert" .}}
|
|
{{template "base/alert" .}}
|
|
- <p id="repo-desc">
|
|
|
|
- {{if .Repository.DescriptionHtml}}<span class="description has-emoji">{{.Repository.DescriptionHtml}}</span>{{else}}<span class="no-description text-italic">{{.i18n.Tr "repo.no_desc"}}</span>{{end}}
|
|
|
|
- <a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>
|
|
|
|
- </p>
|
|
|
|
|
|
+ {{if .PageIsRepoHome}}
|
|
|
|
+ <p id="repo-desc">
|
|
|
|
+ {{if .Repository.DescriptionHtml}}<span class="description has-emoji">{{.Repository.DescriptionHtml}}</span>{{else}}<span class="no-description text-italic">{{.i18n.Tr "repo.no_desc"}}</span>{{end}}
|
|
|
|
+ <a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>
|
|
|
|
+ </p>
|
|
|
|
+ <div class="ui segment" id="git-stats">
|
|
|
|
+ <div class="ui two horizontal center link list">
|
|
|
|
+ <div class="item">
|
|
|
|
+ <a href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}"><span class="ui text black"><i class="octicon octicon-history"></i> <b>{{.CommitsCount}}</b> {{.i18n.Tr "repo.commits"}}</span> </a>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="item">
|
|
|
|
+ <a href="{{.RepoLink}}/releases"><span class="ui text black"><i class="octicon octicon-tag"></i> <b>{{.Repository.NumTags}}</b> {{.i18n.Tr "repo.releases"}}</span> </a>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ {{end}}
|
|
<div class="ui secondary menu">
|
|
<div class="ui secondary menu">
|
|
{{if .PullRequestCtx.Allowed}}
|
|
{{if .PullRequestCtx.Allowed}}
|
|
<div class="fitted item">
|
|
<div class="fitted item">
|