style: drop code comments and separate template headers
This commit is contained in:
1 parent
adff599e08
commit
2a773e740f
16 files changed
+14
-3
No files matched your search
@@ -373,7 +373,6 @@ func TestIntegrationZoneCreationDelegationRace(t *testing.T) {
|
||||
if _, err := newUserStore(gate, tables).UserByIDForUpdate(ctx, firstActor.ID); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
// Both handlers acquire the zone lock before checking the actor's row.
|
||||
a := make(chan *httptest.ResponseRecorder, 1)
|
||||
b := make(chan *httptest.ResponseRecorder, 1)
|
||||
go func() { a <- it.do(ctx, first) }()
|
||||
|
||||
@@ -198,8 +198,6 @@ func validateZoneChanges(zone string, current []recordRow, changes zoneChanges)
|
||||
problems, warnings = zoneRuleProblems(zone, result, after, true)
|
||||
soaRepair := len(after.soa) != 0 && soaDefects(after.soa) < soaDefects(before.soa)
|
||||
soaOnlyRepair := soaRepair && slices.Equal(nonSOARows(current), nonSOARows(result))
|
||||
// An existing CNAME can block an SOA repair at the apex. Permit an
|
||||
// independent repair without permitting normal writes on the broken zone.
|
||||
cnameRepair := soaDefects(after.soa) != 0 && changes.deletesOnly()
|
||||
if len(problems) != 0 && (soaOnlyRepair || cnameRepair) {
|
||||
beforeProblems, _ := zoneRuleProblems(zone, current, before, true)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
|
||||
{{define "layout"}}<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
|
||||
{{define "title"}}Account{{end}}
|
||||
{{define "content"}}<div class="page-head">
|
||||
<h1>Account</h1>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
|
||||
{{define "title"}}Audit{{end}}
|
||||
{{define "content"}}<div class="page-head">
|
||||
<h1>Audit</h1>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
|
||||
{{define "title"}}Forbidden{{end}}
|
||||
{{define "content"}}<section class="card narrow">
|
||||
<h1>Forbidden</h1>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
|
||||
{{define "title"}}Import {{.Zone}}{{end}}
|
||||
{{define "content"}}<p class="crumbs"><a href="/">Zones</a> / <a id="zone-link" href="/">{{.Zone}}</a></p>
|
||||
<div class="page-head">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
|
||||
{{define "title"}}Sign in{{end}}
|
||||
{{define "content"}}<section class="card narrow">
|
||||
<h1>Sign in</h1>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
|
||||
{{define "title"}}Not found{{end}}
|
||||
{{define "content"}}<section class="card narrow">
|
||||
<h1>Not found</h1>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
|
||||
{{define "title"}}User {{.TargetUser}}{{end}}
|
||||
{{define "content"}}<p class="crumbs"><a href="/users">Users</a></p>
|
||||
<div class="page-head">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
|
||||
{{define "title"}}Users{{end}}
|
||||
{{define "content"}}<div class="page-head">
|
||||
<h1>Users</h1>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
|
||||
{{define "title"}}{{.Zone}}{{end}}
|
||||
{{define "content"}}<p class="crumbs"><a href="/">Zones</a></p>
|
||||
<div class="page-head">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
|
||||
{{define "title"}}Zones{{end}}
|
||||
{{define "content"}}<div class="page-head">
|
||||
<h1>Zones</h1>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
|
||||
{{define "record_dialog"}}<dialog id="record-dialog" class="dialog" aria-labelledby="record-dialog-title">
|
||||
<form id="record-form" class="form" novalidate>
|
||||
<div class="dialog-head">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
|
||||
{{define "soa_dialog"}}<dialog id="soa-dialog" class="dialog" aria-labelledby="soa-dialog-title">
|
||||
<form id="soa-form" class="form" novalidate>
|
||||
<div class="dialog-head">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
|
||||
{{define "zone_create_dialog"}}<dialog id="zone-dialog" class="dialog" aria-labelledby="zone-dialog-title">
|
||||
<form id="zone-form" class="form" novalidate>
|
||||
<div class="dialog-head">
|
||||
|
||||
Reference in new issue
Block a user