Skip to content

Commit

Permalink
fix: rename FlowContent.diagramIndexList to FlowContent.diagramIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
galuszkak committed Nov 9, 2024
1 parent 569f689 commit 2a58dad
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package nl.avisi.structurizr.site.generatr.site.views
import kotlinx.html.*
import nl.avisi.structurizr.site.generatr.site.model.DiagramIndexViewModel

fun FlowContent.diagramIndexList(viewModel: DiagramIndexViewModel) {
fun FlowContent.diagramIndex(viewModel: DiagramIndexViewModel) {
if(viewModel.showList) {
h5 {
+"Jump to: "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fun HTML.softwareSystemContainerComponentCodePage(viewModel: SoftwareSystemConta
}
}
}
diagramIndexList(viewModel.diagramIndex)
diagramIndex(viewModel.diagramIndex)
viewModel.images.forEach { image(it) }
}
} else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fun HTML.softwareSystemContainerComponentsPage(viewModel: SoftwareSystemContaine
}
}
}
diagramIndexList(viewModel.diagramIndex)
diagramIndex(viewModel.diagramIndex)
viewModel.diagrams.forEach { diagram(it) }
viewModel.images.forEach { image(it) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import nl.avisi.structurizr.site.generatr.site.model.SoftwareSystemContainerPage
fun HTML.softwareSystemContainerPage(viewModel: SoftwareSystemContainerPageViewModel) {
if (viewModel.visible)
softwareSystemPage(viewModel) {
diagramIndexList(viewModel.diagramIndex)
diagramIndex(viewModel.diagramIndex)
viewModel.diagrams.forEach { diagram(it) }
viewModel.images.forEach { image(it) }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import nl.avisi.structurizr.site.generatr.site.model.SoftwareSystemContextPageVi
fun HTML.softwareSystemContextPage(viewModel: SoftwareSystemContextPageViewModel) {
if (viewModel.visible)
softwareSystemPage(viewModel) {
diagramIndexList(viewModel.diagramIndex)
diagramIndex(viewModel.diagramIndex)
viewModel.diagrams.forEach { diagram(it) }
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import nl.avisi.structurizr.site.generatr.site.model.SoftwareSystemDeploymentPag
fun HTML.softwareSystemDeploymentPage(viewModel: SoftwareSystemDeploymentPageViewModel) {
if (viewModel.visible)
softwareSystemPage(viewModel) {
diagramIndexList(viewModel.diagramIndex)
diagramIndex(viewModel.diagramIndex)
viewModel.diagrams.forEach {
diagram(it)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import nl.avisi.structurizr.site.generatr.site.model.SoftwareSystemDynamicPageVi
fun HTML.softwareSystemDynamicPage(viewModel: SoftwareSystemDynamicPageViewModel) {
if (viewModel.visible)
softwareSystemPage(viewModel) {
diagramIndexList(viewModel.diagramIndex)
diagramIndex(viewModel.diagramIndex)
viewModel.diagrams.forEach {
diagram(it)
}
Expand Down

0 comments on commit 2a58dad

Please sign in to comment.