feat: Renames quick calc routes / views to ductulator. Adds button to home page for using ductulator, needs added to navbar still.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import Elementary
|
||||
import ElementaryHTMX
|
||||
import ManualDCore
|
||||
|
||||
public struct SubmitButton: HTML, Sendable {
|
||||
let title: String
|
||||
@@ -74,3 +76,17 @@ public struct TrashButton: HTML, Sendable {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public struct DuctulatorButton: HTML, Sendable {
|
||||
public init() {}
|
||||
|
||||
public var body: some HTML<HTMLTag.a> {
|
||||
a(
|
||||
.class("btn"),
|
||||
.href(route: .ductulator(.index)),
|
||||
.target(.blank)
|
||||
) {
|
||||
"Ductulator"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user