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

« back to all changes in this revision

Viewing changes to ivle/webapp/console/overlay.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:
3
3
      xmlns:py="http://genshi.edgewall.org/" py:strip="">
4
4
      
5
5
  <body py:strip="">
6
 
    <div class="console_body" id="console_body" py:attrs="start_body_attrs">
7
 
      <div class="console_heading" id="console_heading" py:if="windowpane">Python Console
8
 
        <span class="console_button minimize">
 
6
    <div id="console_body" py:attrs="start_body_attrs">
 
7
      <div id="console_heading">Python Console<span py:if="windowpane" 
 
8
          class="console_button minimize">
9
9
          <a onclick="console_minimize()"
10
10
              title="Minimize the Python console">
11
11
            <img src="${minimize_path}" alt="Minimize" />
12
12
          </a>
13
13
        </span>
14
14
      </div>
15
 
      <div class="console_body2">
16
 
        <pre class="console_output outputMsg" id="console_output"></pre>
17
 
        <div class="console_input">
18
 
          <div>
19
 
            <div>
20
 
              <label class="console_prompt" id="console_prompt">&gt;&gt;&gt; </label>
21
 
            </div>
22
 
            <div class="console_inputCell">
23
 
              <input class="console_inputText" id="console_inputText" type="text" 
24
 
                  onkeydown="return catch_input(event.keyCode)" />
25
 
            </div>
26
 
            <div>
27
 
              <input type='button' value='Interrupt'
28
 
                  onclick='set_interrupt();'/>
29
 
              <input type='button' value='Clear Output'
30
 
                  onclick='return clear_output();'/>
31
 
              <input type='button' value='Reset'
32
 
                  onclick='console_reset();'/>
33
 
            </div>
34
 
            <div py:if="windowpane" class="console_button maximize">
35
 
              <a onclick="console_maximize()"
36
 
                  title="Open up the Python console">
37
 
                <img src="${maximize_path}" alt="Maximize"/>
38
 
              </a>
39
 
            </div>
 
15
      <div id="console_body2">
 
16
        <pre id="console_output" class='outputMsg'></pre>
 
17
        <div id="console_input">
 
18
          <div id="console_inputArea">
40
19
          </div>
 
20
          <label id="console_prompt">&gt;&gt;&gt; </label>
 
21
          <input id="console_inputText" type="text" size="80" 
 
22
              onkeypress="return catch_input(event.keyCode)" />
 
23
          <input type='button' value='Interrupt' onclick='set_interrupt();'/>
 
24
          <input type='button' value='Clear Output' onclick='return clear_output();'/>
 
25
          <input type='button' value='Reset' onclick='console_reset();'/>
 
26
          <span py:if="windowpane" class="console_button maximize">
 
27
            <a onclick="console_maximize()"
 
28
                title="Open up the Python console">
 
29
              <img src="${maximize_path}" alt="Maximize"/>
 
30
            </a>
 
31
          </span>
41
32
        </div>
42
33
      </div>
43
34
    </div>