disable tos redirect

This commit is contained in:
albert
2013-02-24 11:43:24 -05:00
parent bb3508a536
commit 65a87941e6
8 changed files with 14 additions and 17 deletions

View File

@@ -43,6 +43,10 @@
<%= render "users/upgrade_notice" %>
<% end %>
<% if !CurrentUser.is_privileged? && CurrentUser.user.created_at > 2.weeks.ago %>
<%= render "users/tos" %>
<% end %>
<%- if flash[:notice] -%>
<div class="ui-corner-all ui-state-highlight" id="notice"><%= flash[:notice] %></div>
<%- else -%>

View File

@@ -52,11 +52,5 @@
<p>The Site will not disclose the IP address, email address, password, or DMails of any user except to the staff.</p>
<p>The Site is allowed to make public everything else, including but not limited to: uploaded posts, favorited posts, comments, forum posts, wiki edits, and note edits.</p>
</div>
<div>
<h4>Agreement</h4>
<p>By clicking on the "I Agree" link, you have read all the terms and have agreed to them.</p>
<p><%= link_to("I Agree", params[:url] || "/", :onclick => "Danbooru.Cookie.put('tos', '1')") %> | <%= link_to("Cancel", "/") %></p>
</div>
</div>

View File

@@ -0,0 +1,3 @@
<div class="ui-corner-all ui-state-highlight" id="tos-notice">
<h1><%= link_to "Read the rules before proceeding!", terms_of_service_path %></h1>
</div>