Remove unused terms of service banner.
No longer used, inadvertently hidden in a6233f297e.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -286,7 +286,3 @@
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
|
||||
#tos-notice {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
@@ -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>
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user