forgejo/templates
Gusted a10c6eb9c9
[GITEA] Fix generated source URL on rendered files
- The permalink and 'Reference in New issue' URL of an renderable
file (those where you can see the source and a rendered version of it,
such as markdown) doesn't contain `?display=source`. This leads the
issue that the URL doesn't have any effect, as by default the rendered
version is shown and thus not the source.
- Add `?display=source` to the permalink URL and to 'Reference in New Issue' if it's renderable file.
- Add integration testing.

(cherry picked from commit 458f20f862)
(cherry picked from commit 5e630d7b10)

Conflicts:
	models/fixtures/repo_unit.yml
	https://codeberg.org/forgejo/forgejo/pulls/1178
2023-08-01 10:09:23 +02:00
..
admin [GITEA] add option for banning dots in usernames 2023-08-01 09:56:36 +02:00
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
base Enable H014 and H023 djlint rules (#25786) 2023-07-09 20:33:25 +00:00
code Fix inconsistent user profile layout across tabs (#25625) 2023-07-06 18:59:24 +00:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest Introduce flex-list & flex-item elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
explore Introduce flex-list & flex-item elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
mail Add template linting via djlint (#25212) 2023-06-14 18:17:58 +00:00
org Introduce flex-list & flex-item elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
package Introduce flex-list & flex-item elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
projects Fix margin on the new/edit project page. (#25885) 2023-07-16 14:53:54 +00:00
repo [GITEA] Fix generated source URL on rendered files 2023-08-01 10:09:23 +02:00
shared Introduce flex-list & flex-item elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
status Replace fomantic divider module with our own (#25539) 2023-06-29 20:24:22 +08:00
swagger [GITEA] Add Upload URL to release API 2023-08-01 09:56:36 +02:00
user Introduce flex-list & flex-item elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 2023-04-01 13:47:54 +08:00
install.tmpl Show correct SSL Mode on "install page" (#25818) 2023-07-11 18:09:23 -04:00
post-install.tmpl Remove incorrect element ID on "post-install" page (#25104) 2023-06-08 12:23:39 +08:00