Skip to content

Commit

Permalink
new readable support
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Apr 15, 2017
1 parent 89e4dc5 commit b4e63fe
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
28 changes: 14 additions & 14 deletions src/appier_extras/parts/admin/templates/admin/admin.fluid.html.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,44 @@
{% block links %}
{% if acl("admin") %}
{% if section == "admin" %}
<a class="selected" href="{{ url_for('admin.index') }}">home</a>
<a class="selected" href="{{ url_for('admin.index') }}">Home</a>
{% else %}
<a href="{{ url_for('admin.index') }}">home</a>
<a href="{{ url_for('admin.index') }}">Home</a>
{% endif %}
{% endif %}
{% if acl("admin.options") %}
{% if section == "options" %}
<a class="selected" href="{{ url_for('admin.options') }}">options</a>
<a class="selected" href="{{ url_for('admin.options') }}">Options</a>
{% else %}
<a href="{{ url_for('admin.options') }}">options</a>
<a href="{{ url_for('admin.options') }}">Options</a>
{% endif %}
{% endif %}
{% if acl("admin.database") %}
{% if section == "database" %}
<a class="selected" href="{{ url_for('admin.database') }}">database</a>
<a class="selected" href="{{ url_for('admin.database') }}">Database</a>
{% else %}
<a href="{{ url_for('admin.database') }}">database</a>
<a href="{{ url_for('admin.database') }}">Database</a>
{% endif %}
{% endif %}
{% if acl("admin.social") %}
{% if section == "social" %}
<a class="selected" href="{{ url_for('admin.social') }}">social</a>
<a class="selected" href="{{ url_for('admin.social') }}">Social</a>
{% else %}
<a href="{{ url_for('admin.social') }}">social</a>
<a href="{{ url_for('admin.social') }}">Social</a>
{% endif %}
{% endif %}
{% if acl("admin.operations") %}
{% if section == "operations" %}
<a class="selected" href="{{ url_for('admin.operations') }}">operations</a>
<a class="selected" href="{{ url_for('admin.operations') }}">Operations</a>
{% else %}
<a href="{{ url_for('admin.operations') }}">operations</a>
<a href="{{ url_for('admin.operations') }}">Operations</a>
{% endif %}
{% endif %}
{% if acl("admin.status") %}
{% if section == "status" %}
<a class="selected" href="{{ url_for('admin.status') }}">status</a>
<a class="selected" href="{{ url_for('admin.status') }}">Status</a>
{% else %}
<a href="{{ url_for('admin.status') }}">status</a>
<a href="{{ url_for('admin.status') }}">Status</a>
{% endif %}
{% endif %}
<div class="separator"></div>
Expand All @@ -51,9 +51,9 @@
{% if acl("admin.models." + _model._name()) %}
{% if section == "models" and model and model._name() == _model._name() %}
<a class="selected"
href="{{ url_for('admin.show_model', model = _model._name()) }}">{{ _model._name() }}</a>
href="{{ url_for('admin.show_model', model = _model._name()) }}">{{ _model._readable() }}</a>
{% else %}
<a href="{{ url_for('admin.show_model', model = _model._name()) }}">{{ _model._name() }}</a>
<a href="{{ url_for('admin.show_model', model = _model._name()) }}">{{ _model._readable() }}</a>
{% endif %}
{% endif %}
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
{% block htitle %}{{ owner.description }} / {% block title %}{% endblock %}{% endblock %}
{% block links %}
{% for model in models %}
<a href="#">{{ model._name() }}</a>
<a href="#">{{ model._readable() }}</a>
{% endfor %}
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "admin/admin.fluid.html.tpl" %}
{% block title %}{{ model._name() }}{% endblock %}
{% block name %}{{ model._name() }}{% endblock %}
{% block title %}{{ model._readable() }}{% endblock %}
{% block name %}{{ model._readable() }}{% endblock %}
{% block content %}
<form action="{{ url_for('admin.create_entity', model = model._name()) }}"
enctype="multipart/form-data" method="post" class="form inline">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% if acl("admin.models." + model._name()) %}
<li>
<div class="left">
<a class="name" href="{{ url_for('admin.show_model', model = model._name()) }}">{{ model._name() }}</a>
<a class="name" href="{{ url_for('admin.show_model', model = model._name()) }}">{{ model._readable() }}</a>
</div>
<div class="right">
<span class="button create" data-link="{{ url_for('admin.new_entity', model = model._name()) }}">create</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "admin/admin.fluid.html.tpl" %}
{% block title %}{{ model._name() }}{% endblock %}
{% block name %}{{ model._name() }}{% endblock %}
{% block title %}{{ model._readable() }}{% endblock %}
{% block name %}{{ model._readable() }}{% endblock %}
{% block style %}no-padding{% endblock %}
{% block buttons %}
{{ super() }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ul>
{% for section, models in models_d.items() %}
{% for model in models %}
<li>{{ model._name() }}</li>
<li>{{ model._readable() }}</li>
{% endfor %}
{% endfor %}
</ul>
Expand Down

0 comments on commit b4e63fe

Please sign in to comment.