From ad26176828d1b19d35a7ad61db6120989b6e3417 Mon Sep 17 00:00:00 2001 From: Anna Buianova Date: Fri, 27 Mar 2020 20:22:40 +0300 Subject: [PATCH] Removed unused pages code (#6908) --- app/controllers/pages_controller.rb | 6 +--- app/views/pages/survey.html.erb | 49 ----------------------------- app/views/pages/workshops.html.erb | 29 ----------------- 3 files changed, 1 insertion(+), 83 deletions(-) delete mode 100644 app/views/pages/survey.html.erb delete mode 100644 app/views/pages/workshops.html.erb diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index 427ef803f..ca6c3b743 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -1,6 +1,6 @@ class PagesController < ApplicationController # No authorization required for entirely public controller - before_action :set_cache_control_headers, only: %i[show rlyweb now survey badge bounty faq robots] + before_action :set_cache_control_headers, only: %i[show rlyweb now badge bounty faq robots] def show @page = Page.find_by!(slug: params[:slug]) @@ -11,10 +11,6 @@ class PagesController < ApplicationController set_surrogate_key_header "now_page" end - def survey - set_surrogate_key_header "survey_page" - end - def about @page = Page.find_by(slug: "about") render :show if @page diff --git a/app/views/pages/survey.html.erb b/app/views/pages/survey.html.erb deleted file mode 100644 index 18e213388..000000000 --- a/app/views/pages/survey.html.erb +++ /dev/null @@ -1,49 +0,0 @@ -<% title "State of the Web Survey" %> - -<%= content_for :page_meta do %> - - - - - - - - - - - - - - - - -<% end %> - -
-
-
-

- State of the Web Survey -

-

Thank you for taking five minutes to fill out this DEV Community survey.

-

All responses are 100% private. ❤️ -

-

-
-
- -
powered by - Typeform -
-
-
diff --git a/app/views/pages/workshops.html.erb b/app/views/pages/workshops.html.erb deleted file mode 100644 index e98a272a4..000000000 --- a/app/views/pages/workshops.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -<% title "The DEV Sustaining Membership" %> - -
- - - -
-
-
-
- " style="height:200px;margin-top:30px;" alt="DEV membership logo"> -

- DEV
WORKSHOPS -

-

We are launching regular workshops that will cover beginner to advanced topics and everything in-between. These will be taught by topic experts from the community. Topics we plan on covering early include - web performance, Kubernetes, mechanical keyboards and much more.

- -

Workshops are available to dev.to - sustaining members with workshop passes. For those unable to become a sustaining member, we encourage you to apply for a - scholarship.

- -

February workshops will be announced soon.

-
-