Skip to content

Fix none check in org template #13457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions warehouse/templates/manage/organizations.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h3 class="organization-snippet__title">
<a href="{{ request.route_path('organizations.profile', organization=organization.name) }}">{{ organization.name }}</a>
{% else %}{{ organization.name }}{% endif %}

{% if organization.is_approved is None %}
{% if organization.is_approved is none %}
<span class="badge badge--neutral" title="{% trans %}You will receive an email when the organization has been approved{% endtrans %}">{% trans %}Request Submitted{% endtrans %}</span>
{% elif organization.orgtype == OrganizationType.Company and not organization.active_subscription %}
{% if organization.name in (organizations_owned + organizations_billing) %}
Expand Down Expand Up @@ -104,7 +104,7 @@ <h3 class="organization-snippet__title">
{% elif organization.orgtype == OrganizationType.Company and not organization.active_subscription %}
{% if organization.name in (organizations_owned + organizations_billing) %}
{# Show "Activate Billing" button for owners and billing managers #}
<a class="button button--primary {{"button--disabled" if organization.is_approved is None else ""}}" href="{{ request.route_path('manage.organization.activate_subscription', organization_name=organization.normalized_name) }}" title="{% trans %}Activate billing for this organization{% endtrans %}">
<a class="button button--primary {{"button--disabled" if organization.is_approved is none else ""}}" href="{{ request.route_path('manage.organization.activate_subscription', organization_name=organization.normalized_name) }}" title="{% trans %}Activate billing for this organization{% endtrans %}">
{% trans %}Activate Billing{% endtrans %}
</a>
{% else %}
Expand Down