disable tos redirect
This commit is contained in:
@@ -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 -%>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
3
app/views/users/_tos.html.erb
Normal file
3
app/views/users/_tos.html.erb
Normal 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>
|
||||
Reference in New Issue
Block a user