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

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

@for notification in notifications {

@if let Some(url) = notification.get_url(ctx.0) { @i18n!(ctx.1, notification.get_message(); notification.get_actor(ctx.0).name(ctx.0)) } else { @i18n!(ctx.1, notification.get_message(); notification.get_actor(ctx.0).name(ctx.0)) }

@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) })