| 1 | namespace AgentForge.Plugin.View.Components.Layout; |
| 2 | |
| 3 | internal static class ForgeViewHeaderRepositoryPicker |
| 4 | { |
| 5 | public static string Render(ForgeViewPageContext ctx) |
| 6 | { |
| 7 | var options = ctx.RepoNames |
| 8 | .Select(repoName => ForgeHtml.Option( |
| 9 | ForgeViewLinks.RepoViewHref(repoName, ctx.ActiveTab), |
| 10 | repoName, |
| 11 | string.Equals(repoName, ctx.RepoName, StringComparison.OrdinalIgnoreCase))) |
| 12 | .ToArray(); |
| 13 | |
| 14 | return ForgeHtml.SelectNav( |
| 15 | "header-repo-picker", |
| 16 | "header-repo-select", |
| 17 | "Repository", |
| 18 | options); |
| 19 | } |
| 20 | } |
| 21 | |
View only · write via MCP/CIDE