Commit b2e264f4 authored by Riccardo Padovani's avatar Riccardo Padovani

Personalizzate pagine errore

Risolto bug #1024828
Modificata barra di ricerca del subheader
parent 2d8805a9
...@@ -655,10 +655,11 @@ padding-top: 4px; ...@@ -655,10 +655,11 @@ padding-top: 4px;
} }
.tags { .tags {
display: block; /*display: block;*/
font-family: sans-serif; font-family: sans-serif;
line-height: 200%; line-height: 200%;
margin-top: 5px; margin-top: 5px;
width: 100%;
} }
.tags-summary { .tags-summary {
...@@ -1335,13 +1336,18 @@ ins { ...@@ -1335,13 +1336,18 @@ ins {
} }
#searchBar .searchInput { #searchBar .searchInput {
border: 0px; border: 3px solid #D7D7D7;
padding: 3px; padding: 3px;
font-size: 13px; font-size: 13px;
height: 18px; height: 18px;
width: 380px; width: 380px;
} }
#searchBar .searchInput:focus {
border: 3px solid #DD4818;
outline: none;
}
#searchBar .searchBtn { #searchBar .searchBtn {
font-size: 14px; font-size: 14px;
height: 26px; height: 26px;
...@@ -2165,3 +2171,23 @@ div.wmd-button { ...@@ -2165,3 +2171,23 @@ div.wmd-button {
div.wmd-button-bar { div.wmd-button-bar {
float:left; float:left;
} }
#error > h1 {
color: white;
background-color: #DD4818;
}
#error {
text-align: center;
}
#error-box1, #error-box2, #error-box3 {
float: left;
margin-left: auto;
margin-right: auto;
width: 33%;
text-align: center;
height: 66px;
padding-top: 44px;
font-size: large;
}
...@@ -24,23 +24,17 @@ ...@@ -24,23 +24,17 @@
</script> </script>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div id="main-bar" class="headNormal"> <div id="error">
{% trans "Not logged in" %} <h1>401</h1>
<h2>{% trans "Not logged in" %}</h2><br/>
<h3>{% trans "You are not logged in..." %} <br/> {% trans "...and the resource you're trying to access is protected." %} </h3> <br/>
<p>
{% trans "Redirecting to the login page." %}<span id="redirect_loader"></span>
</p>
<p>
{% trans "If you're not automatically redirected in 5 seconds, please click" %}
<a href="{% url auth_signin %}">{% trans "here" %}</a>.
</p>
</div> </div>
<div id="main-body" class="">
<div style="padding:5px 0px 10px 0;line-height:25px;">
<h3>{% trans "You are not logged in..." %}</h3>
<div style="margin-top:5px">
{% trans "...and the resource you're trying to access is protected." %}
<p>
{% trans "Redirecting to the login page." %}<span id="redirect_loader"></span>
</p>
<p>
{% trans "If you're not automatically redirected in 5 seconds, please click" %}
<a href="{% url auth_signin %}">{% trans "here" %}</a>.
</p>
</div>
</div>
</div> {% endblock %}
{% endblock %}
\ No newline at end of file
...@@ -7,7 +7,23 @@ ...@@ -7,7 +7,23 @@
</style> </style>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div id="main-bar" class="headNormal"> <div id="error">
<h1>403</h1>
<h2>{% trans "Forbidden" %}</h2><br/>
<h3>{% trans "Sorry, you don't have permissions to access this page." %}</h3> <br/>
</div>
<div id="error-box1">
<a href="{% url questions %}">{% trans "see all questions" %} &raquo;</a>
</div>
<div id="error-box2">
<a href="{% url tags %}">{% trans "see all tags" %} &raquo;</a>
</div>
<div id="error-box3">
<a href="#" id="linkPrevious">{% trans "back to previous page" %} &raquo;</a>
</div>
<!--<div id="main-bar" class="headNormal">
{% trans "Forbidden" %} {% trans "Forbidden" %}
</div> </div>
<div id="main-body" class=""> <div id="main-body" class="">
...@@ -32,5 +48,5 @@ ...@@ -32,5 +48,5 @@
</ul> </ul>
</div> </div>
</div> </div>-->
{% endblock %} {% endblock %}
...@@ -2,11 +2,6 @@ ...@@ -2,11 +2,6 @@
<!-- template 404.html --> <!-- template 404.html -->
{% load i18n %} {% load i18n %}
{% block title %}{% trans "404 Error" %}{% endblock %} {% block title %}{% trans "404 Error" %}{% endblock %}
{% block forestyle%}
<style type="text/css">
form input { margin-right: 5px; }
</style>
{% endblock %}
{% block forejs %} {% block forejs %}
<script type="text/javascript"> <script type="text/javascript">
$().ready(function(){ $().ready(function(){
...@@ -16,33 +11,19 @@ ...@@ -16,33 +11,19 @@
</script> </script>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div id="main-bar" class="headNormal"> <div id="error">
{% trans "404 Not Found" %} <h1>404</h1>
<h2>Questa pagina non esiste</h2><br/>
<h3>Beh, ovviamente <em>questa pagina esiste</em>. Ma la pagina che hai richiesto non esiste. Infatti, questa pagina è qui solo per dirti che la pagina che stai cercando non esiste</h3> <br/>
</div> </div>
<div id="main-body" class=""> <div id="error-box1">
<div style="padding:5px 0px 10px 0;line-height:25px;"> <a href="{% url questions %}">{% trans "see all questions" %} &raquo;</a>
<h3>{% trans "Sorry, could not find the page you requested." %}</h3> </div>
<div style="margin-top:5px"> <div id="error-box2">
{% trans "This might have happened for the following reasons:" %}<br/> <a href="{% url tags %}">{% trans "see all tags" %} &raquo;</a>
<ul> </div>
<li>{% trans "this question or answer has been deleted;" %}</li> <div id="error-box3">
<li>{% trans "url has error - please check it;" %}</li> <a href="#" id="linkPrevious">{% trans "back to previous page" %} &raquo;</a>
<li>{% trans "if you believe this error 404 should not have occurred, please" %}
<a href="{% if settings.CONTACT_URL %}{{ settings.CONTACT_URL }}{% else %}{% url feedback %}{% endif %}">{% trans "report this problem" %}</a></li>
</ul>
</div>
<script type="text/javascript">
var GOOG_FIXURL_LANG = '{{settings.LANGUAGE_CODE}}';
var GOOG_FIXURL_SITE = '{{site_url}}';
</script>
<script type="text/javascript" src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
<ul>
<li><a href="#" id="linkPrevious">{% trans "back to previous page" %} &raquo;</a></li>
<li><a href="{% url questions %}">{% trans "see all questions" %} &raquo;</a></li>
<li><a href="{% url tags %}">{% trans "see all tags" %} &raquo;</a></li>
</ul>
</div>
</div> </div>
{% endblock %} {% endblock %}
<!-- end template 404.html --> <!-- end template 404.html -->
...@@ -11,25 +11,28 @@ ...@@ -11,25 +11,28 @@
</script> </script>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div id="error">
<h1>500</h1>
<h2>Server Error</h2><br/>
<h3>{% trans "sorry, system error" %}<br/>
{% trans "system error log is recorded, error will be fixed as soon as possible" %}<br/>
{% trans "please report the error to the site administrators if you wish" %}</h3> <br/>
</div>
<div id="error-box1">
<a href="{% url questions %}">{% trans "see all questions" %} &raquo;</a>
</div>
<div id="error-box2">
<a href="{% url tags %}">{% trans "see all tags" %} &raquo;</a>
</div>
<div id="error-box3">
<a href="#" id="linkPrevious">{% trans "back to previous page" %} &raquo;</a>
</div>
<div id="main-bar" class=""> <div id="main-bar" class="">
<h3> <h3>
500 Server Error 500 Server Error
</h3> </h3>
</div>
<div id="main-body" class="headNormal">
<div style="padding:5px 0px 10px 0;line-height:25px">
<h3>{% trans "sorry, system error" %}</h3>
<br/>
{% trans "system error log is recorded, error will be fixed as soon as possible" %}<br/>
{% trans "please report the error to the site administrators if you wish" %}
<ul>
<li><a href="#" id="linkPrevious">{% trans "back to previous page" %}</a></li>
<li><a href="{% url questions %}">{% trans "see latest questions" %}</a></li>
<li><a href="{% url tags %}">{% trans "see tags" %}</a></li>
</ul>
</div>
</div> </div>
{% endblock %} {% endblock %}
<!-- end template 500.html --> <!-- end template 500.html -->
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment