forgejo-aneksajo/templates
Nick 0c6a038c95 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-07-04 09:25:33 +02:00
..
admin Fix some URLs whose sub-path is missing (#31289) 2024-06-09 12:05:43 +02:00
api/packages/pypi Update templates/api/packages/pypi/simple.tmpl 2024-04-12 22:23:58 +00:00
base Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01: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 12:05:43 +02:00
explore Rename repo_updated to repo_updated_v7 to prevent regressions (#4117) 2024-06-14 13:26:46 +00:00
mail Rename Str2html to SanitizeHTML and clarify its behavior (followup) (take 2) 2024-05-13 18:38:48 +00:00
org [v7.0/forgejo] Org buttons add missing vertical padding (#4088) 2024-06-11 06:26:07 +00:00
package templates: Be more forgiving about missing package metadata 2024-05-10 18:10:25 +00:00
projects Remove .segment from .project-column (#31204) (#31239) 2024-06-09 11:47:34 +02:00
repo git-annex: views for annex files (#22) 2024-07-04 09:25:33 +02:00
shared Optimize runner-tags layout to enhance visual experience (#31258) (#31263) 2024-06-09 11:57:05 +02:00
status Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
swagger [SWAGGER] Make it consistent with reality 2024-06-19 06:40:17 +00:00
user Fix some URLs whose sub-path is missing (#31289) 2024-06-09 12:05:43 +02:00
webhook [FEAT] sourcehut webhooks 2024-04-05 19:36:04 +00:00
home.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
install.tmpl Fix some UI problems (install) (#30854) 2024-05-16 13:22:15 +00:00
post-install.tmpl [BRANDING] Custom loading animation for Forgejo 2024-02-05 16:02:13 +01:00