Mono repo -> Master (#22553)
Combines the following repositories into one: https://github.com/mattermost/mattermost-server https://github.com/mattermost/mattermost-webapp https://github.com/mattermost/focalboard https://github.com/mattermost/mattermost-plugin-playbooks
Этот коммит содержится в:
15
server/boards/utils/links.go
Обычный файл
15
server/boards/utils/links.go
Обычный файл
@@ -0,0 +1,15 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
package utils
|
||||
|
||||
import "fmt"
|
||||
|
||||
// MakeCardLink creates fully qualified card links based on card id and parents.
|
||||
func MakeCardLink(serverRoot string, teamID string, boardID string, cardID string) string {
|
||||
return fmt.Sprintf("%s/team/%s/%s/0/%s", serverRoot, teamID, boardID, cardID)
|
||||
}
|
||||
|
||||
func MakeBoardLink(serverRoot string, teamID string, board string) string {
|
||||
return fmt.Sprintf("%s/team/%s/%s", serverRoot, teamID, board)
|
||||
}
|
||||
Ссылка в новой задаче
Block a user