╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Issues.zig ───────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
417 .resolve => resolve_tab_label, 418 else => new_tab_label, 419 }; 420 try header.addTab(allocator, label, link, View.viewIndex(.new)); 421 } 422 423 // conflicts tab, labeled with the conflict count 424 if (data.conflicts.count > 0) { 425 const route = ui.RoutablePage.repoIssuesConflictsRoute(data.identity, "") orelse return error.RouteTooLong; 426 const link = try ui.inPageTabLink(session, route, page_selected and selected_index == View.viewIndex(.conflicts)); 427 var label_buf: [64]u8 = undefined; 428 const label = try std.fmt.bufPrint(&label_buf, conflicts_tab_label ++ " ({d})", .{data.conflicts.count}); 429 try header.addTab(allocator, label, link, View.viewIndex(.conflicts)); 430 } 431 432 header.select(View.viewIndex(data.view)); 433 return header; 434 } 435