diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-03-18 05:59:07 -0500 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-03-18 18:59:07 +0800 |
commit | 1c3bd436ccbe3852541dc7162df41632658769db (patch) | |
tree | 4ee965f43e0dee397c05557329bf524974cd94a4 /templates/repo | |
parent | 5ecb369dacb929c218399379350fa2ecb05693ae (diff) | |
download | gitea-1c3bd436ccbe3852541dc7162df41632658769db.tar.gz gitea-1c3bd436ccbe3852541dc7162df41632658769db.zip |
feat: Only use issue and wiki on repo. (#1297)
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/bare.tmpl | 7 | ||||
-rw-r--r-- | templates/repo/header.tmpl | 8 |
2 files changed, 8 insertions, 7 deletions
diff --git a/templates/repo/bare.tmpl b/templates/repo/bare.tmpl index af45e672c5..b72738fe34 100644 --- a/templates/repo/bare.tmpl +++ b/templates/repo/bare.tmpl @@ -8,9 +8,6 @@ {{if .IsRepositoryAdmin}} <h4 class="ui top attached header"> {{.i18n.Tr "repo.quick_guide"}} - <div class="ui right"> - <a class="ui black tiny button" href="{{.RepoLink}}/settings">{{.i18n.Tr "repo.settings"}}</a> - </div> </h4> <div class="ui attached guide table segment"> <div class="item"> @@ -58,6 +55,10 @@ git push -u origin master</code></pre> git push -u origin master</code></pre> </div> </div> + {{else}} + <div class="ui segment center"> + {{.i18n.Tr "repo.bare_message"}} + </div> {{end}} </div> </div> diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 16a2be4aa1..2317b5ba86 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -46,7 +46,7 @@ </div><!-- end grid --> </div><!-- end container --> {{end}} -{{if not (or .IsBareRepo .IsDiffCompare)}} +{{if not .IsDiffCompare}} <div class="ui tabs container"> <div class="ui tabular stackable menu navbar"> {{if .Repository.EnableUnit $.UnitTypeCode}} @@ -66,20 +66,20 @@ <i class="octicon octicon-issue-opened"></i> {{.i18n.Tr "repo.issues"}} </span> </a> {{end}} - + {{if .Repository.AllowsPulls}} <a class="{{if .PageIsPullList}}active{{end}} item" href="{{.RepoLink}}/pulls"> <i class="octicon octicon-git-pull-request"></i> {{.i18n.Tr "repo.pulls"}} <span class="ui {{if not .Repository.NumOpenPulls}}gray{{else}}blue{{end}} small label">{{.Repository.NumOpenPulls}}</span> </a> {{end}} - {{if .Repository.EnableUnit $.UnitTypeCommits}} + {{if and (.Repository.EnableUnit $.UnitTypeCommits) (not .IsBareRepo)}} <a class="{{if (or (.PageIsCommits) (.PageIsDiff))}}active{{end}} item" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}"> <i class="octicon octicon-history"></i> {{.i18n.Tr "repo.commits"}} <span class="ui {{if not .CommitsCount}}gray{{else}}blue{{end}} small label">{{.CommitsCount}}</span> </a> {{end}} - {{if .Repository.EnableUnit $.UnitTypeReleases}} + {{if and (.Repository.EnableUnit $.UnitTypeReleases) (not .IsBareRepo) }} <a class="{{if .PageIsReleaseList}}active{{end}} item" href="{{.RepoLink}}/releases"> <i class="octicon octicon-tag"></i> {{.i18n.Tr "repo.releases"}} <span class="ui {{if not .Repository.NumTags}}gray{{else}}blue{{end}} small label">{{.Repository.NumTags}}</span> </a> |