rustango 0.14.2

Django-shaped web framework for Rust: ORM, migrations, auto-admin, multi-tenancy, audit log.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<aside class="sidebar">
  <h2>{{ admin_title | default(value="rustango admin") }}</h2>
  {% if admin_subtitle %}<p class="subtitle">{{ admin_subtitle }}</p>{% endif %}
  <p><a href="/__admin/" class="{% if active_table is undefined or active_table == '' %}active{% endif %}">Home</a></p>
  <p><a href="/__audit" class="{% if active_table == '__audit' %}active{% endif %}">Activity</a></p>
  {% if sidebar_groups %}
    {% for group in sidebar_groups %}
    <h3>{{ group.app }}</h3>
    <ul>
      {% for m in group.models %}
      <li><a href="/__admin/{{ m.table }}"{% if m.active %} class="active"{% endif %}>{{ m.name }}</a></li>
      {% endfor %}
    </ul>
    {% endfor %}
  {% else %}
    <p class="empty">No models registered.</p>
  {% endif %}
</aside>