Move label display logic into the Label macro

This commit is contained in:
leigh-mil
2019-11-19 11:01:07 -05:00
parent 58a0b2dd9d
commit 8aa302357b
7 changed files with 29 additions and 37 deletions

View File

@@ -153,7 +153,6 @@ def view_new_application_step_3(application_id):
application=application,
members=members,
new_member_form=new_member_form,
label_info=LABEL_INFO,
)

View File

@@ -21,19 +21,6 @@ from atst.utils.localization import translate
from atst.jobs import send_mail
LABEL_INFO = {
"pending": {"icon": "envelope", "text": "invite pending", "type": "success",},
"expired": {"icon": "envelope", "text": "invite expired", "type": "error",},
"env_changes_pending": {
"icon": "exchange",
"text": "changes pending",
"type": "default",
},
"active": None,
"disabled": None,
}
def get_environments_obj_for_app(application):
return sorted(
[
@@ -177,7 +164,6 @@ def render_settings_page(application, **kwargs):
audit_events=audit_events,
new_member_form=new_member_form,
members=members,
label_info=LABEL_INFO,
**kwargs,
)