Parent: [697f6c] (diff)

Download this file

admin_extensions.html    52 lines (47 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="master.html" />
<?python from allura.lib.security import has_artifact_access ?>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<title>$app.config.options.mount_point Admin Viewable Files</title>
</head>
<body>
<h1 class="title">$app.config.options.mount_point Admin Viewable Files</h1>
<div class="content">
<div class="row">
<div class="column grid_12">
<form>
<ol>
<li>
<label>Extensions:</label>
<input type="text" name="additional_viewable_extensions" id="additional_viewable_extensions" value="${additional_viewable_extensions}"
py:if="allow_config" title="e.g., .svnignore,.gitignore,.ini"/>
<span py:if="not allow_config">${additional_viewable_extensions}</span>
</li>
<hr/>
<li>
<label>&nbsp;</label>
<input type="button" onclick="save_extensions()"
py:if="allow_config" value="Save"/>
</li>
</ol>
</form>
</div>
</div>
</div>
</body>
<script type="text/javascript" py:if="allow_config">
function save_extensions(){
$.post('set_extensions', {
additional_viewable_extensions: $('#additional_viewable_extensions').val()
},
function(){
location.reload();
});
}
</script>
</html>