diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb new file mode 100644 index 00000000..dcd0102c --- /dev/null +++ b/app/controllers/static_controller.rb @@ -0,0 +1,3 @@ +class StaticController < ApplicationController + +end diff --git a/app/stylesheets/screen.sass b/app/stylesheets/screen.sass index df04c6d8..e0522e22 100644 --- a/app/stylesheets/screen.sass +++ b/app/stylesheets/screen.sass @@ -8,3 +8,4 @@ @import items/index @import items/show @import outfits/new +@import static/terms diff --git a/app/stylesheets/static/_terms.sass b/app/stylesheets/static/_terms.sass new file mode 100644 index 00000000..3d188dcc --- /dev/null +++ b/app/stylesheets/static/_terms.sass @@ -0,0 +1,2 @@ +body.static-terms + text-align: center diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 1a44812c..43590f53 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -41,7 +41,7 @@ %li %a{:href => "http://github.com/matchu/openneo-impress"} The Source Code %li - %a{:href => "/terms.html"} Terms of Use + %a{:href => terms_path} Terms of Use %div Contact: %ul diff --git a/app/views/static/terms.html.haml b/app/views/static/terms.html.haml new file mode 100644 index 00000000..7b3473f1 --- /dev/null +++ b/app/views/static/terms.html.haml @@ -0,0 +1,44 @@ + +%p + Our policy is short and sweet at this point. And by using our site, you + agree to our Terms of Use. Thanks! +%hr +%p + If you hit our servers with automated requests in ways which were not + intended, you will be banned at our sole discretion. Public APIs are + intended methods. If a page on our site is not clearly marked as a public + API, it is not an intended method. +%p + You may look at the code for educational purposes; however, if you + directly use any part of the front-end or back-end code for your own + purposes, you + %strong must + prominently credit its original + source + == (#{link_to 'OpenNeo', 'http://www.openneo.net/'}) + on every single web page on which the code is used, or which the code is used + to produce. If you make improvements to the code, we appreciate, but do not + require, that you submit those improvements to the original codebase. See the + = link_to 'license', 'https://github.com/matchu/openneo-impress/blob/master/LICENSE' + for more information. +%p + Attempts to misuse this website are acceptable as long as they are for + the sole purpose of improving this website. All security issues must be + immediately reported to + == #{link_to 'OpenNeo', 'http://www.openneo.net/'}, + and may not be used for any malicious purpose. If you inform someone else + of a security hole and he or she abuses it, both of your are considered + responsible. +%p + In short, use our website as much as you like, but do no harm. Or you + %strong will + be punished. +%hr +%p + Sorry if that scared you. It's really just to make clear that there are + certain unacceptable behaviors when it comes to accessing a website, but only + those looking to cause trouble are likely to really cause any. If all you + want to do here is dress up your pets, then there's absolutely no need to + worry. +%p + %strong Thanks for using Dress to Impress! diff --git a/config/routes.rb b/config/routes.rb index 68ec96a2..18ab77db 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -37,4 +37,6 @@ OpenneoImpressItems::Application.routes.draw do |map| match 'users/top_contributors' => redirect('/users/top-contributors') match '/wardrobe' => 'outfits#edit', :as => :wardrobe + + match '/terms' => 'static#terms', :as => :terms end diff --git a/public/stylesheets/compiled/screen.css b/public/stylesheets/compiled/screen.css index 827786c7..b57b199d 100644 --- a/public/stylesheets/compiled/screen.css +++ b/public/stylesheets/compiled/screen.css @@ -816,3 +816,8 @@ body.outfits-new #tell-the-world img { height: 16px; width: 16px; } + +/* line 1, ../../../app/stylesheets/static/_terms.sass */ +body.static-terms { + text-align: center; +}