Forge
csharp3407750f
1using AgentForge.Data.Entities;
2using AgentForge.Models;
3
4namespace AgentForge.Plugin.View.Components.Iop;
5
6internal static class ForgeViewIopIssueHeader
7{
8 internal static string Render(string repoName, ForgeIssueEntity issue) =>
9 ForgeHtml.Fragment(
10 ForgeHtml.P("iop-meta",
11 ForgeHtml.A(
12 $"/view/repos/{ForgeRepoNames.ToUrlPath(repoName)}/issues/{issue.Number}",
13 $"#{issue.Number}"),
14 ForgeHtml.Text(" "),
15 ForgeHtml.Text(issue.Title)),
16 ForgeHtml.P("iop-meta", ForgeHtml.Em(issue.Status.ToSlug())),
17 string.IsNullOrWhiteSpace(issue.CreatedBy)
18 ? ""
19 : ForgeHtml.P("iop-meta",
20 ForgeHtml.Text("opened by "),
21 ForgeHtml.Strong(issue.CreatedBy)));
22}
23
View only · write via MCP/CIDE