╭ changed ─────────────╮ │src/ui/Repo/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────╮ │76 try ui.widget.addBackButton(allocator, &title_box, session); │ │77 │ │78 // the user's name (local mode has no user pages to link to) │ │79 - if (!session.data.is_local) { │ │79 + if (session.data.host_kind == .server) { │ │80 var text_buf: [evt.User.name_max_len + 1]u8 = undefined; │ │81 const text = try std.fmt.bufPrint(&text_buf, "{s}/", .{data.owner_name}); │ │82 const link = try std.fmt.allocPrint(aa, "a:/user/{s}", .{data.owner_name});│ ╰───────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 94 } │ │ 95 │ │ 96 // local routes carry no identity, so their urls come out elided │ │ 97 - const identity = if (session.data.is_local) "" else try std.fmt.allocPrint(aa, "{s}/{s}", .{ data.owner_name, data.name }); │ │ 97 + const identity = if (session.data.host_kind == .local) "" else try std.fmt.allocPrint(aa, "{s}/{s}", .{ data.owner_name, data.name });│ │ 98 │ │ 99 // title links to the repo's files root (the bare route, so it resolves │ │100 // to the default branch). │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────╮ │293 // auth tab (login / logout). AuthTab defaults to the global ai:/auth │ │294 // link; repoint its instance at this repo's auth route so it stays on│ │295 // this page. local mode has no accounts, so it has no auth tab. │ │296 - if (!session.data.is_local) { │ │296 + if (session.data.host_kind == .server) { │ │297 var auth_tab = try AuthTab.View.init(allocator, session); │ │298 errdefer auth_tab.deinit(allocator); │ │299 auth_tab.text_box.getFocus().kind = .{ .custom = auth_link }; │ ╰───────────────────────────────────────────────────────────────────────────────────╯