-rw-r--r-- | ui-shared.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui-shared.c b/ui-shared.c index 4408969..a2e0dd2 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -230,32 +230,38 @@ static void reporevlink(char *page, char *name, char *title, char *class, | |||
230 | if (rev && strcmp(rev, ctx.qry.head)) { | 230 | if (rev && strcmp(rev, ctx.qry.head)) { |
231 | html(delim); | 231 | html(delim); |
232 | html("id="); | 232 | html("id="); |
233 | html_attr(rev); | 233 | html_attr(rev); |
234 | } | 234 | } |
235 | html("'>"); | 235 | html("'>"); |
236 | html_txt(name); | 236 | html_txt(name); |
237 | html("</a>"); | 237 | html("</a>"); |
238 | } | 238 | } |
239 | 239 | ||
240 | void cgit_tree_link(char *name, char *title, char *class, char *head, | 240 | void cgit_tree_link(char *name, char *title, char *class, char *head, |
241 | char *rev, char *path) | 241 | char *rev, char *path) |
242 | { | 242 | { |
243 | reporevlink("tree", name, title, class, head, rev, path); | 243 | reporevlink("tree", name, title, class, head, rev, path); |
244 | } | 244 | } |
245 | 245 | ||
246 | void cgit_plain_link(char *name, char *title, char *class, char *head, | ||
247 | char *rev, char *path) | ||
248 | { | ||
249 | reporevlink("plain", name, title, class, head, rev, path); | ||
250 | } | ||
251 | |||
246 | void cgit_log_link(char *name, char *title, char *class, char *head, | 252 | void cgit_log_link(char *name, char *title, char *class, char *head, |
247 | char *rev, char *path, int ofs, char *grep, char *pattern) | 253 | char *rev, char *path, int ofs, char *grep, char *pattern) |
248 | { | 254 | { |
249 | char *delim; | 255 | char *delim; |
250 | 256 | ||
251 | delim = repolink(title, class, "log", head, path); | 257 | delim = repolink(title, class, "log", head, path); |
252 | if (rev && strcmp(rev, ctx.qry.head)) { | 258 | if (rev && strcmp(rev, ctx.qry.head)) { |
253 | html(delim); | 259 | html(delim); |
254 | html("id="); | 260 | html("id="); |
255 | html_attr(rev); | 261 | html_attr(rev); |
256 | delim = "&"; | 262 | delim = "&"; |
257 | } | 263 | } |
258 | if (grep && pattern) { | 264 | if (grep && pattern) { |
259 | html(delim); | 265 | html(delim); |
260 | html("qt="); | 266 | html("qt="); |
261 | html_attr(grep); | 267 | html_attr(grep); |