Fork of patx/hglab.
tokenmess/hglab
change ux for comments on issues and PRs
Commit 13d2be7a8984 · Harrison Erd · 2026-05-04 01:12 -0400
Comments
No comments yet.
Diff
diff --git a/templates/issue_detail.tpl b/templates/issue_detail.tpl
--- a/templates/issue_detail.tpl
+++ b/templates/issue_detail.tpl
@@ -4,9 +4,9 @@
<div>
% include("repo_fork_eyebrow.tpl")
<h1><a href="/{{repo['owner_username']}}">{{repo["owner_username"]}}</a>/{{repo["name"]}}</h1>
-
+
% include("repo_nav.tpl", repo=repo, commit_count=commit_count, issue_counts=issue_counts, pr_counts=pr_counts, star_count=star_count, is_starred=is_starred, is_owner=is_owner, can_maintain=can_maintain)
-
+
</div>
</section>
@@ -29,7 +29,7 @@
% end
</div>
% if issue["body"]:
- <pre class="readme">{{issue["body"]}}</pre>
+ <span>{{issue["body"]}}</span>
% else:
<p class="empty">No description.</p>
% end
@@ -41,8 +41,7 @@
<div class="comment-list">
% for comment in comments:
<article class="comment">
- <p class="muted">{{comment["author_username"]}} commented on {{comment["created_at"]}}</p>
- <pre class="readme">{{!render_markdown_links(comment["body"])}}</pre>
+ <p><strong><a href="/{{comment["author_username"]}}">@{{comment["author_username"]}}</a>:</strong> {{!render_markdown_links(comment["body"])}} <small class="muted">{{comment["created_at"]}}</small></p>
</article>
% end
</div>
@@ -63,3 +62,4 @@
<p><a href="/login?next=/{{repo['owner_username']}}/{{repo['name']}}/issues/{{issue['number']}}">Log in to comment</a></p>
% end
</section>
+
diff --git a/templates/pull_request_detail.tpl b/templates/pull_request_detail.tpl
--- a/templates/pull_request_detail.tpl
+++ b/templates/pull_request_detail.tpl
@@ -46,8 +46,7 @@
<div class="comment-list">
% for comment in comments:
<article class="comment">
- <p class="muted">{{comment["author_username"]}} commented on {{comment["created_at"]}}</p>
- <pre class="readme">{{!render_markdown_links(comment["body"])}}</pre>
+ <p><strong><a href="/{{comment["author_username"]}}">@{{comment["author_username"]}}</a>:</strong> {{!render_markdown_links(comment["body"])}} <small class="muted">{{comment["created_at"]}}</small></p>
</article>
% end
</div>