|
|
@ -83,7 +83,7 @@ char *cgit_fileurl(const char *reponame, const char *pagename, |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
tmp = fmt("?url=%s/%s/%s", reponame, pagename, |
|
|
|
tmp = fmt("?url=%s/%s/%s", reponame, pagename, |
|
|
|
(filename ? filename : "")); |
|
|
|
(filename ? filename : "")); |
|
|
|
delim = "&"; |
|
|
|
delim = "&"; |
|
|
|
} |
|
|
|
} |
|
|
|
if (query) |
|
|
|
if (query) |
|
|
|
tmp = fmt("%s%s%s", tmp, delim, query); |
|
|
|
tmp = fmt("%s%s%s", tmp, delim, query); |
|
|
@ -146,19 +146,19 @@ static void site_url(const char *page, const char *search, const char *sort, int |
|
|
|
|
|
|
|
|
|
|
|
if (page) { |
|
|
|
if (page) { |
|
|
|
htmlf("?p=%s", page); |
|
|
|
htmlf("?p=%s", page); |
|
|
|
delim = "&"; |
|
|
|
delim = "&"; |
|
|
|
} |
|
|
|
} |
|
|
|
if (search) { |
|
|
|
if (search) { |
|
|
|
html(delim); |
|
|
|
html(delim); |
|
|
|
html("q="); |
|
|
|
html("q="); |
|
|
|
html_attr(search); |
|
|
|
html_attr(search); |
|
|
|
delim = "&"; |
|
|
|
delim = "&"; |
|
|
|
} |
|
|
|
} |
|
|
|
if (sort) { |
|
|
|
if (sort) { |
|
|
|
html(delim); |
|
|
|
html(delim); |
|
|
|
html("s="); |
|
|
|
html("s="); |
|
|
|
html_attr(sort); |
|
|
|
html_attr(sort); |
|
|
|
delim = "&"; |
|
|
|
delim = "&"; |
|
|
|
} |
|
|
|
} |
|
|
|
if (ofs) { |
|
|
|
if (ofs) { |
|
|
|
html(delim); |
|
|
|
html(delim); |
|
|
@ -298,13 +298,13 @@ void cgit_log_link(const char *name, const char *title, const char *class, |
|
|
|
html(delim); |
|
|
|
html(delim); |
|
|
|
html("id="); |
|
|
|
html("id="); |
|
|
|
html_url_arg(rev); |
|
|
|
html_url_arg(rev); |
|
|
|
delim = "&"; |
|
|
|
delim = "&"; |
|
|
|
} |
|
|
|
} |
|
|
|
if (grep && pattern) { |
|
|
|
if (grep && pattern) { |
|
|
|
html(delim); |
|
|
|
html(delim); |
|
|
|
html("qt="); |
|
|
|
html("qt="); |
|
|
|
html_url_arg(grep); |
|
|
|
html_url_arg(grep); |
|
|
|
delim = "&"; |
|
|
|
delim = "&"; |
|
|
|
html(delim); |
|
|
|
html(delim); |
|
|
|
html("q="); |
|
|
|
html("q="); |
|
|
|
html_url_arg(pattern); |
|
|
|
html_url_arg(pattern); |
|
|
@ -313,7 +313,7 @@ void cgit_log_link(const char *name, const char *title, const char *class, |
|
|
|
html(delim); |
|
|
|
html(delim); |
|
|
|
html("ofs="); |
|
|
|
html("ofs="); |
|
|
|
htmlf("%d", ofs); |
|
|
|
htmlf("%d", ofs); |
|
|
|
delim = "&"; |
|
|
|
delim = "&"; |
|
|
|
} |
|
|
|
} |
|
|
|
if (showmsg) { |
|
|
|
if (showmsg) { |
|
|
|
html(delim); |
|
|
|
html(delim); |
|
|
|