@use templates::base; @use template_utils::*; @use plume_models::notifications::Notification; @(ctx: BaseContext, notifications: Vec, page: i32, n_pages: i32) @:base(ctx, i18n!(ctx.1, "Notifications"), {}, {}, {

@i18n!(ctx.1, "Notifications")

@for notification in notifications {

@if let Some(url) = notification.get_url(ctx.0) { @translate_notification(ctx, notification.clone()) } else { @translate_notification(ctx, notification.clone()) }

@if let Some(post) = notification.get_post(ctx.0) {

@post.title

}

@notification.creation_date.format("%B %e, %H:%M")

}
@paginate(ctx.1, page, n_pages) })