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

« back to all changes in this revision

Viewing changes to ivle/webapp/base/xhtmlunauthorized.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>Unauthorized</title>
5
5
  </head>
6
6
  <body>
7
 
    <h1>Unauthorized</h1>
8
7
    <div id="ivle_padding">
9
 
      <p py:if="exception.message">${exception.message}</p>
 
8
      <h1>Unauthorized</h1>
 
9
      <p>You are not allowed to view this part of IVLE.</p>
10
10
    </div>
11
11
  </body>
12
12
</html>