gitea/routers/web
Lunny Xiao 769be877f2
Use link in UI which returned a relative url but not html_url which contains an absolute url ()
partially fix 

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.
..
admin Add main landmark to templates and adjust titles ()
auth Fix error on account activation with wrong passwd ()
events Implement FSFE REUSE for golang files ()
explore Remove ONLY_SHOW_RELEVANT_REPOS setting ()
feed Use link in UI which returned a relative url but not html_url which contains an absolute url ()
healthcheck Implement FSFE REUSE for golang files ()
misc Implement FSFE REUSE for golang files ()
org Add Cargo package registry ()
repo Use link in UI which returned a relative url but not html_url which contains an absolute url ()
shared Add Cargo package registry ()
user Add Chef package registry ()
auth.go Implement FSFE REUSE for golang files ()
auth_windows.go Implement FSFE REUSE for golang files ()
base.go Implement FSFE REUSE for golang files ()
goget.go refactor some functions to support ctx as first parameter ()
home.go Implement FSFE REUSE for golang files ()
metrics.go Implement FSFE REUSE for golang files ()
nodeinfo.go Implement FSFE REUSE for golang files ()
swagger_json.go Implement FSFE REUSE for golang files ()
web.go Add Chef package registry ()
webfinger.go Implement FSFE REUSE for golang files ()