Fake the processing tag for envs with the name 'QA'

This commit is contained in:
leigh-mil 2019-09-16 16:10:16 -04:00
parent 2d83a46632
commit b041a31fa3

View File

@ -194,6 +194,7 @@
<ul class="accordion-table__items"> <ul class="accordion-table__items">
{% for env in environments_obj %} {% for env in environments_obj %}
{% set edit_form = env['edit_form'] %} {% set edit_form = env['edit_form'] %}
{% set testing_env_name = 'qa' %}
<toggler inline-template> <toggler inline-template>
<li class="accordion-table__item"> <li class="accordion-table__item">
<div class="accordion-table__item-content form-row"> <div class="accordion-table__item-content form-row">
@ -202,19 +203,24 @@
<span> <span>
{{ env['name'] }} {{ env['name'] }}
</span> </span>
<span class="icon-link"> {% if env['name'].lower() == testing_env_name %}
{% set edit_environment_button %} <span class='label'>PROCESSING</span>
{{ Icon('edit') }} {% endif %}
{% endset %} {% if env['name'].lower() != testing_env_name %}
<span class="icon-link">
{% set edit_environment_button %}
{{ Icon('edit') }}
{% endset %}
{{ {{
ToggleButton( ToggleButton(
open_html=edit_environment_button, open_html=edit_environment_button,
close_html=edit_environment_button, close_html=edit_environment_button,
section_name="edit" section_name="edit"
) )
}} }}
</span> </span>
{% endif %}
<span class="accordion-table__item__toggler icon-link"> <span class="accordion-table__item__toggler icon-link">
{% set members_button = "portfolios.applications.member_count" | translate({'count': env['member_count']}) %} {% set members_button = "portfolios.applications.member_count" | translate({'count': env['member_count']}) %}
{{ {{
@ -228,9 +234,13 @@
</div> </div>
</div> </div>
<div class="form-col form-col--third"> <div class="form-col form-col--third">
<a href='{{ url_for("applications.access_environment", environment_id=env.id)}}' target='_blank' rel='noopener noreferrer' class='application-list-item__environment__csp_link icon-link'> {% if env['name'].lower() == testing_env_name %}
<span>{{ "portfolios.applications.csp_link" | translate }} {{ Icon('link', classes="icon--tiny") }}</span> <em>Cloud service provider link unavailable</em>
</a> {% else %}
<a href='{{ url_for("applications.access_environment", environment_id=env.id)}}' target='_blank' rel='noopener noreferrer' class='application-list-item__environment__csp_link icon-link'>
<span>{{ "portfolios.applications.csp_link" | translate }} {{ Icon('link', classes="icon--tiny") }}</span>
</a>
{% endif %}
</div> </div>
</div> </div>