diff --git a/app/assets/javascripts/common.js b/app/assets/javascripts/common.js index cc5e65649..3b808e410 100644 --- a/app/assets/javascripts/common.js +++ b/app/assets/javascripts/common.js @@ -41,6 +41,17 @@ $(document).ready(function() { $("#resize-links").toggle(); e.preventDefault(); }); + + // TOS link + if (!location.href.match(/terms_of_service/) && Danbooru.Cookie.get("tos") !== "1") { + // Setting location.pathname in Safari doesn't work, so manually extract the domain. + var domain = location.href.match(/^(http:\/\/[^\/]+)/)[0]; + location.href = domain + "/terms_of_service?url=" + location.href; + } + + $("#tos-agree-link").click(function() { + Danbooru.Cookie.put("tos", "1"); + }) }); var Danbooru = {}; diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss index 8af25e857..c916e85a7 100644 --- a/app/assets/stylesheets/application.css.scss +++ b/app/assets/stylesheets/application.css.scss @@ -1168,6 +1168,32 @@ div#news-ticker { } +div#terms-of-service { + width: 40em; + margin: 5em auto; + + h1 { + font-size: $h2_size; + } + + p { + margin-bottom: 1em; + } + + ul { + margin-left: 1em; + } + + li { + list-style-type: disc; + } + + section { + margin-bottom: 2em; + } +} + + /*** post mode menus ***/ body#mode-view { background-color: "#FFF"; diff --git a/app/views/static/terms_of_service.html.erb b/app/views/static/terms_of_service.html.erb index 675c9df42..97912e798 100644 --- a/app/views/static/terms_of_service.html.erb +++ b/app/views/static/terms_of_service.html.erb @@ -1,6 +1,7 @@ -
-
-

Terms of Service

+
+

Terms of Service

+ +

By accessing the "<%= Danbooru.config.app_name %>" website ("Site") you agree to the following terms of service. If you do not agree to these terms, then please do not access the Site.

    @@ -11,29 +12,29 @@
  • You will make a best faith effort to upload only high quality anime-related images.
  • You have read the <%= link_to "tagging guidelines", wiki_pages_path(:title => "help:tags") %>.
- -
-

Post/Comment Limiting

-

You cannot upload a post or comment during the first week of signing up.

-

After the initial period, you can post up to one comment an hour and a variable number of posts based on how many of your previous uploads were approved or deleted.

-
- -
-

Prohibited Content

-

In addition, you may not use the Site to upload any of the following:

-
    -
  • Non-anime: Photographs of American porn actresses, for example, are prohibited. Photographs of cosplayers, figures, or prominent figures in the industry are acceptable.
  • -
  • Furry: Any image or movie where a person's skin is made of fur or scales.
  • -
  • Watermarked: Any image where a person who is not the original copyright owner has placed a watermark on the image.
  • -
  • Poorly compressed: Any image where compression artifacts are easily visible.
  • -
  • Grotesque: Any depiction of extreme mutilation, extreme bodily distension, feces, or bodies that are far outside the realm of normal human proportion (for example, breasts or penises that are larger than two heads in size).
  • -
  • Manga: Uploading entire manga or doujinshi chapters is discouraged. Individual pages can be uploaded if they meet the quality criterion.
  • -
  • Nude Filter: Images that have been edited by someone other than the original creator to remove clothing or censorship. These typically feature crude drawings of breasts or genitalia laid on top of the original image.
  • -
-
-
+ + +
+

Post/Comment Limiting

+

You cannot upload a post or comment during the first week of signing up.

+

After the initial period, you can post up to one comment an hour and a variable number of posts based on how many of your previous uploads were approved or deleted.

+
+ +
+

Prohibited Content

+

In addition, you may not use the Site to upload any of the following:

+
    +
  • Non-anime: Uploaded art should be related to anime or otherwise associated with otaku culture. Photographs of American porn actresses, for example, are prohibited. Photographs of cosplayers, figures, or prominent figures in the industry are acceptable.
  • +
  • Furry: Any image or movie where a person's skin is made of fur or scales is prohibited.
  • +
  • Watermarked: Any image where a person who is not the original copyright owner has placed a watermark on the image is prohibited.
  • +
  • Poorly compressed: Any image where compression artifacts are easily visible is prohibited.
  • +
  • Grotesque: Any depiction of extreme mutilation, extreme bodily distension, feces, or bodies that are far outside the realm of normal human proportion (for example, breasts or penises that are larger than two heads in size) are prohibited.
  • +
  • Manga: Uploading entire manga or doujinshi chapters is discouraged. Individual pages can be uploaded if they meet the quality criterion.
  • +
  • Nude Filter: Images that have been edited by someone other than the original creator to remove clothing or censorship are prohibited. These typically feature crude drawings of breasts or genitalia laid on top of the original image.
  • +
+
-
+

Copyright Infringement

If you believe a post infringes upon your copyright, please send an email to the <%= mail_to Danbooru.config.contact_email, "webmaster", :encode => "hex" %> with the following pieces of information:

@@ -42,19 +43,19 @@
  • Proof that you own the copyright.
  • An email address that will be provided to the person who uploaded the infringing post to facilitate communication.
  • -
    + -
    +

    Privacy Policy

    The Site will not disclose the IP address, email address, password, or DMails of any user except to the staff.

    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.

    -
    + -
    +

    Agreement

    By clicking on the "I Agree" link, you have read all the terms and have agreed to them.

    -

    <%= link_to("I Agree", params[:url] || "/", :onclick => "Cookie.put('tos', '1')") %> | <%= link_to("Cancel", "/") %>

    -
    +

    <%= link_to("I Agree", params[:url] || "/", :id => "tos-agree-link") %> | <%= link_to("Cancel", "http://www.google.com") %>

    +