Skip to content

Commit ab3dea7

Browse files
committed
more enhancements
1 parent 51a0dfe commit ab3dea7

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

options/locale/locale_en-US.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3949,7 +3949,7 @@ exit_fullscreen = Exit Fullscreen
39493949
changed_filemode = %[1]s → %[2]s
39503950
; Ordered by git filemode value, ascending. E.g. directory has "040000", normal file has "100644", …
39513951
directory = Directory
3952-
normal_file = Normal file
3953-
executable_file = Executable file
3952+
normal_file = normal
3953+
executable_file = executable
39543954
symbolic_link = Symbolic link
39553955
submodule = Submodule

templates/repo/diff/box.tmpl

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,22 +104,20 @@
104104
{{if and $file.Mode $file.OldMode}}
105105
{{$old := ctx.Locale.Tr ($file.ModeTranslationKey $file.OldMode)}}
106106
{{$new := ctx.Locale.Tr ($file.ModeTranslationKey $file.Mode)}}
107-
<span class="tw-mx-1 tw-whitespace-nowrap">{{ctx.Locale.Tr "git.filemode.changed_filemode" $old $new}}</span>
107+
<span class="ui label tw-font-sans tw-shrink-0">{{ctx.Locale.Tr "git.filemode.changed_filemode" $old $new}}</span>
108108
{{else if $file.Mode}}
109-
<span class="tw-mx-1 tw-whitespace-nowrap">{{ctx.Locale.Tr ($file.ModeTranslationKey $file.Mode)}}</span>
109+
<span class="ui label tw-font-sans tw-shrink-0">{{ctx.Locale.Tr ($file.ModeTranslationKey $file.Mode)}}</span>
110110
{{end}}
111111
</span>
112112
</div>
113-
<div class="tw-font-semibold tw-flex tw-items-center tw-font-mono">
114-
{{if $file.IsBin}}
115-
<span class="tw-ml-0.5 tw-mr-2">
116-
{{ctx.Locale.Tr "repo.diff.bin"}}
117-
</span>
118-
{{else}}
119-
{{template "repo/diff/stats" dict "file" . "root" $}}
120-
{{end}}
121-
</div>
122113
<div class="diff-file-header-actions tw-flex tw-items-center tw-gap-1 tw-flex-wrap tw-ml-2">
114+
<div class="tw-font-semibold tw-flex tw-items-center tw-font-mono">
115+
{{if $file.IsBin}}
116+
{{ctx.Locale.Tr "repo.diff.bin"}}
117+
{{else}}
118+
{{template "repo/diff/stats" dict "file" . "root" $}}
119+
{{end}}
120+
</div>
123121
{{if $showFileViewToggle}}
124122
<div class="ui compact icon buttons">
125123
<button class="ui tiny basic button file-view-toggle" data-toggle-selector="#diff-source-{{$file.NameHash}}" data-tooltip-content="{{ctx.Locale.Tr "repo.file_view_source"}}">{{svg "octicon-code"}}</button>

0 commit comments

Comments
 (0)