diff options
author | silverwind <me@silverwind.io> | 2022-06-15 06:28:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 12:28:24 +0800 |
commit | b4d420d8658feced78d897de4fbc9cc6ca76ab4e (patch) | |
tree | e08a1a54ad631610acb0be33cf958e0114e7ce8f /templates | |
parent | f6e2dbaf1e079308b0739e9a74f165257ea6171d (diff) | |
download | gitea-b4d420d8658feced78d897de4fbc9cc6ca76ab4e.tar.gz gitea-b4d420d8658feced78d897de4fbc9cc6ca76ab4e.zip |
Replace unstyled meter with progress (#19968)
Replace the only `<meter>` element in use with a `<progress>` which is
styled properly. Also slightly adjust colors on it for better contrast.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/diff/box.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index a70532eca9..fdc6db2f1a 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -19,8 +19,8 @@ </div> <div class="diff-detail-actions df ac"> {{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}} - <meter id="viewed-files-summary" value="{{.Diff.NumViewedFiles}}" max="{{.Diff.NumFiles}}"></meter> - <label for="viewed-files-summary" id="viewed-files-summary-label" data-text-changed-template="{{.i18n.Tr "repo.pulls.viewed_files_label"}}"> + <progress id="viewed-files-summary" class="mr-2" value="{{.Diff.NumViewedFiles}}" max="{{.Diff.NumFiles}}"></progress> + <label for="viewed-files-summary" id="viewed-files-summary-label" class="mr-2" data-text-changed-template="{{.i18n.Tr "repo.pulls.viewed_files_label"}}"> {{.i18n.Tr "repo.pulls.viewed_files_label" .Diff.NumViewedFiles .Diff.NumFiles}} </label> {{end}} |