Update template.
This commit is contained in:
parent
a63fce8983
commit
f89cd5e2dc
@ -21,8 +21,7 @@
|
||||
{{ if and (not .IsSigned) (not .HideRepoInfo) (not .IsBlame)}}
|
||||
|
||||
<div class="repo-description gt-word-break">
|
||||
Source files of this project at <a href="#bottom">bottom</a> of page. All source is under MIT license if no LICENSE file in list.
|
||||
|
||||
<i>All source listed <a href="#repo-files-table">below</a> is under MIT license if no LICENSE file stating different is available.</i>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
@ -55,31 +54,19 @@
|
||||
<!-- HIER-->
|
||||
{{$n := len .TreeNames}}
|
||||
{{$l := Eval $n "-" 1}}
|
||||
{{if .IsSigned }}
|
||||
{{if .IsViewFile}}
|
||||
{{template "repo/view_file" .}}
|
||||
{{else if .IsBlame}}
|
||||
{{template "repo/blame" .}}
|
||||
{{else}}{{/* IsViewDirectory */}}
|
||||
|
||||
<div id="bottom">
|
||||
{{template "repo/sub_menu" .}}
|
||||
{{template "repo/view_list" .}}
|
||||
</div>
|
||||
{{end}}
|
||||
{{ end }}
|
||||
{{ if .IsSigned }}
|
||||
{{if .IsSigned }}
|
||||
|
||||
{{template "repo/sub_menu" .}}
|
||||
{{template "repo/view_list" .}}
|
||||
{{if .IsViewFile}}
|
||||
{{template "repo/view_file" .}}
|
||||
{{else if .IsBlame}}
|
||||
{{template "repo/blame" .}}
|
||||
{{else}}{{/* IsViewDirectory */}}
|
||||
{{ end }}
|
||||
{{if not .IsSigned }}
|
||||
{{if .IsViewFile}}
|
||||
{{template "repo/view_file" .}}
|
||||
{{else if .IsBlame}}
|
||||
{{template "repo/blame" .}}
|
||||
{{else}}
|
||||
{{/* IsViewDirectory */}}
|
||||
<div id="bottom">
|
||||
{{template "repo/view_list" .}}
|
||||
</div>
|
||||
{{end}}
|
||||
{{ end }}
|
||||
|
||||
{{$isHomepage := (eq $n 0)}}
|
||||
<div class="repo-button-row" data-is-homepage="{{$isHomepage}}">
|
||||
<div class="repo-button-row-left">
|
||||
@ -182,6 +169,18 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- old place -->
|
||||
{{ if .IsSigned }}
|
||||
{{template "repo/sub_menu" .}}
|
||||
{{if .IsViewFile}}
|
||||
{{template "repo/view_file" .}}
|
||||
{{else if .IsBlame}}
|
||||
{{template "repo/blame" .}}
|
||||
{{else}}
|
||||
{{template "repo/view_list" .}}
|
||||
{{end}}
|
||||
{{ end }}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{template "base/footer" .}}
|
||||
|
@ -92,11 +92,12 @@
|
||||
{{ if false }}
|
||||
</h4>
|
||||
{{end}}
|
||||
<div class="ui bottom attached table unstackable segment">
|
||||
<div class="bottom attached table unstackable segment">
|
||||
{{if not (or .IsMarkup .IsRenderedHTML)}}
|
||||
{{template "repo/unicode_escape_prompt" dict "EscapeStatus" .EscapeStatus "root" $}}
|
||||
{{end}}
|
||||
<div class="file-view{{if .IsMarkup}} markup {{.MarkupType}}{{else if .IsPlainText}} plain-text{{else if .IsTextSource}} code-view{{end}}">
|
||||
<!-- file-view -->
|
||||
<div style="padding-bottom: 16px;" class="{{if .IsMarkup}} markup {{.MarkupType}}{{else if .IsPlainText}} plain-text{{else if .IsTextSource}} code-view{{end}}">
|
||||
{{if .IsFileTooLarge}}
|
||||
{{template "shared/filetoolarge" dict "RawFileLink" .RawFileLink}}
|
||||
{{else if .IsMarkup}}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{{if and .ReadmeExist (or .IsMarkup .IsPlainText)}}
|
||||
{{if and (not .IsSigned) .ReadmeExist (or .IsMarkup .IsPlainText)}}
|
||||
{{template "repo/view_file" .}}
|
||||
{{end}}
|
||||
<table id="repo-files-table" class="ui single line table tw-mt-0" {{if .HasFilesWithoutLatestCommit}}hx-indicator="tr.notready td.message span" hx-trigger="load" hx-swap="morph" hx-post="{{.LastCommitLoaderURL}}"{{end}}>
|
||||
@ -71,4 +71,6 @@
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{{if and (.IsSigned) .ReadmeExist (or .IsMarkup .IsPlainText)}}
|
||||
{{template "repo/view_file" .}}
|
||||
{{end}}
|
||||
|
Loading…
Reference in New Issue
Block a user