Skip to content

Commit

Permalink
fix: extras sections showing when not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywhitaker3 committed May 21, 2024
1 parent 04305a0 commit dee31f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/resources/views/service.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ <h1 class="text-xl font-bold md:inline-block md:mr-2 text-avocado-800" >{{ .Resu

<div class="h-64 md:h-96 w-full border rounded-md shadow-md mb-6">{{ .Graph }}</div>

{{- if .Extras }}
<div class="w-full border rounded-md shadow-md pt-4 mb-6">
{{- range $name, $graph := .Extras }}
<h2 class="text-center text-avocado-800">{{ $name }}</h2>
<div class="h-64 md:h-96 w-full">{{ $graph }}</div>
{{- end }}
</div>
{{- end }}
</div>
{{- end }}
{{- end }}
Expand Down

0 comments on commit dee31f3

Please sign in to comment.