forgejo/templates
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
..
admin [UI] Fix admin layout 2024-07-30 23:35:22 +02:00
api/packages/pypi Update templates/api/packages/pypi/simple.tmpl 2024-04-12 16:43:30 +00:00
base [UI] Fix HTMX support for profile card 2024-07-17 01:41:32 +02:00
custom [FEAT] Repository flags 2024-02-05 16:09:42 +01:00
devtest Fix some URLs whose sub-path is missing (#31289) 2024-06-09 16:04:57 +02:00
explore [I18N] Injected updated time in translation string (#3837) 2024-05-20 18:47:35 +00:00
htmx [UI] Convert milestone to HTMX 2024-07-17 14:52:00 +02:00
mail Merge pull request '[SEC] Notify owner about TOTP enrollment' (#4704) from gusted/sec-more-totp into forgejo 2024-07-27 20:53:47 +00:00
org feat(UI): add package counter to repo/user/org overview pages 2024-07-31 12:40:24 +02:00
package Arch packages implementation (#4785) 2024-08-04 06:16:29 +00:00
projects Merge pull request 'Replace gt-word-break with tw-break-anywhere' (#4102) from 0ko/forgejo:ui-replace-gt-word-break into forgejo 2024-06-11 10:39:03 +00:00
repo [UI] Do not include trailing EOL character when counting lines 2024-08-06 04:36:57 +02:00
shared [UI] Fix HTMX support for profile card 2024-07-17 01:41:32 +02:00
status feat(quota): Quota enforcement 2024-08-02 11:10:34 +02:00
swagger activitypub: Implement an instance-wide actor 2024-08-05 10:50:26 +02:00
user feat(UI): add package counter to repo/user/org overview pages 2024-07-31 12:40:24 +02:00
webhook webhook: matrix access_token helper text 2024-04-16 08:59:56 +02:00
home.tmpl Add slogan config (#3752) 2024-06-07 17:12:48 +00:00
install.tmpl A few cosmetic improvements to the installation page (#4170) 2024-06-18 09:49:56 +00:00
post-install.tmpl [BRANDING] Custom loading animation for Forgejo 2024-02-05 16:02:13 +01:00