Unidiff1 files changed, 1 insertions, 3 deletions
|
diff --git a/ui-refs.c b/ui-refs.c index ba513c1..e2a16f4 100644 --- a/ ui-refs.c+++ b/ ui-refs.c |
|
@@ -1,30 +1,28 @@ |
1 | /* ui-refs.c: browse symbolic refs |
1 | /* ui-refs.c: browse symbolic refs |
2 | * |
2 | * |
3 | * Copyright (C) 2006 Lars Hjemli |
3 | * Copyright (C) 2006 Lars Hjemli |
4 | * |
4 | * |
5 | * Licensed under GNU General Public License v2 |
5 | * Licensed under GNU General Public License v2 |
6 | * (see COPYING for full license text) |
6 | * (see COPYING for full license text) |
7 | */ |
7 | */ |
8 | |
8 | |
9 | #include "cgit.h" |
9 | #include "cgit.h" |
10 | |
10 | #include "html.h" |
11 | |
| |
12 | |
| |
13 | |
11 | |
14 | void cgit_print_refs() |
12 | void cgit_print_refs() |
15 | { |
13 | { |
16 | |
14 | |
17 | html("<table class='list nowrap'>"); |
15 | html("<table class='list nowrap'>"); |
18 | |
16 | |
19 | if (ctx.qry.path && !strncmp(ctx.qry.path, "heads", 5)) |
17 | if (ctx.qry.path && !strncmp(ctx.qry.path, "heads", 5)) |
20 | cgit_print_branches(0); |
18 | cgit_print_branches(0); |
21 | else if (ctx.qry.path && !strncmp(ctx.qry.path, "tags", 4)) |
19 | else if (ctx.qry.path && !strncmp(ctx.qry.path, "tags", 4)) |
22 | cgit_print_tags(0); |
20 | cgit_print_tags(0); |
23 | else { |
21 | else { |
24 | cgit_print_branches(0); |
22 | cgit_print_branches(0); |
25 | html("<tr class='nohover'><td colspan='4'> </td></tr>"); |
23 | html("<tr class='nohover'><td colspan='4'> </td></tr>"); |
26 | cgit_print_tags(0); |
24 | cgit_print_tags(0); |
27 | } |
25 | } |
28 | |
26 | |
29 | html("</table>"); |
27 | html("</table>"); |
30 | } |
28 | } |
|