5800f79eec
В /documents/ добавлено дерево департаментов, права view/edit через DocumentAccessGrant и выдача доступа сотрудникам/отделам/группам. Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
645 B
HTML
15 lines
645 B
HTML
{% for n in nodes %}
|
|
<li style="margin:0;">
|
|
<a href="#" class="docs-tree-link" data-dept="{{ n.id }}"
|
|
onclick="docOpenDept({{ n.id }}); return false;"
|
|
style="display:block; padding:0.28rem 0.4rem; border-radius:0.375rem; text-decoration:none; color:var(--color-foreground); font-size:0.8125rem; font-weight:400;">
|
|
<span style="display:inline-block; width:{{ n.depth }}rem;"></span>{{ n.name }}
|
|
</a>
|
|
{% if n.children %}
|
|
<ul style="list-style:none; margin:0; padding:0 0 0 0.5rem;">
|
|
{% include "partials/documents-tree-nodes.html" with nodes=n.children %}
|
|
</ul>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|