Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | The "fossil all ui" command still does not work for repos that do not end in ".fossil", but it at least does not hyperlink them any more. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
805122df65c582a04bb880fe6131831c |
| User & Date: | drh 2017-01-06 13:09:18.609 |
Context
|
2017-01-06
| ||
| 15:28 | Upgrade dirent.h to version 1.22. Minor spacing changes. ... (check-in: b66b99cde9 user: jan.nijtmans tags: trunk) | |
| 13:09 | The "fossil all ui" command still does not work for repos that do not end in ".fossil", but it at least does not hyperlink them any more. ... (check-in: 805122df65 user: drh tags: trunk) | |
| 04:09 | Fix user's email being swapped with name in git export committer record. ... (check-in: 76d9a4555b user: ashepilko tags: trunk) | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
1256 1257 1258 1259 1260 1261 1262 |
@ </head>
@ <body>
n = db_int(0, "SELECT count(*) FROM sfile");
if( n>0 ){
Stmt q;
@ <h1>Available Repositories:</h1>
@ <ol>
| | > | > > > > > > > | | | > | 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 |
@ </head>
@ <body>
n = db_int(0, "SELECT count(*) FROM sfile");
if( n>0 ){
Stmt q;
@ <h1>Available Repositories:</h1>
@ <ol>
db_prepare(&q, "SELECT pathname"
" FROM sfile ORDER BY pathname COLLATE nocase;");
while( db_step(&q)==SQLITE_ROW ){
const char *zName = db_column_text(&q, 0);
int nName = (int)strlen(zName);
char *zUrl;
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);
}
@ </ol>
}else{
@ <h1>No Repositories Found</h1>
}
@ </body>
@ </html>
|
| ︙ | ︙ |