File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
model-server/src/main/kotlin/org/modelix/model/server/handlers Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,11 @@ import io.ktor.server.routing.routing
9
9
import kotlinx.html.FlowContent
10
10
import kotlinx.html.FlowOrInteractiveOrPhrasingContent
11
11
import kotlinx.html.a
12
+ import kotlinx.html.form
12
13
import kotlinx.html.h1
13
14
import kotlinx.html.i
14
15
import kotlinx.html.p
16
+ import kotlinx.html.postButton
15
17
import kotlinx.html.span
16
18
import kotlinx.html.table
17
19
import kotlinx.html.tbody
@@ -48,7 +50,7 @@ class RepositoryOverview(private val repoManager: RepositoriesManager) {
48
50
th { + " Repository" }
49
51
th { + " Branch" }
50
52
th {
51
- colSpan = " 2 "
53
+ colSpan = " 3 "
52
54
+ " Actions"
53
55
}
54
56
}
@@ -67,6 +69,7 @@ class RepositoryOverview(private val repoManager: RepositoriesManager) {
67
69
td { }
68
70
td { }
69
71
td { }
72
+ td { }
70
73
}
71
74
} else {
72
75
for (branch in branches) {
@@ -86,6 +89,15 @@ class RepositoryOverview(private val repoManager: RepositoriesManager) {
86
89
+ " Explore Latest Version"
87
90
}
88
91
}
92
+ td {
93
+ form {
94
+ postButton {
95
+ name = " delete"
96
+ formAction = " ../v2/repositories/${branch.repositoryId.id} /delete"
97
+ + " Delete Repository"
98
+ }
99
+ }
100
+ }
89
101
}
90
102
}
91
103
}
You can’t perform that action at this time.
0 commit comments