Commit ae06ae28 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

Download: Make Beta conditional

parent 3f1625d5
Pipeline #7221 passed with stage
in 1 minute and 54 seconds
......@@ -15,11 +15,9 @@ You can either install Gajim on your system or use the portable version. Gajim P
### Beta and Nightly
Gajim 1.3 Beta 2 is now available for testing.
{{< download_btn_windows beta="True" label="Download Beta">}}
If you are curious, you can also try the [latest nightly](https://gajim.org/downloads/snap/win/) of Gajim. But be advised, nightlies can be unstable. Make sure to have a backup of your profile folder. Migrating back is not possible without complications.
If you are curious, you can also try the [latest nightly](https://gajim.org/downloads/snap/win/) of Gajim. But be advised, nightlies can be unstable. Make sure to have a backup of your profile folder. Note that migrating back is not possible without complications.
{{< os_header os="macos">}}
......@@ -29,8 +27,6 @@ Gajim works on MacOS, but there is no package yet. To install Gajim on MacOS, fo
Gajim is available on [many distributions](https://repology.org/project/gajim/versions). Have a look at the [install instructions](#install-instructions).
Gajim 1.3 Beta 2 is now available for testing. [Download the source package](https://gajim.org/downloads/1.3/gajim-1.3.0-beta2.tar.gz).
### Flatpak
Gajim is also available on [flathub.org](https://flathub.org/apps/details/org.gajim.Gajim) and ready for [manual flatpak install](https://dev.gajim.org/gajim/gajim/tree/master/flatpak) as well.
......@@ -107,7 +103,11 @@ sudo emerge gajim
#### Source packages
If there is no package for your distribution, you should be able to install Gajim using the [source package (.tar.gz)](https://gajim.org/downloads/1.2/). This package is also available for Gajim’s [nightlies](https://gajim.org/downloads/snap/?M=D).
If there is no package for your distribution, you should be able to install Gajim using the source package.
{{< download_btn_src version="stable" label="Gajim Stable" >}}
{{< download_btn_src version="beta" label="Gajim Beta" >}}
{{< download_btn_src version="nightly" label="Gajim Nightly" >}}
#### Nightly package from git (Debian, Ubuntu)
......
{
"StableVersion": "1.2.2",
"BetaVersion": "1.3.0 Beta2",
"Beta_Enabled": "True",
"WinSetup64": "https://gajim.org/downloads/1.2/Gajim-1.2.2-64bit-1.exe",
"WinSetup32": "https://gajim.org/downloads/1.2/Gajim-1.2.2-32bit-1.exe",
"WinSetup64Portable": "https://gajim.org/downloads/1.2/Gajim-Portable-1.2.2-64bit-1.exe",
"WinSetup32Portable": "https://gajim.org/downloads/1.2/Gajim-Portable-1.2.2-32bit-1.exe",
"SourcePackage": "https://gajim.org/downloads/1.2/gajim-1.2.2.tar.gz",
"SourcePackage_Beta": "https://gajim.org/downloads/1.3/gajim-1.3.0-beta2.tar.gz",
"SourcePackage_Nightly": "https://gajim.org/downloads/snap/?M=D",
"WinSetup64_Beta": "https://gajim.org/downloads/1.3/Gajim-1.3.0-beta2-64bit-1.exe",
"WinSetup32_Beta": "https://gajim.org/downloads/1.3/Gajim-1.3.0-beta2-32bit-1.exe",
"WinSetup64Portable_Beta": "https://gajim.org/downloads/1.3/Gajim-Portable-1.3.0-beta2-64bit-1.exe",
"WinSetup32Portable_Beta": "https://gajim.org/downloads/1.3/Gajim-Portable-1.3.0-beta2-32bit-1.exe",
"SourcePackage_Beta": "https://gajim.org/downloads/1.3/gajim-1.3.0-beta2.tar.gz"
"WinSetup32Portable_Beta": "https://gajim.org/downloads/1.3/Gajim-Portable-1.3.0-beta2-32bit-1.exe"
}
{{ $version := .Get "version" }}
{{ if eq $version "stable" }}
<a class="btn btn-light" href="{{ .Site.Data.Gajim.SourcePackage }}" role="button"><i class="fa fa-box-open"></i> {{ .Get "label" }}</a>
{{ end }}
{{ if eq (.Site.Data.Gajim.Beta_Enabled) "True" }}
{{ if eq $version "beta" }}
<a class="btn btn-light" href="{{ .Site.Data.Gajim.SourcePackage_Beta }}" role="button"><i class="fa fa-box-open"></i> {{ .Get "label" }}</a>
{{ end }}
{{ end }}
{{ if eq $version "nightly" }}
<a class="btn btn-light" href="{{ .Site.Data.Gajim.SourcePackage_Nightly }}" role="button"><i class="fa fa-box-open"></i> {{ .Get "label" }}</a>
{{ end }}
{{ if eq (.Get "beta") "True" }}
<div class="dropdown show">
<a class="btn btn-success-light dropdown-toggle" href="#" role="button" id="win_beta_download" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-download"></i>&nbsp;&nbsp;&nbsp;{{ .Get "label" }}</a>
<div class="dropdown-menu" aria-labelledby="win_beta_download">
<a class="dropdown-item" href="{{.Site.Data.Gajim.WinSetup64_Beta}}">Gajim (64 Bit)</a>
<a class="dropdown-item" href="{{.Site.Data.Gajim.WinSetup32_Beta}}">Gajim (32 Bit)</a>
<a class="dropdown-item" href="{{.Site.Data.Gajim.WinSetup64Portable_Beta}}">Gajim Portable (64 Bit)</a>
<a class="dropdown-item" href="{{.Site.Data.Gajim.WinSetup32Portable_Beta}}">Gajim Portable (32 Bit)</a>
{{ if eq (.Site.Data.Gajim.Beta_Enabled) "True" }}
{{ if eq (.Get "beta") "True" }}
<div class="dropdown show">
<a class="btn btn-success-light dropdown-toggle" href="#" role="button" id="win_beta_download" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-download"></i>&nbsp;&nbsp;&nbsp;{{ .Get "label" }}</a>
<div class="dropdown-menu" aria-labelledby="win_beta_download">
<a class="dropdown-item" href="{{.Site.Data.Gajim.WinSetup64_Beta}}">Gajim (64 Bit)</a>
<a class="dropdown-item" href="{{.Site.Data.Gajim.WinSetup32_Beta}}">Gajim (32 Bit)</a>
<a class="dropdown-item" href="{{.Site.Data.Gajim.WinSetup64Portable_Beta}}">Gajim Portable (64 Bit)</a>
<a class="dropdown-item" href="{{.Site.Data.Gajim.WinSetup32Portable_Beta}}">Gajim Portable (32 Bit)</a>
</div>
</div>
</div>
{{ else }}
{{ end }}
{{ end }}
{{ if eq (.Get "beta") "" }}
<div class="dropdown show">
<a class="btn btn-success dropdown-toggle" href="#" role="button" id="win_download" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-download"></i>&nbsp;&nbsp;&nbsp;{{ .Get "label" }}</a>
<div class="dropdown-menu" aria-labelledby="win_download">
......
......@@ -3,8 +3,10 @@
<td>{{ .Get "release_label" }}</td>
<td><span class="label label-primary">{{ .Site.Data.Gajim.StableVersion }}</span></td>
</tr>
{{ if eq (.Site.Data.Gajim.Beta_Enabled) "True" }}
<tr>
<td>{{ .Get "beta_label" }}</td>
<td><span class="label label-warning">{{ .Site.Data.Gajim.BetaVersion }}</span></td>
</tr>
</table>
\ No newline at end of file
{{ end }}
</table>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment