Move label display logic into the Label macro
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
@@ -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,
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user