Skip to content

Commit

Permalink
Fixes manifest.yaml error header
Browse files Browse the repository at this point in the history
  • Loading branch information
richmahn committed Dec 16, 2020
1 parent a3ff900 commit 1c02026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/repo/home.tmpl
Expand Up @@ -78,7 +78,7 @@
{{$message := $.i18n.Tr "repo.metadata.valid"}}
{{if StringHasSuffix $.Entry.Name ".yaml"}}
{{$errors = ValidateYAMLFile $.Entry}}
{{if and (eq $errors "") (eq $.TreePath "") (eq $.Entry.Name "manifest.yaml")}}
{{if and (eq $errors "") (eq $.TreePath "manifest.yaml")}}
{{$errors = ValidateManifestFile $.Entry}}
{{$message = $.i18n.Tr "repo.metadata.valid_manifest_tooltip"}}
{{end}}
Expand All @@ -87,7 +87,7 @@
{{$errors = ValidateJSONFile $.Entry}}
{{end}}
{{if eq $errors ""}}
{{if and (eq $errors "") (eq $.TreePath "") (eq $.Entry.Name "manifest.yaml")}}
{{if and (eq $errors "") (eq $.TreePath "manifest.yaml")}}
<span class="ui label green" title="{{$message}}" style="margin-left: 5px">{{$.i18n.Tr "repo.metadata.valid"}}</span>
{{end}}
{{else}}
Expand Down

0 comments on commit 1c02026

Please sign in to comment.