cw.dbtmako 1.68 KB
Newer Older
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
52
53
54
55
56
57
58
59
60
61
62
63
<h3>Controller</h3>

<table class="table table-striped table-condensed">
    <thead>
        <tr>
            <th>Kind</th>
            <th>Request</th>
            <th>Path</th>
            <th>Controller</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>${controller["kind"]}</td>
            <td>${controller["request"]}</td>
            <td>${controller["path"]}</td>
            <td>${controller["controller"]}</td>
        </tr>
    </tbody>
</table>

<h3>Configuration</h3>

<table class="table table-striped table-condensed">
    <thead>
        <tr>
            <th>Key</th>
            <th>Value</th>
            <th>Default</th>
            <th>Help</th>
        </tr>
    </thead>
    <tbody>
        % for key, metadata in sorted(controller["config"].options, key=lambda x: x[0]):
            % if hasattr(controller["config"].config, key.replace("-", "_")):
            <% value = getattr(controller["config"].config, key.replace("-", "_")) %>
            <tr>
                <td>${key}</td>
                % if value != metadata["default"]:
                <td><b>${value}</b></td>
                % else:
                <td>${value}</td>
                % endif
                <td>${metadata["default"]}</td>
                <td>${metadata["help"]}</td>
            </tr>
            % endif
        % endfor
    </tbody>
</table>



<h3>Useful links</h3>

<!-- link on the default home as an admin -->
<ul>
    <li><a href="/siteconfig">site configuration</a></li>
    <li><a href="/schema">data model schema</a></li>
    <li><a href="/cwuser">users and groups</a></li>
    <li><a href="/cwsource">data sources</a></li>
    <li><a href="/siteinfo">Site information</a></li>
</ul>