1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
|
if( nName<7 ) continue;
zUrl = sqlite3_mprintf("%.*s", nName-7, zName);
if( sqlite3_strglob("*.fossil", zName)!=0 ){
/* The "fossil server DIRECTORY" and "fossil ui DIRECTORY" commands
** do not work for repositories whose names do not end in ".fossil".
** So do not hyperlink those cases. */
@ <li>%h(zName)</li>
} else if( allRepo && sqlite3_strglob("[a-zA-Z]:/?*", zName)!=0 ){
@ <li><a href="%R/%T(zUrl)/home" target="_blank">/%h(zName)</a></li>
}else{
@ <li><a href="%R/%T(zUrl)/home" target="_blank">%h(zName)</a></li>
}
sqlite3_free(zUrl);
}
|
>
>
>
|
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
|
if( nName<7 ) continue;
zUrl = sqlite3_mprintf("%.*s", nName-7, zName);
if( sqlite3_strglob("*.fossil", zName)!=0 ){
/* The "fossil server DIRECTORY" and "fossil ui DIRECTORY" commands
** do not work for repositories whose names do not end in ".fossil".
** So do not hyperlink those cases. */
@ <li>%h(zName)</li>
} else if( sqlite3_strglob("*/.*", zName)==0 ){
/* Do not show hidden repos */
@ <li>%h(zName) (hidden)</li>
} else if( allRepo && sqlite3_strglob("[a-zA-Z]:/?*", zName)!=0 ){
@ <li><a href="%R/%T(zUrl)/home" target="_blank">/%h(zName)</a></li>
}else{
@ <li><a href="%R/%T(zUrl)/home" target="_blank">%h(zName)</a></li>
}
sqlite3_free(zUrl);
}
|