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