Skip to content

Commit f25d8c3

Browse files
committed
use lfs label for lfs file rather than a long description
1 parent 180aa00 commit f25d8c3

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

options/locale/locale_en-US.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,6 @@ file_copy_permalink = Copy Permalink
13051305
view_git_blame = View Git Blame
13061306
video_not_supported_in_browser = Your browser does not support the HTML5 'video' tag.
13071307
audio_not_supported_in_browser = Your browser does not support the HTML5 'audio' tag.
1308-
stored_lfs = Stored with Git LFS
13091308
symbolic_link = Symbolic link
13101309
executable_file = Executable File
13111310
vendored = Vendored

templates/repo/diff/box.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@
101101
{{end}}
102102
</div>
103103
<span class="file tw-flex tw-items-center tw-font-mono tw-flex-1"><a class="muted file-link" title="{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}" href="#diff-{{$file.NameHash}}">{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}</a>
104-
{{if .IsLFSFile}} ({{ctx.Locale.Tr "repo.stored_lfs"}}){{end}}
105104
<button class="btn interact-fg tw-p-2" data-clipboard-text="{{$file.Name}}" data-tooltip-content="{{ctx.Locale.Tr "copy_path"}}">{{svg "octicon-copy" 14}}</button>
105+
{{if .IsLFSFile}}<span class="ui label">LFS</span>{{end}}
106106
{{if $file.IsGenerated}}
107107
<span class="ui label">{{ctx.Locale.Tr "repo.diff.generated"}}</span>
108108
{{end}}

templates/repo/file_info.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{{end}}
1212
{{if ne .FileSize nil}}
1313
<div class="file-info-entry">
14-
{{FileSize .FileSize}}{{if .IsLFSFile}} ({{ctx.Locale.Tr "repo.stored_lfs"}}){{end}}
14+
{{FileSize .FileSize}}{{if .IsLFSFile}}<span class="ui label">LFS</span>{{end}}
1515
</div>
1616
{{end}}
1717
{{if .LFSLock}}

0 commit comments

Comments
 (0)