mirror of
https://github.com/go-gitea/gitea
synced 2024-11-20 00:34:10 +01:00
Fix when repo is empty
This commit is contained in:
parent
c47866b34a
commit
d710b5e791
1 changed files with 76 additions and 78 deletions
|
@ -1,5 +1,5 @@
|
||||||
{{with .Repository}}
|
|
||||||
<div class="header-wrapper">
|
<div class="header-wrapper">
|
||||||
|
{{with .Repository}}
|
||||||
<div class="ui container"><!-- start container -->
|
<div class="ui container"><!-- start container -->
|
||||||
<div class="ui vertically padded grid head"><!-- start grid -->
|
<div class="ui vertically padded grid head"><!-- start grid -->
|
||||||
<div class="column"><!-- start column -->
|
<div class="column"><!-- start column -->
|
||||||
|
@ -45,10 +45,8 @@
|
||||||
</div><!-- end column -->
|
</div><!-- end column -->
|
||||||
</div><!-- end grid -->
|
</div><!-- end grid -->
|
||||||
</div><!-- end container -->
|
</div><!-- end container -->
|
||||||
</div>
|
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if not (or .IsBareRepo .IsDiffCompare)}}
|
{{if not (or .IsBareRepo .IsDiffCompare)}}
|
||||||
<div class="header-wrapper">
|
|
||||||
<div class="ui tabs container">
|
<div class="ui tabs container">
|
||||||
<div class="ui tabular menu navbar">
|
<div class="ui tabular menu navbar">
|
||||||
<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}">
|
<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}">
|
||||||
|
@ -84,8 +82,8 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="ui tabs divider"></div>
|
<div class="ui tabs divider"></div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
</div>
|
Loading…
Reference in a new issue