List for cgit developers and users
 help / color / Atom feed
* [PATCH] ui-commit: show subject in page title
@ 2020-02-21 23:45 june
  2020-02-23 13:00 ` Jason
  0 siblings, 1 reply; 2+ messages in thread
From: june @ 2020-02-21 23:45 UTC (permalink / raw)


---
Unclear whether this project actually accepts patches, but I figure I'd
share it with the other list subscribers :)

 ui-commit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui-commit.c b/ui-commit.c
index 9a47b54..ac3ca01 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -43,6 +43,7 @@ void cgit_print_commit(char *hex, const char *prefix)
 
 	load_ref_decorations(NULL, DECORATE_FULL_REFS);
 
+	ctx.page.title = fmtalloc("%s - %s", info->subject, ctx.page.title);
 	cgit_print_layout_start();
 	cgit_print_diff_ctrls();
 	html("<table summary='commit info' class='commit-info'>\n");
-- 
2.25.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] ui-commit: show subject in page title
  2020-02-21 23:45 [PATCH] ui-commit: show subject in page title june
@ 2020-02-23 13:00 ` Jason
  0 siblings, 0 replies; 2+ messages in thread
From: Jason @ 2020-02-23 13:00 UTC (permalink / raw)


Thanks. Can you resubmit this with your Signed-off-by: line?


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-21 23:45 [PATCH] ui-commit: show subject in page title june
2020-02-23 13:00 ` Jason

List for cgit developers and users

Archives are clonable: git clone --mirror http://inbox.vuxu.org/cgit

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.cgit


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git