@use templates::{base, partials::post_card}; @use template_utils::*; @use plume_models::blogs::Blog; @use plume_models::posts::Post; @use routes::*; @(ctx: BaseContext, blogs: Vec, drafts: Vec) @:base(ctx, i18n!(ctx.1, "Your Dashboard"), {}, {}, {

@i18n!(ctx.1, "Your Dashboard")

@i18n!(ctx.1, "Your Blogs")

@if blogs.is_empty() {

@i18n!(ctx.1, "You don't have any blog yet. Create your own, or ask to join one.")

}
@for blog in blogs {
@if blog.banner_id.is_some() {
}

@blog.title

@Html(blog.summary_html)

}
@i18n!(ctx.1, "Start a new blog")
@if !drafts.is_empty() {

@i18n!(ctx.1, "Your Drafts")

@for draft in drafts { @:post_card(ctx, draft) }
}

@i18n!(ctx.1, "Your media")

@i18n!(ctx.1, "Go to your gallery")
})