Skip to content

Commit e433885

Browse files
committed
fix naming
1 parent dba89aa commit e433885

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

assets/items.gohtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<input type='checkbox' id='chk-bbox'>
3838
</td>
3939
</tr>
40-
{{if .context.HasTemporal}}
40+
{{if .context.TimeAware}}
4141
<tr>
4242
<td class='param-title' title='Filter results to a single timestamp'>Datetime</td>
4343
<td>

internal/service/handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ func writeItemsHTML(w http.ResponseWriter, tbl *data.Table, name string, query s
304304
context.Title = tbl.Title
305305
context.IDColumn = tbl.IDColumn
306306
context.ShowFeatureLink = true
307-
context.HasTemporal = tbl.StartTimeColumn != ""
307+
context.TimeAware = tbl.StartTimeColumn != ""
308308

309309
// features are not needed for items page (page queries for them)
310310
return writeHTML(w, nil, context, ui.PageItems())
@@ -638,7 +638,7 @@ func writeFunItemsHTML(w http.ResponseWriter, name string, query string, urlBase
638638
context.Title = fn.ID
639639
context.Function = fn
640640
context.IDColumn = data.FunctionIDColumnName
641-
context.HasTemporal = fn.StartTimeColumn != ""
641+
context.TimeAware = fn.StartTimeColumn != ""
642642

643643
// features are not needed for items page (page queries for them)
644644
return writeHTML(w, nil, context, ui.PageFunctionItems())

internal/ui/ui.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type PageData struct {
4545
Function *data.Function
4646
FeatureID string
4747
ShowFeatureLink bool
48-
HasTemporal bool
48+
TimeAware bool
4949
}
5050

5151
var htmlTemp struct {

0 commit comments

Comments
 (0)