From 7645fdbf35ed5a53521fe4af60203eae66354134 Mon Sep 17 00:00:00 2001 From: Baptiste Gelez Date: Sat, 6 Apr 2019 19:03:00 +0100 Subject: [PATCH] Fix tabs on user page (#516) The "Articles" tab was always selected. --- templates/users/followed.rs.html | 4 ++-- templates/users/followers.rs.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/users/followed.rs.html b/templates/users/followed.rs.html index 9dbc536b..ce4e1146 100644 --- a/templates/users/followed.rs.html +++ b/templates/users/followed.rs.html @@ -9,9 +9,9 @@ @:header(ctx, &user, follows, is_remote, remote_url) @tabs(&[ - (&uri!(user::details: name = &user.fqn).to_string(), i18n!(ctx.1, "Articles"), true), + (&uri!(user::details: name = &user.fqn).to_string(), i18n!(ctx.1, "Articles"), false), (&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) + (&uri!(user::followed: name = &user.fqn, page = _).to_string(), i18n!(ctx.1, "Subscriptions"), true) ])
diff --git a/templates/users/followers.rs.html b/templates/users/followers.rs.html index 744adf02..762c85bc 100644 --- a/templates/users/followers.rs.html +++ b/templates/users/followers.rs.html @@ -9,8 +9,8 @@ @:header(ctx, &user, follows, is_remote, remote_url) @tabs(&[ - (&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::details: name = &user.fqn).to_string(), i18n!(ctx.1, "Articles"), false), + (&uri!(user::followers: name = &user.fqn, page = _).to_string(), i18n!(ctx.1, "Subscribers"), true), (&uri!(user::followed: name = &user.fqn, page = _).to_string(), i18n!(ctx.1, "Subscriptions"), false) ])