Fix HTML for release-data shortcode
parent
6e7e9ea357
commit
270bc93258
|
@ -5,20 +5,19 @@
|
|||
|
||||
<div class="release-details">
|
||||
{{ if not $data.previousPatches }}
|
||||
<!-- initial minor release -->
|
||||
<div>
|
||||
<b class="release-inline-heading">{{ T "latest_release" }}</b><span class="release-version release-inline-value">{{ printf "%s.0" $dataVersion }}</span>
|
||||
<b class="release-inline-heading">{{ T "latest_release" }}</b><span class="release-inline-value">{{ printf "%s.0" $dataVersion }}{{ if isset $data "releaseDate" }} {{ T "release_date_before" }}{{ printf "%s" $data.releaseDate }}{{ T "release_date_after" }}{{- end -}}</span>
|
||||
</div>
|
||||
<div>
|
||||
<b class="release-inline-heading">{{ T "end_of_life" }}</b><span class="release-eoldate release-inline-value">{{ printf "%s" $data.endOfLifeDate }}</span>
|
||||
<b class="release-inline-heading">{{ T "end_of_life" }}</b><span class="release-eoldate release-inline-value">{{ printf "%s" $data.endOfLifeDate }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<b class="release-inline-heading">{{ T "previous_patches" }}</b> <span class="notapplicable release-inline-value">{{ T "not_applicable" }}</span>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if $data.previousPatches }}
|
||||
{{- else -}}
|
||||
<div>
|
||||
<b class="release-inline-heading">{{ T "latest_release" }}</b><span class="release-inline-value">{{ index $data.previousPatches 0 "release" }} {{ T "release_date_before" }}{{ index $data.previousPatches 0 "targetDate" }}{{ T "release_date_after" }}</span>
|
||||
<b class="release-inline-heading">{{ T "latest_release" }}</b><span class="release-inline-value">{{ index $data.previousPatches 0 "release" }} {{ T "release_date_before" }}{{ printf "%s" ( index $data.previousPatches 0 "targetDate" ) }}{{ T "release_date_after" }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<b class="release-inline-heading">{{ T "end_of_life" }}</b><span class="release-eoldate release-inline-value">{{ printf "%s" $data.endOfLifeDate }}</span>
|
||||
|
@ -30,10 +29,10 @@
|
|||
{{ if $key }}{{ T "inline_list_separator" }}{{ end }}
|
||||
<a href="https://git.k8s.io/kubernetes/CHANGELOG/CHANGELOG-{{ $dataVersion }}.md#v{{ replace .release `.` `` }}">{{ printf "%s" .release }}</a>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{{- end -}}
|
||||
<!-- not yet localized, mark as English -->
|
||||
<p lang="en">
|
||||
Complete {{ $dataVersion }} <a href="/releases/patch-releases/#{{ replace $dataVersion `.` `-` }}">Schedule</a>
|
||||
|
|
Loading…
Reference in New Issue