~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/base/xhtmlerror.html

Add an XHTMLUnauthorizedView which redirects unauthenticated users to the
login page if a page raises an Unauthorized. Alter UserSettingsView to raise
one in the right cases, for testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
    <title>${exception.codename}</title>
5
5
  </head>
6
6
  <body>
7
 
    <h1>${exception.codename}</h1>
8
7
    <div id="ivle_padding">
9
 
      <h3>HTTP error ${exception.code}</h3>
 
8
      <h1>Error ${exception.code}: ${exception.codename}</h1>
10
9
      <p py:if="exception.message">${exception.message}</p>
11
10
    </div>
12
11
  </body>