Fix when repo is empty
This commit is contained in:
parent
c47866b34a
commit
d710b5e791
|
@ -1,5 +1,5 @@
|
|||
{{with .Repository}}
|
||||
<div class="header-wrapper">
|
||||
{{with .Repository}}
|
||||
<div class="ui container"><!-- start container -->
|
||||
<div class="ui vertically padded grid head"><!-- start grid -->
|
||||
<div class="column"><!-- start column -->
|
||||
|
@ -45,10 +45,8 @@
|
|||
</div><!-- end column -->
|
||||
</div><!-- end grid -->
|
||||
</div><!-- end container -->
|
||||
</div>
|
||||
{{end}}
|
||||
{{if not (or .IsBareRepo .IsDiffCompare)}}
|
||||
<div class="header-wrapper">
|
||||
<div class="ui tabs container">
|
||||
<div class="ui tabular menu navbar">
|
||||
<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}">
|
||||
|
@ -84,8 +82,8 @@
|
|||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui tabs divider"></div>
|
||||
{{else}}
|
||||
<div class="ui divider"></div>
|
||||
{{end}}
|
||||
</div>
|
Loading…
Reference in New Issue