UI: Hide stable builds #5
@ -153,18 +153,12 @@ class BuildsRenderer {
|
||||
$analytics_event_os = $browser_platform;
|
||||
$analytics_classes = 'plausible-event-name=' . $analytics_event_name . ' plausible-event-os=' . $analytics_event_os . ' plausible-event-build=' . $analytics_event_build . '';
|
||||
|
||||
$needs_hidden = in_array($file_extension, array("sha256"));
|
||||
|
||||
$env_id = getEnvId();
|
||||
if (in_array($env_id, array("UATEST", "PROD"))) {
|
||||
if (BuildReleaseCycle::STABLE != $build->release_cycle) {
|
||||
$needs_hidden = in_array($file_extension, array("msi", "msix", "sha256"));
|
||||
}
|
||||
}
|
||||
/* Hide certain items from the UI. */
|
||||
$is_release_stable = BuildReleaseCycle::STABLE == $build->release_cycle;
|
||||
$needs_hidden = (in_array($file_extension, array("msi", "msix", "sha256")) or ($is_release_stable));
|
||||
|
||||
$display_style = "";
|
||||
if ($needs_hidden)
|
||||
{
|
||||
if ($needs_hidden) {
|
||||
$display_style = 'style="display:none;"';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user