Remove unused terms of service banner.

No longer used, inadvertently hidden in a6233f297e.
This commit is contained in:
evazion
2019-08-14 01:46:44 -05:00
parent 8d07ad7390
commit 90fa67d4c1
7 changed files with 1 additions and 25 deletions

View File

@@ -1,12 +1,6 @@
class StaticController < ApplicationController
def terms_of_service
end
def accept_terms_of_service
cookies.permanent[:accepted_tos] = "1"
url = params[:url] if params[:url] && params[:url].start_with?("/")
redirect_to(url || posts_path)
end
def not_found
render plain: "not found", status: :not_found

View File

@@ -20,7 +20,7 @@ div#page {
margin: 0 20px;
padding: 0 10px;
div#upgrade-account-notice, div#sign-up-notice, div#tos-notice, div#ban-notice, div#dmail-notice, div#mod-notice {
div#upgrade-account-notice, div#sign-up-notice, div#ban-notice, div#dmail-notice, div#mod-notice {
margin: 1em 0;
padding: 1em;
text-align: center;

View File

@@ -286,7 +286,3 @@
overflow: visible;
}
}
#tos-notice {
display: none;
}

View File

@@ -135,10 +135,6 @@
<%= render "moderator/post/queues/notice" %>
<% end %>
<% if cookies["accepted_tos"].blank? && !CurrentUser.is_gold? %>
<%= render "users/tos" %>
<% end %>
<div class="ui-corner-all ui-state-highlight" id="notice" style="<%= "display: none;" unless flash[:notice] %>">
<span><%= format_text(flash[:notice], inline: true) %>.</span>
<a href="#" id="close-notice-link">close</a>

View File

@@ -66,11 +66,6 @@
<p>You may have alternative accounts for bots or scripts, but if there's any suspicion you either create a new account or reuse an existing one to evade a ban or any sort of account limitation (limited uploads, loss of flagging or user feedback permissions), then all your accounts will be banned. Bot accounts that flag posts or leave user feedback are not permitted and will be banned.</p>
<p>Account sharing is not permitted. If you are suspected of sharing an account, then it will be banned.</p>
</div>
<%= form_tag(accept_terms_of_service_path) do %>
<%= hidden_field_tag :url, params[:url] %>
<%= submit_tag "I have read and agree to these rules" %>
<% end %>
</div>
<% content_for(:page_title) do %>

View File

@@ -1,3 +0,0 @@
<div class="ui-corner-all ui-state-highlight" id="tos-notice">
<h1><%= link_to "Read the rules before proceeding!", terms_of_service_path(:url => request.fullpath), :rel => "nofollow" %></h1>
</div>

View File

@@ -423,8 +423,6 @@ Rails.application.routes.draw do
get "/static/bookmarklet" => "static#bookmarklet", :as => "bookmarklet"
get "/static/site_map" => "static#site_map", :as => "site_map"
get "/static/terms_of_service" => "static#terms_of_service", :as => "terms_of_service"
post "/static/accept_terms_of_service" => "static#accept_terms_of_service", :as => "accept_terms_of_service"
get "/static/mrtg" => "static#mrtg", :as => "mrtg"
get "/static/contact" => "static#contact", :as => "contact"
get "/meta_searches/tags" => "meta_searches#tags", :as => "meta_searches_tags"