forgejo/templates/repo
Gusted 5cf976739c
[UI] Do not include trailing EOL character when counting lines
- Adjust the counting of the number of lines of a file to match the
amount of rendered lines. This simply means that a file with the content
of `a\n` will be shown as having `1 line` rather than `2 lines`. This
matches with the amount of lines that are being rendered (the last empty
line is never rendered) and matches more with the expecation of the
user (a trailing EOL is a technical detail).
- In the case there's no EOL, the reason why it was counting
'incorrectly' was to show if there was a trailing EOL or not, but now
text is shown to tell the user this.
- Integration test added.
- Resolves Codeberg/Community#1612
2024-08-06 04:36:57 +02:00
..
actions Add support for workflow_dispatch (#3334) 2024-06-28 05:17:11 +00:00
branch ui: update pull request icons (#4455) 2024-07-16 14:38:46 +00:00
cite Remove APA as cite format 2024-07-20 15:48:57 +02:00
code Fix overflow on push notification (#31179) 2024-06-09 11:13:39 +02:00
diff ui: improve button gap consistency in repos (#4365) 2024-07-07 03:21:58 +00:00
editor
find
graph Size/gap changes and cleanup in commit graph (#4214) 2024-06-24 18:59:57 +00:00
issue fix(UI): missing rebase command line instructions for rebase ff-only 2024-07-31 11:36:46 +02:00
migrate ui: refactor repo migration items 2024-07-27 16:35:48 +05:00
projects
pulls Improve diff stats bar (#30669) 2024-04-28 15:39:01 +02:00
release Implement external assets 2024-07-29 20:35:55 +02:00
settings ui: fix wrong string used in a search box (#4258) 2024-06-28 16:28:03 +00:00
tag
wiki Replace gt-word-break with tw-break-anywhere 2024-06-11 08:57:27 +05:00
activity.tmpl Show repo activities even if only code unit active or git repo is empty but issue is active (#3455) 2024-04-28 13:47:52 +00:00
admin_flags.tmpl
blame.tmpl ui(blame): remove broken padding (#4318) 2024-07-04 11:46:31 +00:00
branch_dropdown.tmpl Fix long branch name overflows (https://github.com/go-gitea/gitea/pull/30345) 2024-05-24 22:11:37 +05:00
clone_buttons.tmpl
clone_script.tmpl
code_frequency.tmpl
commit_load_branches_and_tags.tmpl
commit_page.tmpl
commit_status.tmpl
commit_statuses.tmpl
commits.tmpl
commits_list.tmpl
commits_list_small.tmpl Fix some UI regressions for commit list (#30920) 2024-05-12 20:03:10 +02:00
commits_search_dropdown.tmpl
commits_table.tmpl
contributors.tmpl Fix Activity Page Contributors dropdown (#31264) 2024-06-18 20:05:23 +02:00
create.tmpl fix: preserve object format dropdown options on /repo/create error (#4360) 2024-07-16 14:42:35 +00:00
create_helper.tmpl
empty.tmpl
file_info.tmpl [UI] Do not include trailing EOL character when counting lines 2024-08-06 04:36:57 +02:00
flags.tmpl
forks.tmpl
graph.tmpl Size/gap changes and cleanup in commit graph (#4214) 2024-06-24 18:59:57 +00:00
header.tmpl feat(UI): add package counter to repo/user/org overview pages 2024-07-31 12:40:24 +02:00
header_fork.tmpl
home.tmpl Replace gt-word-break with tw-break-anywhere 2024-06-11 08:57:27 +05:00
icon.tmpl
latest_commit.tmpl
navbar.tmpl
packages.tmpl
pulse.tmpl feat(UI): fix links, add labels for releases on repo activity page 2024-08-02 07:56:03 +02:00
recent_commits.tmpl
release_tag_header.tmpl ui: improve button gap consistency 2024-06-28 13:11:32 +05:00
search.tmpl [FEAT] branch/tag dropdown for git-grep (#4262) 2024-06-29 06:57:34 +00:00
search_name.tmpl
shabox_badge.tmpl
star_unstar.tmpl
sub_menu.tmpl
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl ui: refactor user-cards as a grid 2024-08-02 19:27:31 +05:00
view_file.tmpl accessibility: anchor elements' missing href added (#4375) 2024-07-08 17:32:59 +00:00
view_list.tmpl feat(UI): add links to icons in repository file list 2024-08-01 13:32:01 +02:00
watch_unwatch.tmpl
watchers.tmpl