From bf4638372794acd8ce1a2b0e4d78b7ccaf5071c8 Mon Sep 17 00:00:00 2001 From: Rackochad <33836535+Rackover@users.noreply.github.com> Date: Thu, 3 Jan 2019 13:34:56 +0100 Subject: [PATCH] Removed the legacy client from the website (#180) --- routes/views/client.js | 8 +------- scripts/getLatestClientRelease.js | 0 templates/views/index.pug | 3 +++ 3 files changed, 4 insertions(+), 7 deletions(-) mode change 100644 => 100755 routes/views/client.js mode change 100644 => 100755 scripts/getLatestClientRelease.js mode change 100644 => 100755 templates/views/index.pug diff --git a/routes/views/client.js b/routes/views/client.js old mode 100644 new mode 100755 index 8ff94981..113ecbab --- a/routes/views/client.js +++ b/routes/views/client.js @@ -2,11 +2,5 @@ exports = module.exports = function(req, res) { var locals = res.locals; - // locals.section is used to set the currently selected - // item in the header navigation. - locals.section = 'client'; - - // Render the view - res.render('client'); - + res.redirect(locals.downlords_faf_client_download_link); }; diff --git a/scripts/getLatestClientRelease.js b/scripts/getLatestClientRelease.js old mode 100644 new mode 100755 diff --git a/templates/views/index.pug b/templates/views/index.pug old mode 100644 new mode 100755 index c06efc72..2acad82a --- a/templates/views/index.pug +++ b/templates/views/index.pug @@ -9,6 +9,9 @@ block content h1 Forged Alliance Forever h3 The Community Driven Lobby for
Supreme Commander: Forged Alliance a(class="btn btn-default btn-lg btn-outro btn-danger", href='/client') Download Client + p + | Any issues? Try the + a(href=client_download_link, style="color:white;text-decoration:underline;") legacy client .the-project: .container .col-md-3 .col-md-6