1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-01 02:31:58 +02:00
gitea/models
Lunny Xiao 769be877f2
Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986)
partially fix #19345

This PR add some `Link` methods for different objects. The `Link`
methods are not different from `HTMLURL`, they are lack of the absolute
URL. And most of UI `HTMLURL` have been replaced to `Link` so that users
can visit them from a different domain or IP.

This PR also introduces a new javascript configuration
`window.config.reqAppUrl` which is different from `appUrl` which is
still an absolute url but the domain has been replaced to the current
requested domain.
2023-02-06 12:09:18 -06:00
..
actions Fix ref to trigger Actions (#22679) 2023-01-31 22:45:25 +00:00
activities Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2023-02-06 12:09:18 -06:00
admin
asymkey Improve error report when user passes a private key (#22726) 2023-02-02 18:25:54 +00:00
auth Support scoped access tokens (#20908) 2023-01-17 15:46:03 -06:00
avatars
db Show all projects, not just repo projects and open/closed projects (#22640) 2023-02-04 22:35:08 +08:00
dbfs Add some comments for recent code (#22725) 2023-02-02 11:39:38 -06:00
fixtures Do not overwrite empty DefaultBranch (#22708) 2023-02-02 14:48:48 -06:00
git Add cron method to gc LFS MetaObjects (#22385) 2023-01-16 13:50:53 -06:00
issues Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2023-02-06 12:09:18 -06:00
migrations Implement actions (#21937) 2023-01-31 09:45:19 +08:00
organization Don't return duplicated users who can create org repo (#22560) 2023-01-30 18:12:45 +08:00
packages Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2023-02-06 12:09:18 -06:00
perm
project Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2023-02-06 12:09:18 -06:00
pull
repo Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2023-02-06 12:09:18 -06:00
secret
system Set disable_gravatar/enable_federated_avatar when offline mode is true (#22479) 2023-01-17 17:00:19 +02:00
unit Repositories: by default disable all units except code and pulls on forks (#22541) 2023-02-04 14:48:38 +08:00
unittest Implement actions (#21937) 2023-01-31 09:45:19 +08:00
user Implement actions (#21937) 2023-01-31 09:45:19 +08:00
webhook Support system hook API (#14537) 2023-01-28 19:12:10 +01:00
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate_test.go
migrate.go
org_team_test.go
org_team.go
org_test.go
org.go
repo_collaboration_test.go
repo_collaboration.go
repo_test.go
repo_transfer_test.go
repo_transfer.go
repo.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
user.go