Browse Source

Merge pull request #826 from jmorganca/mxyng/template-system

show: no template system if empty
Michael Yang 1 năm trước cách đây
mục cha
commit
940e8ebec3
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      server/images.go

+ 3 - 0
server/images.go

@@ -951,7 +951,10 @@ func ShowModelfile(model *Model) (string, error) {
 
 FROM {{ .From }}
 TEMPLATE """{{ .Template }}"""
+
+{{- if .System }}
 SYSTEM """{{ .System }}"""
+{{- end }}
 {{ .Params }}
 `
 	for _, l := range mt.Model.AdapterPaths {