about summary refs log tree commit diff
path: root/ui-refs.c
blob: 295f5ba5ba8698ed2fe088c01023baf50678d404 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* ui-refs.c: browse symbolic refs
 *
 * Copyright (C) 2006 Lars Hjemli
 *
 * Licensed under GNU General Public License v2
 *   (see COPYING for full license text)
 */

#include "cgit.h"




void cgit_print_refs()
{

	html("<table class='list nowrap'>");

	if (cgit_query_path && !strncmp(cgit_query_path, "heads", 5))
		cgit_print_branches(0);
	else if (cgit_query_path && !strncmp(cgit_query_path, "tags", 4))
		cgit_print_tags(0);
	else {
		cgit_print_branches(0);
		html("<tr class='nohover'><td colspan='4'>&nbsp;</td></tr>");
		cgit_print_tags(0);
	}

	html("</table>");
}
mmit/bin/hilex/c.l?id=9c54e90449677f6ea47dfd5b02d77385f87ade3c&follow=1'>Match function-like macro definitions as IdentifierTagJune McEnroe 2020-12-29Reconfigure C macro start conditionsJune McEnroe 2020-12-29Document HTML class namesJune McEnroe 2020-12-29Rename Tag class to IdentifierTagJune McEnroe 2020-12-29Change HTML class from hi to hilexJune McEnroe You can tell I was just copying the HTML code huh. 2020-12-29Add hilex HTML outputJune McEnroe