You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
601 B
HTML

5 months ago
<%inherit file="base_mako.html" />
<%block name="head">
<link rel="stylesheet" href="${url_for('static', filename='css/display_mako_bis.css')}">
</%block>
<%def name="render_node(node)">
<div class="node">
<a href="${url_for('draw.draw', parent=node.name)}" target="__blank">
${node.content}
</a>
% if len(node.children) > 0:
<div class="children">
% for child in node.children:
${render_node(child)}
% endfor
</div>
% endif
</div>
</%def>
<main class="container">
% for branch in root.children:
<div class="branches">
${render_node(branch)}
</div>
% endfor
</main>