From 1c0202654a1e1e5a3e26964b962ee1864ef0b9be Mon Sep 17 00:00:00 2001 From: Richard Mahn Date: Wed, 16 Dec 2020 14:25:16 -0500 Subject: [PATCH] Fixes manifest.yaml error header --- templates/repo/home.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 4e7de672aa..0408f75ab2 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -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}} @@ -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")}} {{$.i18n.Tr "repo.metadata.valid"}} {{end}} {{else}}