layouts/custompage/release.html (120 lines of code) (raw):

<!-- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. See accompanying LICENSE file. --> {{partial "header.html" .}} <div class="ui container"> <h1>{{ i18n "download-kyuubi" }}</h1> <div class="ui segment"> <div class="ui tiny teal ribbon label">{{ i18n "instructions" }}</div> <p></p> <p>{{ i18n "chose-kyuubi-version-to-download" }}</p> <p>{{ i18n "please-verify-release" }} <a href="https://downloads.apache.org/kyuubi/KEYS">{{ i18n "project-release-keys" }}</a>.</p> <p></p> <p>{{ i18n "check-hashes-and-signatures" }} <a href="https://www.apache.org/dyn/closer.cgi#verify">{{ i18n "verify-instructions" }}</a> {{i18n "page"}}.</p> </div> <h2>{{ i18n "the-latest-release" }}</h2> <table class="ui selectable celled table"> {{ partial "release_table_head.html" .}} {{ $langVar := "" }} {{ if ne .Site.Language.Lang "en" }} {{ $langVar = .Site.Language.Lang }} {{ end }} {{range first 1 (where (where .Site.Pages "Section" "release") ".Params.linked" true) }} <tr> {{ $dir := print "kyuubi-" .File.BaseFileName "/" }} {{ $source := print "apache-kyuubi-" .File.BaseFileName "-source.tgz" }} {{ $bin := print "apache-kyuubi-" .File.BaseFileName "-bin.tgz" }} {{ $link_base := "" }} {{ if strings.Contains .File.BaseFileName "incubating" }} {{ $link_base = .Site.Params.downloadLinkIncubator }} {{ else }} {{ $link_base = .Site.Params.downloadLink }} {{ end }} <td class="center aligned">{{ .File.BaseFileName }}</td> {{ if eq $langVar "zh"}} <td class="center aligned">{{ dateFormat "2006年01月02日" .Date }}</td> {{ else }} <td class="center aligned">{{ dateFormat "2006 Jan 2 " .Date }}</td> {{ end }} <td class="center aligned"> <a href="{{ $link_base }}{{ $dir }}{{ $source }}">source</a> (<a href="{{ $link_base }}{{ $dir }}{{ $source }}.sha512">sha512</a>, <a href="{{ $link_base }}{{ $dir }}{{ $source }}.asc">signature</a>) </td> <td class="center aligned"> <a href="{{ $link_base }}{{ $dir }}{{ $bin }}">binary</a> (<a href="{{ $link_base }}{{ $dir }}{{ $bin }}.sha512">sha512</a>, <a href="{{ $link_base }}{{ $dir }}{{ $bin }}.asc">signature</a>) </td> <td class="center aligned"> <a href="{{ $langVar }}/release/{{.File.BaseFileName }}.html">{{ lower (i18n "release-notes") }}</a> </td> </tr> {{end}} </table> <h2>{{ i18n "all-archived-releases"}} </h2> <div class="ui segment"> <div class="ui tiny teal ribbon label">Note</div> <p></p> <p>{{ i18n "consider-use-the-latest-kyuubi" }}</p> </div> <table class="ui selectable celled table"> {{ partial "release_table_head.html" .}} {{ range (where (where .Site.Pages "Section" "release") ".Params.linked" true) }} <tr> {{ $dir := print "kyuubi-" .File.BaseFileName "/" }} {{ $source := print "apache-kyuubi-" .File.BaseFileName "-source.tgz" }} {{ $bin := print "apache-kyuubi-" .File.BaseFileName "-bin.tgz" }} {{ $link_base := "" }} {{ if strings.Contains .File.BaseFileName "incubating" }} {{ $link_base = .Site.Params.downloadLinkIncubator }} {{ else }} {{ $link_base = .Site.Params.downloadLink }} {{ end }} <td class="center aligned">{{.File.BaseFileName }}</td> {{ if eq $langVar "zh"}} <td class="center aligned">{{dateFormat "2006年01月02日" .Date}}</td> {{ else }} <td class="center aligned">{{dateFormat "2006 Jan 2 " .Date}}</td> {{ end }} <td class="center aligned"> <a href="{{ $link_base }}{{ $dir }}{{ $source }}">source</a> (<a href="{{ $link_base }}{{ $dir }}{{ $source }}.sha512">sha512</a>, <a href="{{ $link_base }}{{ $dir }}{{ $source }}.asc">signature</a>) </td> <td class="center aligned"> <a href="{{ $link_base }}{{ $dir }}{{ $bin }}">binary</a> (<a href="{{ $link_base }}{{ $dir }}{{ $bin }}.sha512">sha512</a>, <a href="{{ $link_base }}{{ $dir }}{{ $bin }}.asc">signature</a>) </td> <td class="center aligned"> <a href="{{ $langVar }}/release/{{.File.BaseFileName }}.html">{{ lower (i18n "release-notes") }}</a> </td> </tr> {{end}} </table> <h2>{{ i18n "all-kyuubi-shaded-releases"}} </h2> <table class="ui selectable celled table"> {{ partial "shaded_release_table_head.html" .}} {{ range (where (where .Site.Pages "Section" "shaded-release") ".Params.linked" true) }} <tr> {{ $dir := print "kyuubi-shaded-" .File.BaseFileName "/" }} {{ $source := print "apache-kyuubi-shaded" .File.BaseFileName "-source.tgz" }} {{ $link_base := .Site.Params.downloadLink }} <td class="center aligned">{{.File.BaseFileName }}</td> {{ if eq $langVar "zh"}} <td class="center aligned">{{dateFormat "2006年01月02日" .Date}}</td> {{ else }} <td class="center aligned">{{dateFormat "2006 Jan 2 " .Date}}</td> {{ end }} <td class="center aligned"> <a href="{{ $link_base }}{{ $dir }}{{ $source }}">source</a> (<a href="{{ $link_base }}{{ $dir }}{{ $source }}.sha512">sha512</a>, <a href="{{ $link_base }}{{ $dir }}{{ $source }}.asc">signature</a>) </td> <td class="center aligned"> <a href="{{ $langVar }}/shaded-release/{{.File.BaseFileName }}.html">{{ lower (i18n "release-notes") }}</a> </td> </tr> {{end}} </table> {{.Content}} </div> {{partial "footer.html" .}}