From 3e5f50de0802d42f76571489ec12ad6a780ac064 Mon Sep 17 00:00:00 2001 From: Amandeep Singh <35252877+adsingh14@users.noreply.github.com> Date: Mon, 20 Dec 2021 23:32:31 +0530 Subject: [PATCH] Remove windows-setup auto download functionality --- app/assets/javascripts/application.js | 11 ---- app/assets/stylesheets/downloads.scss | 23 ------- app/views/downloads/download_windows.html.erb | 61 +++++++++---------- 3 files changed, 28 insertions(+), 67 deletions(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 83efe38ae1..2b4ee1f646 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -238,17 +238,6 @@ var Downloads = { Downloads.observeGUIOSFilter(); Downloads.observePopState(); Downloads.filterGUIS(); - Downloads.triggerAutoDownload(); - }, - - triggerAutoDownload: function() { - var ref = document.referrer; - var src = $('#auto-download-link').attr('href'); - - if (this.shouldAutoDownload(ref, src)) { - $('.downloading .hide').show(); - document.location = src; - } }, shouldAutoDownload: function(ref, src) { diff --git a/app/assets/stylesheets/downloads.scss b/app/assets/stylesheets/downloads.scss index d2f3e134a2..11dd4e2236 100644 --- a/app/assets/stylesheets/downloads.scss +++ b/app/assets/stylesheets/downloads.scss @@ -38,29 +38,6 @@ } } -.callout.downloading { - background: $callout-color url("/images/icons/download.png") 24px 24px no-repeat; - padding: 20px 30px 20px 100px !important; - - h3 { - font-size: 18px; - color: $orange; - } - - p { - margin-bottom: 15px !important; - font-size: 15px; - line-height: 1.3em; - } - - p.small { - margin-bottom: 0 !important; - font-size: 12px; - line-height: 1.4; - color: $light-font-color; - } -} - #download-next-steps { @include clearfix; @extend .unstyled !optional; diff --git a/app/views/downloads/download_windows.html.erb b/app/views/downloads/download_windows.html.erb index 3d2232e45c..39b5d69f5f 100644 --- a/app/views/downloads/download_windows.html.erb +++ b/app/views/downloads/download_windows.html.erb @@ -7,39 +7,34 @@ <% end %>
-

Downloading Git

-
-

Your download is starting...

-

- <%= raw "You are downloading the latest (#{@download.version.name}) #{@bitness} version of Git for Windows. This is the most recent maintained build. It was released #{time_ago_in_words @download.release_date} ago, on #{@download.release_date.strftime("%Y-%m-%d")}." %> -

-

- <%= raw "Click here to download manually, if your download hasn't started." %> -

-

Other Git for Windows downloads

-

Executable Setup

-

- <%= raw "32-bit Git for Windows Setup." %> -

-

- <%= raw "64-bit Git for Windows Setup." %> -

-

Portable ("thumbdrive edition")

-

- <%= raw "32-bit Git for Windows Portable." %> -

-

- <%= raw "64-bit Git for Windows Portable." %> -

-

Using winget tool

-

- Install winget tool if you don't already have it, then type this command in command prompt or Powershell.
- winget install --id Git.Git -e --source winget -

-

- <%= raw "The current source code release is version #{@latest.name}. If you want the newer version, you can build it from the source code." %> -

-
+

Download for Windows

+

+ <%= raw "Click here to download " %><%= raw " the latest (#{@download.version.name}) #{@bitness} version of Git for Windows. This is the most recent maintained build. It was released #{time_ago_in_words @download.release_date} ago, on #{@download.release_date.strftime("%Y-%m-%d")}." %> +

+

Other Git for Windows downloads

+

Standalone Installer

+

+ <%= raw "32-bit Git for Windows Setup." %> +

+

+ <%= raw "64-bit Git for Windows Setup." %> +

+

Portable ("thumbdrive edition")

+

+ <%= raw "32-bit Git for Windows Portable." %> +

+

+ <%= raw "64-bit Git for Windows Portable." %> +

+

Using winget tool

+

+ Install winget tool if you don't already have it, then type this command in command prompt or Powershell.
+ winget install --id Git.Git -e --source winget +

+

+ <%= raw "The current source code release is version #{@latest.name}. If you want the newer version, you can build it from the source code." %> +

+

Now What?

Now that you have downloaded Git, it's time to start using it.