2019-04-17 20:09:07 +00:00
@use plume_models::users::User;
@use validator::ValidationErrors;
2020-01-21 06:02:03 +00:00
@use crate::templates::remote_interact_base;
@use crate::template_utils::*;
@use crate::routes::RemoteForm;
@use crate::routes::session::LoginForm;
2019-04-17 20:09:07 +00:00
@(ctx: BaseContext, user: User, login_form: LoginForm, login_errs: ValidationErrors, remote_form: RemoteForm, remote_errs: ValidationErrors)
2019-04-26 17:31:43 +00:00
@:remote_interact_base(ctx, i18n!(ctx.1, "Follow {}"; user.name()), i18n!(ctx.1, "Log in to follow"), i18n!(ctx.1, "Enter your full username handle to follow"), {
2019-04-17 20:09:07 +00:00
< h1 > @i18n!(ctx.1, "Follow {}"; user.name())< / h1 >
@avatar(ctx.0, & user, Size::Medium, false, ctx.1)
< small > @@@user.fqn< / small >
}, login_form, login_errs, remote_form, remote_errs)