Skip to content

Commit 05cfd37

Browse files
committed
Move tooltip to constant.
1 parent 3869198 commit 05cfd37

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

experimenter/experimenter/nimbus_ui/constants.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ class NimbusUIConstants:
147147
experiences, etc. associated with your selected feature.""",
148148
}
149149

150+
FEATURE_PAGE_TOOLTIPS = {
151+
"feature_changes_tooltip": """This shows any changes made to the Nimbus feature manifest
152+
such as code changes for the feature you have chosen."""
153+
}
154+
150155
class ReviewRequestMessages(Enum):
151156
END_EXPERIMENT = "end this experiment"
152157
END_ENROLLMENT = "end enrollment for this experiment"

experimenter/experimenter/nimbus_ui/templates/nimbus_experiments/features.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ <h5 class="fw-semibold">
342342
<i class="fa-regular fa-circle-question"
343343
data-bs-toggle="tooltip"
344344
data-bs-placement="top"
345-
data-bs-title="This shows any changes made to the Nimbus feature manifest such as code changes for the feature you have chosen"></i>
345+
data-bs-title="{{ tooltips.feature_changes_tooltip }}"></i>
346346
|
347347
<span class="badge bg-secondary">Number of changes: {{ feature_changes.count|default:"0" }}</span>
348348
</h5>

experimenter/experimenter/nimbus_ui/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,7 @@ def get_context_data(self, **kwargs):
764764
context = {
765765
"form": form,
766766
"links": NimbusUIConstants.FEATURE_PAGE_LINKS,
767+
"tooltips": NimbusUIConstants.FEATURE_PAGE_TOOLTIPS,
767768
"application": self.request.GET.get("application"),
768769
"feature_configs": self.request.GET.get("feature_configs"),
769770
"paginator": deliveries_paginator,

0 commit comments

Comments
 (0)