diff --git a/ansible_ai_connect/main/tests/test_views.py b/ansible_ai_connect/main/tests/test_views.py
index 022d5f301..391a7f8c3 100644
--- a/ansible_ai_connect/main/tests/test_views.py
+++ b/ansible_ai_connect/main/tests/test_views.py
@@ -201,6 +201,12 @@ def test_get_view_trial(self):
Logged in as: test_user_name
Plan: trial of 90 days
Expiration: {expired_at}
+
+
Accelerate Playbook creation with AI-driven content recommendations
+ from IBM Watsonx Code Assistant for Red Hat Ansible Lightspeed,
+ enabling faster, more efficient automation development.
+ Learn more.
"""
self.assertEqual(dedent(expectation).strip(), content)
@@ -223,7 +229,9 @@ def test_get_view_expired_trial(self):
r = self.client.get(reverse("me_summary"))
self.assertEqual(r.status_code, 200)
content = r.json()["content"]
- self.assertTrue("Your trial has expired. Contact your Red Hat" in content)
+ self.assertTrue(
+ "Your trial has expired. To continue your Ansible automation journey" in content
+ )
user.delete()
trial_plan.delete()
diff --git a/ansible_ai_connect/users/one_click_trial.py b/ansible_ai_connect/users/one_click_trial.py
index ab4d41d17..b4f3b5434 100644
--- a/ansible_ai_connect/users/one_click_trial.py
+++ b/ansible_ai_connect/users/one_click_trial.py
@@ -50,6 +50,14 @@ def get_markdown(self, host):
Plan: {active_plan.plan.name}
Expiration: {expired_at}
"""
+ if (active_plan.expired_at - timezone.now()).days <= 90:
+ markdown_value += """
+
Accelerate Playbook creation with AI-driven content recommendations
+ from IBM Watsonx Code Assistant for Red Hat Ansible Lightspeed,
+ enabling faster, more efficient automation development.
+ Learn more.
+ """
elif active_plan and not active_plan.expired_at:
markdown_value = f"""
Logged in as: {self.user.username}
@@ -59,11 +67,11 @@ def get_markdown(self, host):
elif expired_plan:
markdown_value = f"""
Logged in as: {self.user.username}
- Your trial has expired. Contact your Red Hat Organization's
- administrator to request access to
-
- Ansible Lightspeed with IBM watsonx Code Assistant.
+ Your trial has expired. To continue your Ansible automation journey,
+ contact your Red Hat organization's administrator, or connect with an IBM expert to subscribe to watsonx Code
+ Assistant for Red Hat Ansible Lightspeed.
"""
else:
markdown_value = f"""
diff --git a/ansible_ai_connect/users/templates/users/trial.html b/ansible_ai_connect/users/templates/users/trial.html
index bc08291fd..d6f0fc08d 100644
--- a/ansible_ai_connect/users/templates/users/trial.html
+++ b/ansible_ai_connect/users/templates/users/trial.html
@@ -3,42 +3,49 @@
{% block content %}
-{% if start_trial_button and accept_trial_terms is False %}
-
- Please accept the Terms and Conditions and allow information to be shared with IBM. -
-+ Please accept the Terms and Conditions and allow information to be shared with IBM. +
+{% firstof user.external_username user.username %}
-{% firstof user.external_username user.username %}
+