Update template.
This commit is contained in:
parent
a63fce8983
commit
f89cd5e2dc
@ -21,8 +21,7 @@
|
|||||||
{{ if and (not .IsSigned) (not .HideRepoInfo) (not .IsBlame)}}
|
{{ if and (not .IsSigned) (not .HideRepoInfo) (not .IsBlame)}}
|
||||||
|
|
||||||
<div class="repo-description gt-word-break">
|
<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>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
@ -55,31 +54,19 @@
|
|||||||
<!-- HIER-->
|
<!-- HIER-->
|
||||||
{{$n := len .TreeNames}}
|
{{$n := len .TreeNames}}
|
||||||
{{$l := Eval $n "-" 1}}
|
{{$l := Eval $n "-" 1}}
|
||||||
{{if .IsSigned }}
|
{{if not .IsSigned }}
|
||||||
{{if .IsViewFile}}
|
{{if .IsViewFile}}
|
||||||
{{template "repo/view_file" .}}
|
{{template "repo/view_file" .}}
|
||||||
{{else if .IsBlame}}
|
{{else if .IsBlame}}
|
||||||
{{template "repo/blame" .}}
|
{{template "repo/blame" .}}
|
||||||
{{else}}{{/* IsViewDirectory */}}
|
{{else}}
|
||||||
|
{{/* IsViewDirectory */}}
|
||||||
<div id="bottom">
|
<div id="bottom">
|
||||||
{{template "repo/sub_menu" .}}
|
|
||||||
{{template "repo/view_list" .}}
|
{{template "repo/view_list" .}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ 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 }}
|
|
||||||
{{ end }}
|
|
||||||
{{$isHomepage := (eq $n 0)}}
|
{{$isHomepage := (eq $n 0)}}
|
||||||
<div class="repo-button-row" data-is-homepage="{{$isHomepage}}">
|
<div class="repo-button-row" data-is-homepage="{{$isHomepage}}">
|
||||||
<div class="repo-button-row-left">
|
<div class="repo-button-row-left">
|
||||||
@ -182,6 +169,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- old place -->
|
<!-- 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>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "base/footer" .}}
|
||||||
|
@ -92,11 +92,12 @@
|
|||||||
{{ if false }}
|
{{ if false }}
|
||||||
</h4>
|
</h4>
|
||||||
{{end}}
|
{{end}}
|
||||||
<div class="ui bottom attached table unstackable segment">
|
<div class="bottom attached table unstackable segment">
|
||||||
{{if not (or .IsMarkup .IsRenderedHTML)}}
|
{{if not (or .IsMarkup .IsRenderedHTML)}}
|
||||||
{{template "repo/unicode_escape_prompt" dict "EscapeStatus" .EscapeStatus "root" $}}
|
{{template "repo/unicode_escape_prompt" dict "EscapeStatus" .EscapeStatus "root" $}}
|
||||||
{{end}}
|
{{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}}
|
{{if .IsFileTooLarge}}
|
||||||
{{template "shared/filetoolarge" dict "RawFileLink" .RawFileLink}}
|
{{template "shared/filetoolarge" dict "RawFileLink" .RawFileLink}}
|
||||||
{{else if .IsMarkup}}
|
{{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" .}}
|
{{template "repo/view_file" .}}
|
||||||
{{end}}
|
{{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}}>
|
<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}}
|
{{end}}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
{{if and (.IsSigned) .ReadmeExist (or .IsMarkup .IsPlainText)}}
|
||||||
|
{{template "repo/view_file" .}}
|
||||||
|
{{end}}
|
||||||
|
Loading…
Reference in New Issue
Block a user