Skip to content

Commit

Permalink
fix: Fixing update of version form with frequency
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed May 5, 2021
1 parent 4e614e8 commit 2927334
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/ketchup/templates/ketchup.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h2 class="header">Edit ketchup</h2>
</p>

<p class="no-margin center padding">{{ .Repository.Name }}</p>
{{ if eq .Repository.Kind.String "helm"}}
{{ if eq .Repository.Kind.String "helm" }}
<p class="no-margin center padding">{{ .Repository.Part }}</p>
{{ end }}

Expand Down Expand Up @@ -134,7 +134,7 @@ <h2 class="header">Confirmation</h2>
<input type="hidden" name="method" value="DELETE">

<p class="padding no-margin center">
Are you sure you want to delete <strong>{{ .Repository.Name }}{{ if eq .Repository.Kind.String "helm"}} | {{ .Repository.Part }}{{ end }}</strong>?
Are you sure you want to delete <strong>{{ .Repository.Name }}{{ if eq .Repository.Kind.String "helm" }} | {{ .Repository.Part }}{{ end }}</strong>?
</p>

{{ template "form_buttons" "Delete" }}
Expand Down Expand Up @@ -274,7 +274,7 @@ <h2 class="separator full">{{ $ketchupType }}</h2>


<div class="ketchup center {{ if ne .Version (index .Repository.Versions .Pattern) }}ketchup--outdated{{ end }}">
<h2 class="header small ellipsis">{{ .Repository.Name }}</h2>
<h2 class="header small ellipsis">{{ if eq .Repository.Kind.String "helm" }}{{ .Repository.Part }} | {{ end }}{{ .Repository.Name }}</h2>

<div class="ketchup__version">
{{ if .Semver }}
Expand Down Expand Up @@ -305,6 +305,7 @@ <h2 class="header small ellipsis">{{ .Repository.Name }}</h2>

<form method="POST" action="/app/ketchups/{{ .Repository.ID }}" class="inline">
<input type="hidden" name="method" value="PUT">
<input type="hidden" name="frequency" value="{{ .Frequency.String }}">
<input type="hidden" name="pattern" value="{{ .Pattern }}">
<input type="hidden" name="version" value="{{ index .Repository.Versions .Pattern }}">

Expand Down

0 comments on commit 2927334

Please sign in to comment.