Skip to content

Dan product notifications #1524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add product marketing banner to layout
  • Loading branch information
chillenberger committed Jun 14, 2024
commit 270032afe949d2b00807723b11d477c53f24cd98
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@

<%+ Modal::new(format!(r#"
<div class="d-flex flex-column gap-4 align-items-center">
<a class="btn btn-tertiary" data-action="click->notifications-product-product-banner#hideModal"><span class="material-symbols-outlined close position-absolute top-0 end-0 m-2">close</span></a>
<span class="material-symbols-outlined {display} preset-icon" style="font-size: 44px">{icon}</span>
{title}
<button data-action="click->notifications-product-product-banner#hideModal">Close</button>
<p class="m-0" data-action="click->notifications-product-product-banner#followModalLink">{message}</p>
</div>
"#,
Expand Down
5 changes: 5 additions & 0 deletions pgml-dashboard/src/templates/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ pub struct WebAppBase<'a> {
pub cluster: Cluster,
pub product_banners_high: Vec<ProductBanner>,
pub product_banner_medium: ProductBanner,
pub product_banner_marketing: ProductBanner,
}

impl<'a> WebAppBase<'a> {
Expand Down Expand Up @@ -151,6 +152,10 @@ impl<'a> WebAppBase<'a> {
context,
NotificationLevel::ProductMedium,
)),
product_banner_marketing: ProductBanner::from_notification(Notification::next_product_of_level(
context,
NotificationLevel::ProductMarketing,
)),
..Default::default()
}
}
Expand Down
1 change: 1 addition & 0 deletions pgml-dashboard/templates/layout/web_app_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<%+ banner %>
<% } %>
<%+ product_banner_medium %>
<%+ product_banner_marketing %>
<%- content.unwrap_or_default() %>
</div>
</div>
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy