Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Remove a debugging printf() accidently left in the previous check-in. Also remove an unused variable. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
00dad9a2f297228bccd3ae038a3ed1ca |
| User & Date: | drh 2024-02-23 23:31:49.243 |
Context
|
2024-02-23
| ||
| 23:51 | Include the new default-skin setting in CONFIGSET_SKIN. check-in: 818a6ad79a user: drh tags: trunk | |
| 23:31 | Remove a debugging printf() accidently left in the previous check-in. Also remove an unused variable. check-in: 00dad9a2f2 user: drh tags: trunk | |
| 23:29 | Show the custom skin as an option on the /skins page, if it exists. check-in: b828d8fd59 user: drh tags: trunk | |
Changes
Changes to src/skins.c.
| ︙ | ︙ | |||
1350 1351 1352 1353 1354 1355 1356 |
** Show a list of all of the built-in skins, plus the responsitory skin,
** and provide the user with an opportunity to change to any of them.
*/
void skins_page(void){
int i;
char *zBase = fossil_strdup(g.zTop);
size_t nBase = strlen(zBase);
| < | 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 |
** Show a list of all of the built-in skins, plus the responsitory skin,
** and provide the user with an opportunity to change to any of them.
*/
void skins_page(void){
int i;
char *zBase = fossil_strdup(g.zTop);
size_t nBase = strlen(zBase);
login_check_credentials();
if( iDraftSkin && sqlite3_strglob("*/draft?", zBase)==0 ){
nBase -= 7;
zBase[nBase] = 0;
}else if( pAltSkin ){
char *zPattern = mprintf("*/skn_%s", pAltSkin->zLabel);
if( sqlite3_strglob(zPattern, zBase)==0 ){
|
| ︙ | ︙ | |||
1422 1423 1424 1425 1426 1427 1428 |
@ "%z(href("%R/fdscookie"))fossil_display_settings</a>" cookie.
break;
case SKIN_FROM_SETTING:
@ the "default-skin" setting on the repository.
break;
}
}
| < | 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 |
@ "%z(href("%R/fdscookie"))fossil_display_settings</a>" cookie.
break;
case SKIN_FROM_SETTING:
@ the "default-skin" setting on the repository.
break;
}
}
if( iSkinSource==SKIN_FROM_COOKIE || iSkinSource==SKIN_FROM_QPARAM ){
@ <ul>
@ <li> %z(href("%R/skins?skin="))<i>Let Fossil choose \
@ which skin to use</i></a>
@ </ul>
}
style_finish_page();
|
| ︙ | ︙ |