mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-05 20:44:42 +02:00
19 lines
272 B
Go
19 lines
272 B
Go
package integration
|
|
|
|
import "fmt"
|
|
|
|
func maybeGroupSegment(gid int64) string {
|
|
if gid > 0 {
|
|
return fmt.Sprintf("%d/", gid)
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func maybeWebGroupSegment(gid int64) string {
|
|
gs := maybeGroupSegment(gid)
|
|
if gs != "" {
|
|
return "group/" + gs
|
|
}
|
|
return ""
|
|
}
|