Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions experimenter/experimenter/nimbus_ui/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ class NimbusUIConstants:
HOME_PAGE_LINKS = {
"welcome_learn_more_url": "https://experimenter.info/workflow/overview/"
}
HOME_PAGE_TOOLTIPS = {
"draft_or_preview": """This is anything that you own or are subscribed
to follow - which are in Draft or Preview states. Go to the link to check the
message for the next actions needed."""
}

class ReviewRequestMessages(Enum):
END_EXPERIMENT = "end this experiment"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
<div class="card shadow-sm border-0 px-3 pt-3 h-100 rounded-3 bg-primary-subtle"
style="min-height: 400px">
<div class="d-flex justify-content-between align-items-center mb-3">
<h5 class="fw-semibold mb-0">{{ title }}</h5>
<h5 class="fw-semibold mb-0">
{{ title }}
<i class="fa-regular fa-circle-question"
data-bs-toggle="tooltip"
data-bs-placement="top"
data-bs-title="{{ tooltips.draft_or_preview }}"></i>
</h5>
<span class="badge rounded-pill bg-primary fs-6 px-3 py-1">{{ page_obj.paginator.count }}</span>
</div>
{% if experiments %}
Expand Down
1 change: 1 addition & 0 deletions experimenter/experimenter/nimbus_ui/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,4 +647,5 @@ def get_context_data(self, **kwargs):
draft_or_preview_experiments, 4
).get_page(draft_page)
context["links"] = NimbusUIConstants.HOME_PAGE_LINKS
context["tooltips"] = NimbusUIConstants.HOME_PAGE_TOOLTIPS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

return context