some more sonarqube fixes

This commit is contained in:
BroodjeAap 2023-04-09 11:24:45 +00:00
parent a2d2e8d5e0
commit e03d9466b3
6 changed files with 14 additions and 20 deletions

View file

@ -897,8 +897,7 @@ func getFilterResultMin(filter *Filter) {
} }
} else { } else {
if len(result) > 50 { if len(result) > 50 {
filter.Log("Could not convert value, '", result, "', to number") filter.Log("Could not convert value, with length ", len(result), ", to number")
//filter.Log("Could not convert value, with length ", len(result), ", to number")
} else { } else {
filter.Log("Could not convert value, '", result, "', to number") filter.Log("Could not convert value, '", result, "', to number")
} }

View file

@ -9,15 +9,13 @@ GoWatch Backups
{{define "content"}} {{define "content"}}
<div class="container row"> <div class="container row">
<div class="row h3 justify-content-center">
Backups
</div>
{{ if .Error }} {{ if .Error }}
<div class="row h3 justify-content-center text-danger"> <div class="row h3 justify-content-center text-danger">
{{ .Error }} {{ .Error }}
</div> </div>
{{ end }} {{ end }}
<table class="table table-striped table-hover"> <table class="table table-striped table-hover caption-top">
<caption class="h3 text-center">Backups</caption>
<thead> <thead>
<tr class="table-dark"> <tr class="table-dark">
<th>File</th> <th>File</th>

View file

@ -5,17 +5,12 @@ GoWatch
{{define "content"}} {{define "content"}}
{{ if .warnings }} {{ if .warnings }}
<div class="h3 text-center text-danger" id="logHeader">Startup Warnings</div> <div class="h3 text-center text-danger" id="logHeader">Startup Warnings</div>
<table class="table table-striped table-hover"> {{ range .warnings }}
<tbody> <div class="h5 text-center text-danger">{{ . }}</div>
{{ range .warnings }} {{ end }}
<tr>
<td class="h5 text-center text-danger">{{ . }}</td>
</tr>
{{ end }}
</tbody>
</table>
{{ end }} {{ end }}
<table class="table table-striped table-hover"> <table class="table table-striped table-hover caption-top">
<caption class="h3 text-center">Watches</caption>
<thead class="table-dark"> <thead class="table-dark">
<tr> <tr>
<th>Name</th> <th>Name</th>

View file

@ -3,7 +3,8 @@ GoWatch
{{end}} {{end}}
{{define "content"}} {{define "content"}}
<table class="table table-striped table-hover"> <table class="table table-striped table-hover caption-top">
<caption class="h3 text-center">Notifiers</caption>
<thead class="table-dark"> <thead class="table-dark">
<tr> <tr>
<th>Name</th> <th>Name</th>

View file

@ -1,10 +1,11 @@
{{define "title"}} {{define "title"}}
GoWatch GoWatch Schedules
{{end}} {{end}}
{{define "content"}} {{define "content"}}
<form action="{{.urlPrefix}}schedules/update" method="POST"> <form action="{{.urlPrefix}}schedules/update" method="POST">
<table class="table table-striped table-hover"> <table class="table table-striped table-hover">
<caption class="h3 text-center">Schedules</caption>
<thead class="table-dark"> <thead class="table-dark">
<tr> <tr>
<th>Watch</th> <th>Watch</th>

View file

@ -16,7 +16,7 @@ GoWatch Edit {{ .Watch.Name }}
{{end}} {{end}}
{{ define "left" }} {{ define "left" }}
<table> <table role="presentation">
<tr> <tr>
<td> <td>
<button type="button" id="filterButton" class="btn btn-primary btn-sm" data-bs-toggle="modal" data-bs-target="#FilterModal"> <button type="button" id="filterButton" class="btn btn-primary btn-sm" data-bs-toggle="modal" data-bs-target="#FilterModal">
@ -115,7 +115,7 @@ GoWatch Edit {{ .Watch.Name }}
<button class="btn btn-primary mt-4" data-bs-dismiss="modal" id="submitFilterButton">Add Filter</button> <button class="btn btn-primary mt-4" data-bs-dismiss="modal" id="submitFilterButton">Add Filter</button>
</div> </div>
<div class="h3 text-center text-danger" id="logHeader">Logs</div> <div class="h3 text-center text-danger" id="logHeader">Logs</div>
<table class="table table-hover table-sm" id="logTable"> <table class="table table-hover table-sm" role="presentation" id="logTable">
<tbody id="logTableBody"> <tbody id="logTableBody">
</tbody> </tbody>