@ -203,7 +203,7 @@ int sort_repolist(char *field)
void cgit_print_repolist ( )
{
int i , columns = 4 , hits = 0 , header = 0 ;
char * last_ group = NULL ;
char * last_ section = NULL ;
int sorted = 0 ;
if ( ctx . cfg . enable_index_links )
@ -233,18 +233,18 @@ void cgit_print_repolist()
if ( ! header + + )
print_header ( columns ) ;
if ( ! sorted & &
( ( last_ group = = NULL & & ctx . repo - > group ! = NULL ) | |
( last_ group ! = NULL & & ctx . repo - > group = = NULL ) | |
( last_ group ! = NULL & & ctx . repo - > group ! = NULL & &
strcmp ( ctx . repo - > group, last_group ) ) ) ) {
htmlf ( " <tr class='nohover'><td colspan='%d' class='repo group '>" ,
( ( last_ section = = NULL & & ctx . repo - > section ! = NULL ) | |
( last_ section ! = NULL & & ctx . repo - > section = = NULL ) | |
( last_ section ! = NULL & & ctx . repo - > section ! = NULL & &
strcmp ( ctx . repo - > section, last_section ) ) ) ) {
htmlf ( " <tr class='nohover'><td colspan='%d' class='repo section '>" ,
columns ) ;
html_txt ( ctx . repo - > group ) ;
html_txt ( ctx . repo - > section ) ;
html ( " </td></tr> " ) ;
last_ group = ctx . repo - > group ;
last_ section = ctx . repo - > section ;
}
htmlf ( " <tr><td class='%s'> " ,
! sorted & & ctx . repo - > group ? " sublevel-repo " : " toplevel-repo " ) ;
! sorted & & ctx . repo - > section ? " sublevel-repo " : " toplevel-repo " ) ;
cgit_summary_link ( ctx . repo - > name , ctx . repo - > name , NULL , NULL ) ;
html ( " </td><td> " ) ;
html_link_open ( cgit_repourl ( ctx . repo - > url ) , NULL , NULL ) ;