diff options
Diffstat (limited to 'internal/components/combined.templ')
-rw-r--r-- | internal/components/combined.templ | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/components/combined.templ b/internal/components/combined.templ index eeacdb5..3beddcd 100644 --- a/internal/components/combined.templ +++ b/internal/components/combined.templ @@ -1,6 +1,7 @@ package components import ( + "go.alanpearce.eu/searchix/internal/config" "go.alanpearce.eu/searchix/internal/index" "go.alanpearce.eu/searchix/internal/nix" ) @@ -11,6 +12,9 @@ templ Combined(result *index.Result) { <tr> <th scope="col">Attribute</th> <th scope="col">Description</th> + if config.DevMode { + <th scope="col">Score</th> + } </tr> </thead> <tbody> @@ -31,6 +35,11 @@ templ Combined(result *index.Result) { } } </td> + if config.DevMode { + <td> + @score(hit) + </td> + } </tr> } </tbody> |