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

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/browser/template.html

  • Committer: David Coles
  • Date: 2010-07-16 06:47:19 UTC
  • Revision ID: coles.david@gmail.com-20100716064719-j68ejmcf6akblw8a
Fix typo in rebuild_svn_config that caused Storm query to return limited or no 
submissions.

Fixes issue where lectueres and tutors did not have permission to access 
submissions by students in their subjects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
      xmlns:py="http://genshi.edgewall.org/">
3
3
<!-- Top bar section -->
4
4
<head>
5
 
  <title>File Browser</title>
 
5
  <title>${title}</title>
6
6
</head>
7
7
<body>
8
8
  <div id="topbar">
9
 
    <div id="path">
10
 
      <span>
11
 
        <py:for each="segment in paths">/<a href="${segment['href_path']}" title="Navigate to ${segment['nav_path']}">${segment['path']}</a></py:for><py:if test="isdir">/</py:if><py:if test="revno is not None"> (revision ${revno})</py:if>
12
 
      </span>
13
 
    </div>
14
 
    <div id="actions1">
15
 
      <a id="act_open" class="disabled">Open</a> :
16
 
      <a id="act_serve"
17
 
          title="View this file on the web, running your code if this is a CGI file"
18
 
          class="disabled" target="_blank">Serve</a> :
19
 
      <a id="act_run" title="Run the selected Python file in the console"
20
 
          class="disabled">Run</a> :
21
 
      <a id="act_download" class="choice">Download</a> :
22
 
      <a title="Refresh the current page" onclick="refresh()"
23
 
          class="choice">Refresh</a>
24
 
      <span id="moreactions_area"> :
25
 
        <select id="moreactions" onchange="handle_moreactions()"
26
 
            onblur="handle_moreactions()">
27
 
          <option class="moreactions" value="top"
28
 
              selected="selected">More actions...</option>
29
 
          <py:for each="(name, disablement, group) in moreactions">
30
 
 
31
 
            <optgroup label="${name}">
32
 
 
33
 
              <py:choose test="disablement">
34
 
 
35
 
                <py:when test="True">
36
 
                  <py:for each="(id, bits) in group">
37
 
                    <option id="act_${id}" class="disabled" disabled="disabled"
38
 
                        title="${bits[1]}" value="${id}">${bits[0]}</option>
39
 
                  </py:for>
40
 
                </py:when>
41
 
 
42
 
                <py:otherwise>
43
 
                  <py:for each="(id, bits) in group">
44
 
                    <option id="act_${id}" title="${bits[1]}" 
45
 
                        value="${id}">${bits[0]}</option>
46
 
                  </py:for>                
47
 
                </py:otherwise>
48
 
 
49
 
              </py:choose>
50
 
 
51
 
            </optgroup>
52
 
          </py:for>
53
 
        </select>
54
 
      </span>
55
 
    </div>
56
 
    <div id="actions2">
57
 
      <form id="actions2_directory"
58
 
          target="upload_iframe"
59
 
          action="${fileservice_action}"
60
 
          enctype="multipart/form-data" method="post">
61
 
        <p>
62
 
          <span id="selectallpanel">
63
 
          Select:
64
 
            <a onclick="action_selectall(true)"
65
 
                title="Select all files in this directory">All</a> :
66
 
            <a onclick="action_selectall(false)"
67
 
                title="Deselect all files in this directory">None</a>
68
 
          </span>
69
 
 
70
 
          <span style="display:none" id="uploadpanel">|
 
9
    <div id="actions">
 
10
      <span id="actions1">
 
11
        <a id="act_open" class="disabled">Open</a> :
 
12
        <a id="act_serve"
 
13
            title="View this file on the web, running your code if this is a CGI file"
 
14
            class="disabled" target="_blank">Serve</a> :
 
15
        <a id="act_run" title="Run the selected Python file in the console"
 
16
            class="disabled">Run</a> :
 
17
        <a id="act_download" class="choice">Download</a> :
 
18
        <a title="Refresh the current page" onclick="refresh()"
 
19
            class="choice">Refresh</a>
 
20
        <span id="moreactions_area"> :
 
21
          <select id="moreactions" onchange="handle_moreactions()"
 
22
              onblur="handle_moreactions()">
 
23
            <option class="moreactions" value="top"
 
24
                selected="selected">More actions...</option>
 
25
            <py:for each="(name, disablement, group) in moreactions">
 
26
 
 
27
              <optgroup label="${name}">
 
28
 
 
29
                <py:choose test="disablement">
 
30
 
 
31
                  <py:when test="True">
 
32
                    <py:for each="(id, bits) in group">
 
33
                      <option id="act_${id}" class="disabled" disabled="disabled"
 
34
                          title="${bits[1]}" value="${id}">${bits[0]}</option>
 
35
                    </py:for>
 
36
                  </py:when>
 
37
 
 
38
                  <py:otherwise>
 
39
                    <py:for each="(id, bits) in group">
 
40
                      <option id="act_${id}" title="${bits[1]}" 
 
41
                          value="${id}">${bits[0]}</option>
 
42
                    </py:for>                
 
43
                  </py:otherwise>
 
44
 
 
45
                </py:choose>
 
46
 
 
47
              </optgroup>
 
48
            </py:for>
 
49
          </select>
 
50
        </span>
 
51
      </span> <!-- actions1 -->
 
52
      <span id="actions2">
 
53
        <form id="actions2_directory"
 
54
            target="upload_iframe"
 
55
            action="${fileservice_action}"
 
56
            enctype="multipart/form-data" method="post">
 
57
          <span style="display:none" id="uploadpanel">
71
58
            <label for="upload_file">Upload file:</label>
72
59
            <input type="hidden" value="putfiles" name="action" />
73
60
            <input type="hidden" value="" name="path" />
74
61
            <input type="file" name="data" id="upload_file" />
75
62
            <input type="checkbox" checked="checked" value="true" name="unpack" id="unpack" />
76
 
            <label title="Extract files and directories from a ZIP file if one is uploaded" for="unpack">Unpack ZIP</label>
 
63
            <label title="Extract files and directories from a ZIP file if one is uploaded" for="unpack">Unzip</label>
77
64
            <input type="button" onclick="show_uploadpanel(false)" value="Cancel" />
78
65
            <input type="submit" value="Upload" />
79
66
          </span>
81
68
               refreshing the page. (It will refresh the listing). -->
82
69
          <iframe onload="upload_callback()" style="display: none;"
83
70
              name="upload_iframe" id="upload_iframe"></iframe>
84
 
        </p>
85
 
      </form>
86
 
      <p id="actions2_file">
87
 
        <input type="button" id="save_button" value="Save" onclick="save_file('${filename}')" />
88
 
        <input type="button" id="saveas_button" value="Save As..." onclick="save_file_as('${filename}')" />
89
 
        <select id="highlighting_select" onchange="highlighting_changed(this)">
90
 
          <option value="text">Text</option>
91
 
          <option value="python">Python</option>
92
 
          <option value="html">HTML</option>
93
 
          <option value="javascript">JavaScript</option>
94
 
          <option value="css">CSS</option>
95
 
        </select>
96
 
      </p>
97
 
    </div>
 
71
        </form>
 
72
        <span id="actions2_file">
 
73
          <input type="button" id="save_button" value="Save" onclick="save_file('${filename}')" />
 
74
          <input type="button" id="saveas_button" value="Save As..." onclick="save_file_as('${filename}')" />
 
75
          <select id="highlighting_select" onchange="highlighting_changed(this)">
 
76
            <option value="text">Text</option>
 
77
            <option value="python">Python</option>
 
78
            <option value="html">HTML</option>
 
79
            <option value="javascript">JavaScript</option>
 
80
            <option value="css">CSS</option>
 
81
          </select>
 
82
        </span>
 
83
      </span> <!-- actions2 -->
 
84
    </div> <!-- actions -->
98
85
  </div>
99
86
  <!-- Body. The JavaScript places content here relevant to the path -->
100
87
  <div id="filesbody">