From 58fcffcc0813233a1f3ed798bf8a4ff83cfb89fb Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Sat, 28 Jul 2018 17:02:07 +0100 Subject: log added (still incomplete) --- ui_70-shared.c | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'ui_70-shared.c') diff --git a/ui_70-shared.c b/ui_70-shared.c index b5a6fa8..a0a9139 100644 --- a/ui_70-shared.c +++ b/ui_70-shared.c @@ -483,10 +483,18 @@ void cgit_summary_link(const char *name, const char *title, const char *class, const char *head) { + reporevlink(NULL, name, title, class, head, NULL, NULL); +} + + +void cgit_gopher_summary_link(const char *name, const char *title, const char *class, + const char *head) +{ + cgit_gopher_start_selector(GOPHER_MENU); cgit_gopher_text(name); cgit_gopher_tab(); - reporevlink(NULL, name, title, class, head, NULL, NULL); + cgit_summary_link(name, title, class, head); cgit_gopher_end_selector(); } @@ -613,11 +621,11 @@ void cgit_commit_link(const char *name, const char *title, const char *class, cgit_gopher_text(delim); cgit_gopher_text("follow=1"); } - if (name[0] != '\0') { +/* if (name[0] != '\0') { cgit_gopher_text(name); } else cgit_gopher_text("(no commit message)"); - cgit_gopher_tab(); +*/ cgit_gopher_tab(); } @@ -886,7 +894,7 @@ void cgit_print_age(time_t t, int tz, time_t max_relative) if (!t) return; - cgit_gopher_text_pad(show_date(t, tz, cgit_date_mode(DATE_ISO8601)), GOPHER_SUMMARY_DATE_LEN); + cgit_gopher_text_pad(show_date(t, tz, cgit_date_mode(DATE_ISO8601)), GOPHER_SUMMARY_DATE_LEN + 1); return; } @@ -1141,7 +1149,7 @@ static void print_header(void) { if (ctx.repo) { cgit_index_link("index", NULL, NULL, NULL, NULL, 0, 1); - cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL); + cgit_gopher_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL); } else cgit_gopher_info(ctx.cfg.root_title); if (ctx.repo) { @@ -1164,7 +1172,7 @@ void cgit_print_pageheader(void) reporevlink("about", "about", NULL, hc("about"), ctx.qry.head, NULL, NULL); - cgit_summary_link("summary", NULL, hc("summary"), + cgit_gopher_summary_link("summary", NULL, hc("summary"), ctx.qry.head); cgit_gopher_refs_link("refs", NULL, hc("refs"), ctx.qry.head, ctx.qry.sha1, NULL); @@ -1185,11 +1193,9 @@ void cgit_print_pageheader(void) cgit_stats_link("stats", NULL, hc("stats"), ctx.qry.head, ctx.qry.vpath); if (ctx.repo->homepage) { - html("homepage"); + /* cgit_gopher_menu("homepage", * ctx.repo->homepage);*/ } - } else { + } /*else { char *currenturl = cgit_currenturl(); site_link(NULL, "index", NULL, hc("repolist"), NULL, NULL, 0, 1); if (ctx.cfg.root_readme) @@ -1219,7 +1225,7 @@ void cgit_print_pageheader(void) html(")"); } html(""); - } + }*/ } void cgit_print_filemode(unsigned short mode) -- cgit v1.2.3