╭ changed ─────────────╮ │src/ui/Repo/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────╮ │53 │ │54 const aa = session.page_arena.allocator(); │ │55 │ │56 - // the user's name │ │57 - { │ │56 + // the user's name (local mode has no user pages to link to) │ │57 + if (session.local == null) { │ │58 const text = try std.fmt.allocPrint(aa, "{s}/", .{data.owner_name}); │ │59 const link = try std.fmt.allocPrint(aa, "a:/user/{s}", .{data.owner_name});│ │60 │ ╰───────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────╮ │221 } │ │222 │ │223 // auth tab (login / logout). AuthTab defaults to the global ai:/auth │ │224 - // link; repoint its instance at this repo's auth route so it stays local.│ │225 - { │ │224 + // link; repoint its instance at this repo's auth route so it stays on │ │225 + // this page. local mode has no accounts, so it has no auth tab. │ │226 + if (session.local == null) { │ │227 var auth_tab = try AuthTab.View.init(allocator, session); │ │228 errdefer auth_tab.deinit(allocator); │ │229 auth_tab.text_box.getFocus().kind = .{ .custom = auth_link }; │ ╰───────────────────────────────────────────────────────────────────────────────────────╯