Show org invite button if the viewer owns an org, even if they can't edit a team

This commit is contained in:
Michael Hall 2018-09-27 18:06:56 -04:00
parent cd0496fa11
commit 60916282d5

View file

@ -7,10 +7,12 @@
<div class="fluid-container container-primary">
<div class="row">
<div class="col-md-9">
{% if can_edit_team %}
{% if can_edit_team or request.user.profile.owned_orgs.count > 0 %}
<div id="admin_buttons" class="mb-2">
{% if can_edit_team %}
<a href="{% url 'edit-team' team.id %}" class="btn btn-secondary btn-sm"><i class="fa fa-pencil"></i> Edit Team</a>
<a href="{% url 'manage-members' team.id %}" class="btn btn-secondary btn-sm"><i class="fa fa-users"></i> Manage Members</a>
{% endif %}
{% if request.user.profile.owned_orgs.count > 0 %}
<a href="{% url 'invite-to-join-org' team.id %}" class="btn btn-secondary btn-sm"><i class="fa fa-globe"></i> Invite to Organization</a>
{% endif %}