Skip to content
Snippets Groups Projects
Commit 478f8fe6 authored by kaiyou's avatar kaiyou
Browse files

Fix the personal profiles page

parent 4839bd2b
No related branches found
No related tags found
No related merge requests found
Pipeline #2893 passed
......@@ -17,8 +17,8 @@
</div>
<div class="box-footer no-padding">
<ul class="nav nav-stacked">
{% if profiles.__len__() == 0 or not service.single_profile %}
{% if service.policy in ("open", "burst") and profiles.__len__() < service.max_profiles %}
{% if not service.single_profile %}
{% if service.policy in ("open", "burst") and profile.__class__.filter(service, current_user).count() < service.max_profiles %}
<li>
<a href="{{ utils.url_for("profile.create", service_uuid=service.uuid) }}">
<i class="fa fa-user-plus"></i>&nbsp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment