forgejo-aneksajo/templates
Nick 1276d296cc git-annex: views for annex files (#22)
This updates the repo index/file view endpoints so annex files match the way
LFS files are rendered, making annexed files accessible via the web instead of
being black boxes only accessible by git clone.

This mostly just duplicates the existing LFS logic. It doesn't try to combine itself
with the existing logic, to make merging with upstream easier. If upstream ever
decides to accept, I would like to try to merge the redundant logic.

The one bit that doesn't directly copy LFS is my choice to hide annex-symlinks.
LFS files are always _pointer files_ and therefore always render with the "file"
icon and no special label, but annex files come in two flavours: symlinks or
pointer files. I've conflated both kinds to try to give a consistent experience.

The tests in here ensure the correct download link (/media, from the last PR)
renders in both the toolbar and, if a binary file (like most annexed files will be),
in the main pane, but it also adds quite a bit of code to make sure text files
that happen to be annexed are dug out and rendered inline like LFS files are.
2024-04-25 15:15:21 +02:00
..
admin Add word break to the repo list in admin settings page (#28034) (#28035) 2023-11-22 17:11:57 +01:00
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
base Merge branch 'rebase-v1.21/forgejo-branding' into wip-v1.21-forgejo 2023-11-13 16:47:18 +01:00
code Backport ctx locale refactoring manually (#27231) (#27259) (#27260) 2023-09-25 13:15:51 +00:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest Improve dropdown button alignment and fix hover bug (#27632) (#27637) 2023-10-16 16:15:15 +08:00
explore Fix incorrect "tab" parameter for repo search sub-template (#27755) (#27764) 2023-10-24 11:01:26 +08:00
mail [GITEA] notifies admins on new user registration 2023-11-13 14:06:27 +01:00
org [MODERATION] Prepare moderation for context locale changes (squash) 2023-11-13 13:58:02 +01:00
package Do not display search box when there's no packages yet (#28146) (#28159) 2023-11-22 17:12:12 +01:00
projects More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
repo git-annex: views for annex files (#22) 2024-04-25 15:15:21 +02:00
shared Merge branch 'rebase-v1.21/forgejo-branding' into wip-v1.21-forgejo 2023-11-13 16:47:18 +01:00
status Clean up template locale usage (#27856) (#27857) 2023-10-31 17:35:55 +01:00
swagger [BRANDING] Replace branding in Swagger 2023-11-22 17:14:07 +01:00
user Merge branch 'rebase-v1.21/forgejo-branding' into wip-v1.21-forgejo 2023-11-13 16:47:18 +01:00
webhook [BRANDING] add the forgejo webhook type & update webhook docs URLs 2023-11-13 13:58:18 +01:00
home.tmpl Backport ctx locale refactoring manually (#27231) (#27259) (#27260) 2023-09-25 13:15:51 +00:00
install.tmpl Merge branch 'rebase-v1.21/forgejo-branding' into wip-v1.21-forgejo 2023-11-13 16:47:18 +01:00
post-install.tmpl [BRANDING] Custom loading animation for Forgejo 2023-11-13 13:58:17 +01:00