added page not available in language page.

This commit is contained in:
Harry Bomrah 2015-06-25 13:31:05 +08:00
parent dd3b4f0384
commit e168b01f9b
3 changed files with 68 additions and 1 deletions

View File

@ -124,7 +124,7 @@ class PagesController < ApplicationController
if Site.first.enable_redirect_index if Site.first.enable_redirect_index
redirect_to root_url redirect_to root_url
else else
render :file => "#{Rails.root}/public/404.html", :layout => false, :status => :not_found render :file => "#{Rails.root}/public/411.html", :layout => false, :status => :not_found
end end
end end
else else

67
public/411.html Normal file
View File

@ -0,0 +1,67 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Page not available</title>
</head>
<body>
<style>
::selection {
color: #fff;
background: #040114;
}
body {
margin: 0;
padding: 0;
font-family: 'Roboto', sans-serif;
font-size: 100%;
background: url(/error_image/not-avai-bg.jpg) center center fixed no-repeat;
background-size: cover;
background-color: #000;
}
#page-not-avai-in-this-lang {
min-height: 768px;
}
.message {
text-align: center;
position: absolute;
left: 50%;
top: 25%;
margin-left: -210px;
}
.message h1 {
margin: 0 0.2em 0 0;
color: #fff;
font-size: 8.5em;
font-weight: normal;
}
.message h2 {
margin: 0;
padding: 0;
color: #fff;
}
.message p {
color: #fff;
}
.home,
.prev-page {
color: #fff;
}
a.home:hover,
.prev-page:hover {
text-decoration: none;
}
</style>
<div id="page-not-avai-in-this-lang">
<section class="message">
<h1>OOPS!</h1>
<h2>Page not available</h2>
<p>Sorry, This page is not available for this language<br> You can go back to <a class="home" href="/">home</a> or <a class="prev-page" href="#" onclick="window.history.back();">previous</a> page.</p>
</section>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB