mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 05:39:32 +02:00
#988: GetRepoLink already contains AppSubUrl
This commit is contained in:
1 parent
6b70a0c0d9
commit
0720d3988f
12 files changed
+128
-94
No files matched your search
+8
-1
@@ -97,8 +97,15 @@ func (a Action) GetRepoName() string {
|
||||
return a.RepoName
|
||||
}
|
||||
|
||||
func (a Action) GetRepoPath() string {
|
||||
return path.Join(a.RepoUserName, a.RepoName)
|
||||
}
|
||||
|
||||
func (a Action) GetRepoLink() string {
|
||||
return path.Join(setting.AppSubUrl, a.RepoUserName, a.RepoName)
|
||||
if len(setting.AppSubUrl) > 0 {
|
||||
return path.Join(setting.AppSubUrl, a.GetRepoPath())
|
||||
}
|
||||
return "/" + a.GetRepoPath()
|
||||
}
|
||||
|
||||
func (a Action) GetBranch() string {
|
||||
|
||||
Reference in new issue
Block a user