{% extends "master.html" %}

{% block head %}
<link href="/static/work-util.css" media="all" rel="stylesheet" type="text/css" />
<script src="/static/work-util.js"></script>

<script>
$(function() { work_inspect("#obj", {{ x|safe }}); });
</script>
{% endblock %}


{% block content %}
<style>table,th,td {border:1px solid;padding:4px;border-collapse: collapse;}</style>
<h1>ds: Site-Map</h1>
<table>
<tr><th>Urlpath
<th>Verb
<th>Location
<th>Target
<th>Package
<th>varname
<th>Flags
</tr>
{% for path in r  %}
{% for verb in verbs %}{% if ro[path][verb].n %}
<tr><td><a href="{{path}}">{{path}}</a>

<td>{%if ro[path][verb].view %}<a href="plain/{{ro[path][verb].view}}">{{verb}}</a>
{% else %}{{verb}}{% endif %}

<td>{{ro[path][verb].n.pkg.dirname}}

<td{%if not ro[path][verb].n.handler %} style="color:red"{% endif %}>
{%if ro[path][verb].controller %}<a href="plain/{{ro[path][verb].controller}}">
{{ro[path][verb].n.target}}
{% else %}{{ro[path][verb].n.target}}{% endif %}

<td>{{ro[path][verb].n.pkg.name}}

<td>{{ro[path][verb].n.varname}}

<td>{{ro[path][verb].flags}}
</tr>
{% endif %}{% endfor %}
{% endfor %}
</table>

<div id="obj"></div>

{% endblock %}
