29 lines
1.2 KiB
Text
29 lines
1.2 KiB
Text
|
package templates
|
||
|
|
||
|
templ head(title string) {
|
||
|
<head>
|
||
|
<title>{ title }</title>
|
||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
||
|
</head>
|
||
|
}
|
||
|
|
||
|
templ header() {
|
||
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark p-2">
|
||
|
<a class="navbar-brand">Sonarqube Badges</a>
|
||
|
</nav>
|
||
|
}
|
||
|
|
||
|
templ Layout(component templ.Component, title string) {
|
||
|
<html lang="en">
|
||
|
@head(title)
|
||
|
<body hx-ext="response-targets">
|
||
|
@header()
|
||
|
<div class="container-fluid m-4">
|
||
|
@component
|
||
|
</div>
|
||
|
</body>
|
||
|
<script src="https://unpkg.com/htmx.org@2.0.4"></script>
|
||
|
<script src="https://unpkg.com/htmx-ext-response-targets@2.0.3" integrity="sha384-T41oglUPvXLGBVyRdZsVRxNWnOOqCynaPubjUVjxhsjFTKrFJGEMm3/0KGmNQ+Pg" crossorigin="anonymous"></script>
|
||
|
</html>
|
||
|
}
|