code.gitea.io/gitea@v1.22.3/templates/repo/settings/lfs_file.tmpl (about) 1 {{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings lfs")}} 2 <div class="user-main-content twelve wide column content repository file list"> 3 <div class="tab-size-8 non-diff-file-content"> 4 <h4 class="ui top attached header"> 5 <a href="{{.LFSFilesLink}}">{{ctx.Locale.Tr "repo.settings.lfs"}}</a> / <span class="truncate sha">{{.LFSFile.Oid}}</span> 6 <div class="ui right"> 7 {{if .EscapeStatus.Escaped}} 8 <a class="ui tiny basic button unescape-button tw-hidden">{{ctx.Locale.Tr "repo.unescape_control_characters"}}</a> 9 <a class="ui tiny basic button escape-button">{{ctx.Locale.Tr "repo.escape_control_characters"}}</a> 10 {{end}} 11 <a class="ui primary tiny button" href="{{.LFSFilesLink}}/find?oid={{.LFSFile.Oid}}&size={{.LFSFile.Size}}">{{ctx.Locale.Tr "repo.settings.lfs_findcommits"}}</a> 12 </div> 13 </h4> 14 <div class="ui bottom attached table unstackable segment"> 15 {{template "repo/unicode_escape_prompt" dict "EscapeStatus" .EscapeStatus "root" $}} 16 <div class="file-view{{if .IsMarkup}} markup {{.MarkupType}}{{else if .IsPlainText}} plain-text{{else if .IsTextFile}} code-view{{end}}"> 17 {{if .IsFileTooLarge}} 18 {{template "shared/filetoolarge" dict "RawFileLink" .RawFileLink}} 19 {{else if .IsMarkup}} 20 {{if .FileContent}}{{.FileContent | SafeHTML}}{{end}} 21 {{else if .IsPlainText}} 22 <pre>{{if .FileContent}}{{.FileContent | SafeHTML}}{{end}}</pre> 23 {{else if not .IsTextFile}} 24 <div class="view-raw"> 25 {{if .IsImageFile}} 26 <img src="{{$.RawFileLink}}"> 27 {{else if .IsVideoFile}} 28 <video controls src="{{$.RawFileLink}}"> 29 <strong>{{ctx.Locale.Tr "repo.video_not_supported_in_browser"}}</strong> 30 </video> 31 {{else if .IsAudioFile}} 32 <audio controls src="{{$.RawFileLink}}"> 33 <strong>{{ctx.Locale.Tr "repo.audio_not_supported_in_browser"}}</strong> 34 </audio> 35 {{else if .IsPDFFile}} 36 <div class="pdf-content is-loading" data-src="{{$.RawFileLink}}" data-fallback-button-text="{{ctx.Locale.Tr "diff.view_file"}}"></div> 37 {{else}} 38 <a href="{{$.RawFileLink}}" rel="nofollow" class="tw-p-4">{{ctx.Locale.Tr "repo.file_view_raw"}}</a> 39 {{end}} 40 </div> 41 {{else if .FileSize}} 42 <table> 43 <tbody> 44 <tr> 45 <td class="lines-num">{{.LineNums}}</td> 46 <td class="lines-code"><pre><code class="{{.HighlightClass}}"><ol>{{.FileContent}}</ol></code></pre></td> 47 </tr> 48 </tbody> 49 </table> 50 {{end}} 51 </div> 52 </div> 53 </div> 54 </div> 55 {{template "repo/settings/layout_footer" .}}