@import org.silkframework.util.DPair @import org.silkframework.workspace.Project @import controllers.rules.routes.Assets @import org.silkframework.runtime.activity.UserContext @import org.silkframework.util.Identifier @(sources: DPair[String], paths: DPair[Seq[String]], onlySource: Boolean, loadingMsg: String = "", warning: String = "", project: Project)(implicit userContext: UserContext) @pathOperators(sources.source, paths.source, "Source") @if(!onlySource) { @pathOperators(sources.target, paths.target, "Target") } @pathOperators(source: String, paths: Seq[String], pathType: String) = { @*Maximum Paths that should be rendered by default*@ @defining(20) { maximumPaths =>
@pathType paths: @source

(custom path)

@pathExpanded("", pathType)
@loadingMsg @if(!warning.isEmpty) { } @for((path, index) <- paths.zipWithIndex) {
@path
} @if(paths.length > maximumPaths) {
Show all @{pathType} Paths
}
} } @pathExpanded(path: String, pathType: String) = { @pathBox(pathType.toLowerCase + "Path", pathType == "Source", path, 0, 0, false, project) } @pathId(pathType: String, path: String) = {path_@{pathType.toLowerCase}_@{Identifier.fromAllowed(path, Some("empty")).toString}}