summaryrefslogtreecommitdiff
path: root/ui_70-shared.c
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2018-07-28 17:02:07 +0100
committerKatolaZ <katolaz@freaknet.org>2018-07-28 17:02:07 +0100
commit58fcffcc0813233a1f3ed798bf8a4ff83cfb89fb (patch)
tree8d774f920e9019a65e03fa41ac03c5582da1f406 /ui_70-shared.c
parent5870098c4b45c7dace76eadb93a49d0317edb456 (diff)
log added (still incomplete)
Diffstat (limited to 'ui_70-shared.c')
-rw-r--r--ui_70-shared.c28
1 files changed, 17 insertions, 11 deletions
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("<a href='");
- html_attr(ctx.repo->homepage);
- html("'>homepage</a>");
+ /* 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("</div>");
- }
+ }*/
}
void cgit_print_filemode(unsigned short mode)