Browse Source

fix issue

tags/v1.22.11.3^2
zhoupzh 3 years ago
parent
commit
6c911fb1ec
1 changed files with 17 additions and 8 deletions
  1. +17
    -8
      templates/repo/home.tmpl

+ 17
- 8
templates/repo/home.tmpl View File

@@ -157,7 +157,9 @@
{{.i18n.Tr "repo.archive.title"}}
</div>
{{end}}
{{if not .IsViewFile}}
{{template "repo/sub_menu" .}}
{{end}}
<div class="ui stackable secondary menu mobile--margin-between-items mobile--no-negative-margins">
{{template "repo/branch_dropdown" .}}
{{ $n := len .TreeNames}}
@@ -203,14 +205,7 @@
class="section"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $p}}"
title="{{$v}}">{{EllipsisString $v 30}}</a></span>{{end}}{{end}}</span></div>
{{end}}
{{if and (.IsViewFile) (IpynbBool .TreePath)}}
<div class="right fitted item">
<button class="ui green button tiny" id="notebook-debug" style="display: flex;align-items: center;">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><path fill="none" d="M0 0h24v24H0z"/><path d="M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm1 2v14h16V5H4zm8 10h6v2h-6v-2zm-3.333-3L5.838 9.172l1.415-1.415L11.495 12l-4.242 4.243-1.415-1.415L8.667 12z" fill="rgba(255,255,255,1)"/></svg>
<span style="margin-left:0.3rem">{{.i18n.Tr "repo.notebook_open"}}</span>
</button>
</div>
{{end}}
<div class="right fitted item" id="file-buttons">
<div class="ui tiny blue buttons">
{{if .Repository.CanEnableEditor}}
@@ -288,10 +283,22 @@
</div>
{{end}}
</div>
{{if and (.IsViewFile) (IpynbBool .TreePath)}}
<div class="right fitted item">
<button class="ui green button tiny" id="notebook-debug" style="display: flex;align-items: center;">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><path fill="none" d="M0 0h24v24H0z"/><path d="M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm1 2v14h16V5H4zm8 10h6v2h-6v-2zm-3.333-3L5.838 9.172l1.415-1.415L11.495 12l-4.242 4.243-1.415-1.415L8.667 12z" fill="rgba(255,255,255,1)"/></svg>
<span style="margin-left:0.3rem">{{.i18n.Tr "repo.notebook_open"}}</span>
</button>
</div>
{{end}}
</div>
<div class="ui container">
<div class="ui mobile reversed stackable grid">
{{if not .IsViewFile}}
<div class="ui ten wide tablet twelve wide computer column">
{{else}}
<div class="ui sixteen wide tablet sixteen wide computer column">
{{end}}
{{if .IsViewFile}}
{{template "repo/view_file" .}}
{{else if .IsBlame}}
@@ -300,6 +307,7 @@
{{template "repo/view_list" .}}
{{end}}
</div>
{{if not .IsViewFile}}
<div class="ui six wide tablet four wide computer column">
<div id="repo-desc" data-IsAdmin="{{.Permission.IsAdmin}}"
data-IsArchived="{{.Repository.IsArchived}}">
@@ -379,6 +387,7 @@
</div>
</div>
</div>
{{end}}
</div>
</div>



Loading…
Cancel
Save