Skip to content
Permalink
Browse files

Merge branch 'master' into features/http_diag

  • Loading branch information...
joamag committed Feb 21, 2018
2 parents 72b11dd + 8a7b096 commit 2c60a9737a195fd58c90eef45eb6345db5bea98e
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/appier_extras/parts/admin/templates/admin/admin.fluid.html.tpl
@@ -1,6 +1,7 @@
{% extends "admin/layout.fluid.html.tpl" %}
{% block htitle %}{{ owner.description }} / {% block title %}{% endblock %}{% endblock %}
{% block links %}
<h3>Settings</h3>
{% if acl("admin") %}
{% if section == "admin" %}
<a class="selected" href="{{ url_for('admin.index') }}">Home</a>
@@ -55,10 +56,11 @@
{% endif %}
{% endfor %}
{% endif %}
<div class="separator"></div>
{% for _section, models in own.admin_part.models_d.items() %}
{% set available = own.admin_part._available(models) %}
{% if available|length > 0 %}
<div class="separator"></div>
<h3>{{ appier.underscore_to_readable(_section, capitalize = True) }}</h3>
{% for _model in available %}
{% if acl("admin.models." + _model._under()) %}
{% if section == "models" and model and model._under() == _model._under() %}
@@ -69,7 +71,6 @@
{% endif %}
{% endif %}
{% endfor %}
<div class="separator"></div>
{% endif %}
{% endfor %}
{% endblock %}

0 comments on commit 2c60a97

Please sign in to comment.
You can’t perform that action at this time.