Browse files

Restored dynamic rendering of error pages and fixed 502 error. Need t…

…o check that hoptoad notifications are still triggered once this goes to test!
  • Loading branch information...
1 parent baa3f2e commit e8566455366e0d230adc95925895094dc3cd8d45 Lim Lim committed Oct 9, 2011
View
23 app/controllers/application_controller.rb
@@ -318,29 +318,6 @@ def convert_date(hash, date_symbol_or_string)
public
-# No longer works in rails 3 as routing got moved to middleware
-# https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4444
-# TODO find an alternative, see
-# http://accuser.cc/posts/1-rails-3-0-exception-handling
-# and
-# http://github.com/vidibus/vidibus-routing_error
-# # with thanks to http://henrik.nyh.se/2008/07/rails-404
-# def render_optional_error_file(status_code)
-# case(status_code)
-# when :not_found then
-# render :template => "errors/404", :layout => 'application', :status => 404
-# when :forbidden then
-# render :template => "errors/403", :layout => 'application', :status => 403
-# when :unprocessable_entity then
-# render :template => "errors/422", :layout => 'application', :status => 422
-# when :internal_server_error then
-# render :template => "errors/500", :layout => 'application', :status => 500
-# notify_about_exception(error)
-# else
-# super
-# end
-# end
-
def valid_sort_column(param, model='work')
allowed = []
if model.to_s.downcase == 'work'
View
40 app/controllers/errors_controller.rb
@@ -0,0 +1,40 @@
+class ErrorsController < ApplicationController
+
+ def method_not_allowed
+ render :action => "403"
+ end
+
+ def forbidden
+ render :action => "403"
+ end
+
+ def not_found
+ render :action => "404"
+ end
+
+ def unprocessable_entity
+ render :action => "422"
+ end
+
+ def internal_server_error
+ render :action => "500"
+ end
+
+ def conflict
+ render :action => "500"
+ end
+
+ def not_implemented
+ render :action => "500"
+ end
+
+ %w(403 404 422 500 502).each do |error_code|
+ define_method error_code.to_sym do
+ respond_to do |format|
+ format.html { render error_code, :status => error_code }
+ format.any(:js) { head error_code }
+ end
+ end
+ end
+
+end
View
11 app/views/errors/403.html.erb
@@ -1,6 +1,5 @@
- <!-- BEGIN main -->
- <div id="main" class="error">
- <h2 class="heading">Error 403</h2>
- <h3 class="heading">Forbidden</h3>
- <p>You do not have permission to access the requested file on this server.</p>
- </div>
+<div id="main" class="error">
+ <h2 class="heading">Error 403</h2>
+ <h3 class="heading">Forbidden</h3>
+ <p>You do not have permission to access the requested file on this server.</p>
+</div>
View
11 app/views/errors/404.html.erb
@@ -1,6 +1,5 @@
- <!-- BEGIN main -->
- <div id="main" class="error">
- <h2 class="heading">Error 404</h2>
- <h3 class="heading">The page you were looking for doesn't exist.</h3>
- <p>You may have mistyped the address or the page may have moved.</p>
- </div>
+<div id="main" class="error">
+ <h2 class="heading">Error 404</h2>
+ <h3 class="heading">The page you were looking for doesn't exist.</h3>
+ <p>You may have mistyped the address or the page may have moved.</p>
+</div>
View
11 app/views/errors/422.html.erb
@@ -1,6 +1,5 @@
- <!-- BEGIN main -->
- <div id="main" class="error">
- <h2 class="heading">Error 422</h2>
- <h3 class="heading">The change you wanted was rejected.</h3>
- <p>Maybe you tried to change something you didn't have access to.</p>
- </div>
+<div id="main" class="error">
+ <h2 class="heading">Error 422</h2>
+ <h3 class="heading">The change you wanted was rejected.</h3>
+ <p>Maybe you tried to change something you didn't have access to.</p>
+</div>
View
11 app/views/errors/500.html.erb
@@ -1,6 +1,5 @@
- <!-- BEGIN main -->
- <div id="main" class="error">
- <h2 class="heading">Error 500</h2>
- <h3 class="heading">We're sorry, but something went wrong.</h3>
- <p>We've been notified about this issue and we'll take a look at it shortly</p>
- </div>
+<div id="main" class="error">
+ <h2 class="heading">Error 500</h2>
+ <h3 class="heading">We're sorry, but something went wrong.</h3>
+ <p>We've been notified about this issue and we'll take a look at it shortly</p>
+</div>
View
20 config/initializers/monkeypatches/show_exceptions.rb
@@ -0,0 +1,20 @@
+# Enable handling exceptions with dynamic error pages in production
+# See http://accuser.cc/posts/1-rails-3-0-exception-handling
+require 'action_dispatch/middleware/show_exceptions'
+
+module ActionDispatch
+ class ShowExceptions
+ private
+ def render_exception_with_template(env, exception)
+ body = ErrorsController.action(rescue_responses[exception.class.name]).call(env)
+ log_error(exception)
+ notify_hoptoad(exception)
+ body
+ rescue
+ render_exception_without_template(env, exception)
+ end
+
+ alias_method_chain :render_exception, :template if Rails.env == "production"
+ end
+end
+
View
99 public/403.html
@@ -1,99 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="keywords" content="fanfiction, transformative works, otw, fair use, archive" />
- <meta name="language" content="en-US" />
- <meta name="subject" content="fandom" />
- <meta name="description" content="An Archive of Our Own, a project of the
- Organization for Transformative Works" />
- <meta name="distribution" content="GLOBAL" />
- <meta name="classification" content="transformative works" />
- <meta name="author" content="Organization for Transformative Works" />
- <title>
- Error 403, Forbidden
- </title>
- <link href="/stylesheets/01-core.css?1315914004" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/02-elements.css?1316021304" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/03-region-header.css?1317373302" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/05-region-main.css?1317389334" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/06-region-footer.css?1317389316" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/07-interactions.css?1317373302" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/08-actions.css?1317371502" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/16-zone-system.css?1315553250" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/22-system-messages.css?1317455135" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/role-handheld.css?1315409747" media="only screen and (max-width: 480px), handheld" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/role-aural.css?1317406372" media="speech" rel="stylesheet" type="text/css" />
-<!-- browser-specific stylesheets -->
-<!--[if IE]>
-<link href="/stylesheets/role-ie.css?1317406360" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 5]>
-<link href="/stylesheets/role-ie5.css?1317389052" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 6]>
-<link href="/stylesheets/role-ie6.css?1317389026" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 7]>
-<link href="/stylesheets/role-ie7.css?1315407896" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 8]>
-<link href="/stylesheets/role-ie8.css?1315395805" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--sandbox for developers -->
- <link href="/stylesheets/sandbox.css?1317494515" media="screen" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <ul id="skiplinks"><li><a href="#main">Main Content</a></li></ul>
-<!-- BEGIN header -->
- <div id="header" role="banner">
- <h1>
- <a href="/"><img alt="archive of our own (BETA)" src="/images/ao3_logos/logo-stroke.png" /></a>
- </h1>
- <h3 class="landmark">Site Navigation</h3>
- <ul class="main navigation actions" role="navigation">
- <li><a href="/">home</a></li>
- <li><a href="/media">fandoms</a></li>
- <li><a href="/works">works</a></li>
- <li><a href="/people">people</a></li>
- <li><a href="/bookmarks">bookmarks</a></li>
- <li><a href="/tags">tags</a></li>
- <li><a href="/collections">collections</a></li>
- <li class="search">
- <form accept-charset="UTF-8" action="/works/search" class="search" id="search" method="get">
- <div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
- <fieldset>
- <legend>Search works</legend>
- <p>
- <input class="text" id="site_search" name="query[text]" title="site search" type="text" />
- <span class="submit actions"><input class="button" type="submit" value="Search" /></span>
- </p>
- </fieldset>
- </form>
- </li>
- </ul>
- <div class="clear"></div>
- </div>
-<!-- END header -->
- <div id="main" class="error 403">
- <h2>Error 403</h2>
- <h3>Forbidden</h3>
- <p>You do not have permission to access the requested file on this server.</p>
- </div><!-- END main -->
- <div id="footer" role="contentinfo">
- <h3 class="landmark">Footer</h3>
- <p class="beta"><span class="landmark"><abbr title="Archive Of Our Own">AO3</abbr> Beta</span></p>
- <ul class="navigation actions" role="navigation">
- <li><a href="/tos">Terms of Service</a></li>
- <li>&#8212; <a href="/site_map">Site Map</a></li>
- <li>&#8212; <a href="/abuse_reports/new">Report Abuse</a></li>
- <li>&#8212; <a href="/support">Support and Feedback</a></li>
- <li>&#8212; <a href="/archive_faqs">Archive FAQ</a></li>
- <li>&#8212; <a href="/known_issues">Known Issues</a></li>
- <li>&#8212; <a href="http://creativecommons.org/licenses/GPL/2.0/" title="View License">GPL/CC</a> by the <a href="http://transformativeworks.org/" title="The Organization for Transformative Works">OTW</a>
- </li>
- </ul>
- </div>
-<!-- END footer -->
- </body>
-</html>
View
100 public/404.html
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="keywords" content="fanfiction, transformative works, otw, fair use, archive" />
- <meta name="language" content="en-US" />
- <meta name="subject" content="fandom" />
- <meta name="description" content="An Archive of Our Own, a project of the
- Organization for Transformative Works" />
- <meta name="distribution" content="GLOBAL" />
- <meta name="classification" content="transformative works" />
- <meta name="author" content="Organization for Transformative Works" />
- <title>
- Error 404, Page Not Found
- </title>
- <link href="/stylesheets/01-core.css?1315914004" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/02-elements.css?1316021304" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/03-region-header.css?1317373302" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/05-region-main.css?1317389334" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/06-region-footer.css?1317389316" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/07-interactions.css?1317373302" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/08-actions.css?1317371502" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/16-zone-system.css?1315553250" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/22-system-messages.css?1317455135" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/role-handheld.css?1315409747" media="only screen and (max-width: 480px), handheld" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/role-aural.css?1317406372" media="speech" rel="stylesheet" type="text/css" />
-<!-- browser-specific stylesheets -->
-<!--[if IE]>
-<link href="/stylesheets/role-ie.css?1317406360" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 5]>
-<link href="/stylesheets/role-ie5.css?1317389052" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 6]>
-<link href="/stylesheets/role-ie6.css?1317389026" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 7]>
-<link href="/stylesheets/role-ie7.css?1315407896" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 8]>
-<link href="/stylesheets/role-ie8.css?1315395805" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--sandbox for developers -->
- <link href="/stylesheets/sandbox.css?1317494515" media="screen" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <ul id="skiplinks"><li><a href="#main">Main Content</a></li></ul>
-<!-- BEGIN header -->
- <div id="header" role="banner">
- <h1>
- <a href="/"><img alt="archive of our own (BETA)" src="/images/ao3_logos/logo-stroke.png" /></a>
- </h1>
- <h3 class="landmark">Site Navigation</h3>
- <ul class="main navigation actions" role="navigation">
- <li><a href="/">home</a></li>
- <li><a href="/media">fandoms</a></li>
- <li><a href="/works">works</a></li>
- <li><a href="/people">people</a></li>
- <li><a href="/bookmarks">bookmarks</a></li>
- <li><a href="/tags">tags</a></li>
- <li><a href="/collections">collections</a></li>
- <li class="search">
- <form accept-charset="UTF-8" action="/works/search" class="search" id="search" method="get">
- <div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
- <fieldset>
- <legend>Search works</legend>
- <p>
- <input class="text" id="site_search" name="query[text]" title="site search" type="text" />
- <span class="submit actions"><input class="button" type="submit" value="Search" /></span>
- </p>
- </fieldset>
- </form>
- </li>
- </ul>
- <div class="clear"></div>
- </div>
-<!-- END header -->
- <div id="main" class="system error 404">
- <h2>Error 404</h2>
- <h3>The page you were looking for doesn't exist.</h3>
- <p>You may have mistyped the address or the page may have moved.</p>
- </div>
-<!-- END main -->
- <div id="footer" role="contentinfo">
- <h3 class="landmark">Footer</h3>
- <p class="beta"><span class="landmark"><abbr title="Archive Of Our Own">AO3</abbr> Beta</span></p>
- <ul class="navigation actions" role="navigation">
- <li><a href="/tos">Terms of Service</a></li>
- <li>&#8212; <a href="/site_map">Site Map</a></li>
- <li>&#8212; <a href="/abuse_reports/new">Report Abuse</a></li>
- <li>&#8212; <a href="/support">Support and Feedback</a></li>
- <li>&#8212; <a href="/archive_faqs">Archive FAQ</a></li>
- <li>&#8212; <a href="/known_issues">Known Issues</a></li>
- <li>&#8212; <a href="http://creativecommons.org/licenses/GPL/2.0/" title="View License">GPL/CC</a> by the <a href="http://transformativeworks.org/" title="The Organization for Transformative Works">OTW</a>
- </li>
- </ul>
- </div>
-<!-- END footer -->
- </body>
-</html>
View
100 public/422.html
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="keywords" content="fanfiction, transformative works, otw, fair use, archive" />
- <meta name="language" content="en-US" />
- <meta name="subject" content="fandom" />
- <meta name="description" content="An Archive of Our Own, a project of the
- Organization for Transformative Works" />
- <meta name="distribution" content="GLOBAL" />
- <meta name="classification" content="transformative works" />
- <meta name="author" content="Organization for Transformative Works" />
- <title>
- Error, 422 Rejected
- </title>
- <link href="/stylesheets/01-core.css?1315914004" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/02-elements.css?1316021304" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/03-region-header.css?1317373302" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/05-region-main.css?1317389334" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/06-region-footer.css?1317389316" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/07-interactions.css?1317373302" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/08-actions.css?1317371502" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/16-zone-system.css?1315553250" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/22-system-messages.css?1317455135" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/role-handheld.css?1315409747" media="only screen and (max-width: 480px), handheld" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/role-aural.css?1317406372" media="speech" rel="stylesheet" type="text/css" />
-<!-- browser-specific stylesheets -->
-<!--[if IE]>
-<link href="/stylesheets/role-ie.css?1317406360" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 5]>
-<link href="/stylesheets/role-ie5.css?1317389052" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 6]>
-<link href="/stylesheets/role-ie6.css?1317389026" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 7]>
-<link href="/stylesheets/role-ie7.css?1315407896" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 8]>
-<link href="/stylesheets/role-ie8.css?1315395805" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--sandbox for developers -->
- <link href="/stylesheets/sandbox.css?1317494515" media="screen" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <ul id="skiplinks"><li><a href="#main">Main Content</a></li></ul>
-<!-- BEGIN header -->
- <div id="header" role="banner">
- <h1>
- <a href="/"><img alt="archive of our own (BETA)" src="/images/ao3_logos/logo-stroke.png" /></a>
- </h1>
- <h3 class="landmark">Site Navigation</h3>
- <ul class="main navigation actions" role="navigation">
- <li><a href="/">home</a></li>
- <li><a href="/media">fandoms</a></li>
- <li><a href="/works">works</a></li>
- <li><a href="/people">people</a></li>
- <li><a href="/bookmarks">bookmarks</a></li>
- <li><a href="/tags">tags</a></li>
- <li><a href="/collections">collections</a></li>
- <li class="search">
- <form accept-charset="UTF-8" action="/works/search" class="search" id="search" method="get">
- <div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
- <fieldset>
- <legend>Search works</legend>
- <p>
- <input class="text" id="site_search" name="query[text]" title="site search" type="text" />
- <span class="submit actions"><input class="button" type="submit" value="Search" /></span>
- </p>
- </fieldset>
- </form>
- </li>
- </ul>
- <div class="clear"></div>
- </div>
-<!-- END header -->
- <div id="main" class="system error 422">
- <h2>Error 422</h2>
- <h3>The change you wanted was rejected.</h3>
- <p>Maybe you tried to change something you don't have access to.</p>
- </div>
-<!-- END main -->
- <div id="footer" role="contentinfo">
- <h3 class="landmark">Footer</h3>
- <p class="beta"><span class="landmark"><abbr title="Archive Of Our Own">AO3</abbr> Beta</span></p>
- <ul class="navigation actions" role="navigation">
- <li><a href="/tos">Terms of Service</a></li>
- <li>&#8212; <a href="/site_map">Site Map</a></li>
- <li>&#8212; <a href="/abuse_reports/new">Report Abuse</a></li>
- <li>&#8212; <a href="/support">Support and Feedback</a></li>
- <li>&#8212; <a href="/archive_faqs">Archive FAQ</a></li>
- <li>&#8212; <a href="/known_issues">Known Issues</a></li>
- <li>&#8212; <a href="http://creativecommons.org/licenses/GPL/2.0/" title="View License">GPL/CC</a> by the <a href="http://transformativeworks.org/" title="The Organization for Transformative Works">OTW</a>
- </li>
- </ul>
- </div>
-<!-- END footer -->
- </body>
-</html>
View
100 public/500.html
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="keywords" content="fanfiction, transformative works, otw, fair use, archive" />
- <meta name="language" content="en-US" />
- <meta name="subject" content="fandom" />
- <meta name="description" content="An Archive of Our Own, a project of the
- Organization for Transformative Works" />
- <meta name="distribution" content="GLOBAL" />
- <meta name="classification" content="transformative works" />
- <meta name="author" content="Organization for Transformative Works" />
- <title>
- Error 500, Something Went Wrong
- </title>
- <link href="/stylesheets/01-core.css?1315914004" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/02-elements.css?1316021304" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/03-region-header.css?1317373302" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/05-region-main.css?1317389334" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/06-region-footer.css?1317389316" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/07-interactions.css?1317373302" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/08-actions.css?1317371502" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/16-zone-system.css?1315553250" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/22-system-messages.css?1317455135" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/role-handheld.css?1315409747" media="only screen and (max-width: 480px), handheld" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/role-aural.css?1317406372" media="speech" rel="stylesheet" type="text/css" />
-<!-- browser-specific stylesheets -->
-<!--[if IE]>
-<link href="/stylesheets/role-ie.css?1317406360" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 5]>
-<link href="/stylesheets/role-ie5.css?1317389052" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 6]>
-<link href="/stylesheets/role-ie6.css?1317389026" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 7]>
-<link href="/stylesheets/role-ie7.css?1315407896" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 8]>
-<link href="/stylesheets/role-ie8.css?1315395805" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--sandbox for developers -->
- <link href="/stylesheets/sandbox.css?1317494515" media="screen" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <ul id="skiplinks"><li><a href="#main">Main Content</a></li></ul>
-<!-- BEGIN header -->
- <div id="header" role="banner">
- <h1>
- <a href="/"><img alt="archive of our own (BETA)" src="/images/ao3_logos/logo-stroke.png" /></a>
- </h1>
- <h3 class="landmark">Site Navigation</h3>
- <ul class="main navigation actions" role="navigation">
- <li><a href="/">home</a></li>
- <li><a href="/media">fandoms</a></li>
- <li><a href="/works">works</a></li>
- <li><a href="/people">people</a></li>
- <li><a href="/bookmarks">bookmarks</a></li>
- <li><a href="/tags">tags</a></li>
- <li><a href="/collections">collections</a></li>
- <li class="search">
- <form accept-charset="UTF-8" action="/works/search" class="search" id="search" method="get">
- <div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
- <fieldset>
- <legend>Search works</legend>
- <p>
- <input class="text" id="site_search" name="query[text]" title="site search" type="text" />
- <span class="submit actions"><input class="button" type="submit" value="Search" /></span>
- </p>
- </fieldset>
- </form>
- </li>
- </ul>
- <div class="clear"></div>
- </div>
-<!-- END header -->
- <div id="main" class="system error 500">
- <h2>Error 500</h2>
- <h3>We're sorry, but something went wrong.</h3>
- <p>We've been notified about this issue and we'll try to fix it.</p>
- </div>
-<!-- END main -->
- <div id="footer" role="contentinfo">
- <h3 class="landmark">Footer</h3>
- <p class="beta"><span class="landmark"><abbr title="Archive Of Our Own">AO3</abbr> Beta</span></p>
- <ul class="navigation actions" role="navigation">
- <li><a href="/tos">Terms of Service</a></li>
- <li>&#8212; <a href="/site_map">Site Map</a></li>
- <li>&#8212; <a href="/abuse_reports/new">Report Abuse</a></li>
- <li>&#8212; <a href="/support">Support and Feedback</a></li>
- <li>&#8212; <a href="/archive_faqs">Archive FAQ</a></li>
- <li>&#8212; <a href="/known_issues">Known Issues</a></li>
- <li>&#8212; <a href="http://creativecommons.org/licenses/GPL/2.0/" title="View License">GPL/CC</a> by the <a href="http://transformativeworks.org/" title="The Organization for Transformative Works">OTW</a>
- </li>
- </ul>
- </div>
-<!-- END footer -->
- </body>
-</html>
View
35 public/502.html
@@ -13,32 +13,29 @@
<title>
Archive Down
</title>
- <link href="/stylesheets/01-core.css?1315914004" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/02-elements.css?1316021304" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/03-region-header.css?1317373302" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/05-region-main.css?1317389334" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/06-region-footer.css?1317389316" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/07-interactions.css?1317373302" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/08-actions.css?1317371502" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/16-zone-system.css?1315553250" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/22-system-messages.css?1317455135" media="screen" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/role-handheld.css?1315409747" media="only screen and (max-width: 480px), handheld" rel="stylesheet" type="text/css" />
- <link href="/stylesheets/role-aural.css?1317406372" media="speech" rel="stylesheet" type="text/css" />
+ <link href="/stylesheets/site/2.0/01-core.css?1315914004" media="screen" rel="stylesheet" type="text/css" />
+ <link href="/stylesheets/site/2.0/02-elements.css?1316021304" media="screen" rel="stylesheet" type="text/css" />
+ <link href="/stylesheets/site/2.0/03-region-header.css?1317373302" media="screen" rel="stylesheet" type="text/css" />
+ <link href="/stylesheets/site/2.0/05-region-main.css?1317389334" media="screen" rel="stylesheet" type="text/css" />
+ <link href="/stylesheets/site/2.0/06-region-footer.css?1317389316" media="screen" rel="stylesheet" type="text/css" />
+ <link href="/stylesheets/site/2.0/07-interactions.css?1317373302" media="screen" rel="stylesheet" type="text/css" />
+ <link href="/stylesheets/site/2.0/08-actions.css?1317371502" media="screen" rel="stylesheet" type="text/css" />
+ <link href="/stylesheets/site/2.0/16-zone-system.css?1315553250" media="screen" rel="stylesheet" type="text/css" />
+ <link href="/stylesheets/site/2.0/22-system-messages.css?1317455135" media="screen" rel="stylesheet" type="text/css" />
+ <link href="/stylesheets/site/2.0/25-role-handheld.css?1315409747" media="only screen and (max-width: 480px), handheld" rel="stylesheet" type="text/css" />
+ <link href="/stylesheets/site/2.0/26-role-aural.css?1317406372" media="speech" rel="stylesheet" type="text/css" />
<!-- browser-specific stylesheets -->
-<!--[if IE]>
-<link href="/stylesheets/role-ie.css?1317406360" media="all" rel="stylesheet" type="text/css" />
+<!--[if lte IE 8]>
+<link href="/stylesheets/site/2.0/28-role-ie8_or_lower.css?1317406360" media="all" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 5]>
-<link href="/stylesheets/role-ie5.css?1317389052" media="all" rel="stylesheet" type="text/css" />
+<link href="/stylesheets/site/2.0/29-role-ie5.css?1317389052" media="all" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 6]>
-<link href="/stylesheets/role-ie6.css?1317389026" media="all" rel="stylesheet" type="text/css" />
+<link href="/stylesheets/site/2.0/30-role-ie6.css?1317389026" media="all" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 7]>
-<link href="/stylesheets/role-ie7.css?1315407896" media="all" rel="stylesheet" type="text/css" />
-<![endif]-->
-<!--[if IE 8]>
-<link href="/stylesheets/role-ie8.css?1315395805" media="all" rel="stylesheet" type="text/css" />
+<link href="/stylesheets/site/2.0/31-role-ie7.css?1315407896" media="all" rel="stylesheet" type="text/css" />
<![endif]-->
<!--sandbox for developers -->
<link href="/stylesheets/sandbox.css?1317494515" media="screen" rel="stylesheet" type="text/css" />

0 comments on commit e856645

Please sign in to comment.