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
99import kotlinx.html.FlowContent
1010import kotlinx.html.FlowOrInteractiveOrPhrasingContent
1111import kotlinx.html.a
12+ import kotlinx.html.form
1213import kotlinx.html.h1
1314import kotlinx.html.i
1415import kotlinx.html.p
16+ import kotlinx.html.postButton
1517import kotlinx.html.span
1618import kotlinx.html.table
1719import kotlinx.html.tbody
@@ -48,7 +50,7 @@ class RepositoryOverview(private val repoManager: RepositoriesManager) {
4850 th { + " Repository" }
4951 th { + " Branch" }
5052 th {
51- colSpan = " 2 "
53+ colSpan = " 3 "
5254 + " Actions"
5355 }
5456 }
@@ -67,6 +69,7 @@ class RepositoryOverview(private val repoManager: RepositoriesManager) {
6769 td { }
6870 td { }
6971 td { }
72+ td { }
7073 }
7174 } else {
7275 for (branch in branches) {
@@ -86,6 +89,15 @@ class RepositoryOverview(private val repoManager: RepositoriesManager) {
8689 + " Explore Latest Version"
8790 }
8891 }
92+ td {
93+ form {
94+ postButton {
95+ name = " delete"
96+ formAction = " ../v2/repositories/${branch.repositoryId.id} /delete"
97+ + " Delete Repository"
98+ }
99+ }
100+ }
89101 }
90102 }
91103 }
You can’t perform that action at this time.
0 commit comments