2018-12-06 17:54:16 +00:00
@use templates::{base, users::header};
@use template_utils::*;
@use plume_models::users::User;
2018-12-07 11:05:01 +00:00
@use routes::*;
2018-12-06 17:54:16 +00:00
@(ctx: BaseContext, user: User, follows: bool, is_remote: bool, remote_url: String, followers: Vec< User > , page: i32, n_pages: i32)
@:base(ctx, & i18n!(ctx.1, "{0}'s followers"; user.name(ctx.0)), {}, {}, {
@:header(ctx, & user, follows, is_remote, remote_url)
@tabs(& [
2018-12-07 11:05:01 +00:00
(& uri!(user::details: name= user.get_fqn(ctx.0)).to_string(), i18n!(ctx.1, "Articles"), false),
(& uri!(user::followers: name = user.get_fqn(ctx.0)).to_string(), i18n!(ctx.1, "Followers"), true)
2018-12-06 17:54:16 +00:00
])
< div class = "cards" >
@for follower in followers {
< div class = "card" >
2018-12-07 11:05:01 +00:00
< h3 > < a href = "@uri!(user::details: name = follower.get_fqn(ctx.0))" > @follower.name(ctx.0)< / a > < small > @format!("@{}", follower.get_fqn(ctx.0))< / small > < / h3 >
2018-12-06 17:54:16 +00:00
< main > < p > @Html(follower.summary)< / p > < / main >
< / div >
}
< / div >
@paginate(ctx.1, page, n_pages)
})