╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Issues.zig ───────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
741 // href is only followed with js off. 742 fn issueRowLink(page_arena: *std.heap.ArenaAllocator, identity: []const u8, id: []const u8) ![]const u8 { 743 const route = ui.RoutablePage.repoIssuesRoute(identity, "", id) orelse return error.RouteTooLong; 744 const url = try route.urlAlloc(page_arena); 745 return std.fmt.allocPrint(page_arena.allocator(), "ai:{s}", .{url}); 746 } 747 748 // the "a:" link to the issues list filtered to `tag` (raw; encoded here). 749 fn tagLink(page_arena: *std.heap.ArenaAllocator, identity: []const u8, tag: []const u8) ![]const u8 { 750 const encoded = try ui.urlEncodeRef(page_arena.allocator(), tag); 751 const route = ui.RoutablePage.repoIssuesRoute(identity, encoded, "") orelse return error.RouteTooLong; 752 const url = try route.urlAlloc(page_arena); 753 return std.fmt.allocPrint(page_arena.allocator(), "a:{s}", .{url}); 754 } 755