Skip to content

Commit 0553121

Browse files
committed
fix(template): we do not always have .Name
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 103caf9 commit 0553121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/http/views/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h3 class="text-xl font-semibold text-gray-100 mb-4">Models installed without a
5454
{{ range .Models }}
5555
<div class="bg-gray-800/80 border border-gray-700 rounded-lg p-4 flex items-center">
5656
<i class="fas fa-brain text-lg text-gray-400 mr-3"></i>
57-
<p class="font-medium text-gray-200">{{.Name}}</p>
57+
<p class="font-medium text-gray-200">{{if .Name}}{{.Name}}{{else}}{{.}}{{end}}</p>
5858
</div>
5959
{{end}}
6060
</div>

0 commit comments

Comments
 (0)