Fossil SCM

On the /skins page, move the "Custom" skin to the bottom of the list.

drh 2024-02-24 16:31 trunk
Commit 2ac49d32007c3da2b7cbdfbf672f6b980daea085b091feb6b0a545507744c218
1 file changed +8 -8
+8 -8
--- src/skins.c
+++ src/skins.c
@@ -1382,26 +1382,26 @@
13821382
@ higher-priority skin in place.
13831383
@ </p>
13841384
}
13851385
@ <p>The following skins are available for this repository:</p>
13861386
@ <ul>
1387
+ for(i=0; i<count(aBuiltinSkin); i++){
1388
+ if( pAltSkin==&aBuiltinSkin[i] ){
1389
+ @ <li> %h(aBuiltinSkin[i].zDesc) &larr; <i>Currently in use</i>
1390
+ }else{
1391
+ char *zUrl = href("%R/skins?skin=%T", aBuiltinSkin[i].zLabel);
1392
+ @ <li> %z(zUrl)%h(aBuiltinSkin[i].zDesc)</a>
1393
+ }
1394
+ }
13871395
if( skin_exists_custom() ){
13881396
if( pAltSkin==0 && zAltSkinDir==0 && iDraftSkin==0 ){
13891397
@ <li> Custom skin for this repository &larr; <i>Currently in use</i>
13901398
}else{
13911399
@ <li> %z(href("%R/skins?skin=custom"))\
13921400
@ Custom skin for this repository</a>
13931401
}
13941402
}
1395
- for(i=0; i<count(aBuiltinSkin); i++){
1396
- if( pAltSkin==&aBuiltinSkin[i] ){
1397
- @ <li> %h(aBuiltinSkin[i].zDesc) &larr; <i>Currently in use</i>
1398
- }else{
1399
- char *zUrl = href("%R/skins?skin=%T", aBuiltinSkin[i].zLabel);
1400
- @ <li> %z(zUrl)%h(aBuiltinSkin[i].zDesc)</a>
1401
- }
1402
- }
14031403
@ </ul>
14041404
if( iSkinSource<SKIN_FROM_CUSTOM ){
14051405
@ <p>The current skin is selected by
14061406
switch( iSkinSource ){
14071407
case SKIN_FROM_DRAFT:
14081408
--- src/skins.c
+++ src/skins.c
@@ -1382,26 +1382,26 @@
1382 @ higher-priority skin in place.
1383 @ </p>
1384 }
1385 @ <p>The following skins are available for this repository:</p>
1386 @ <ul>
 
 
 
 
 
 
 
 
1387 if( skin_exists_custom() ){
1388 if( pAltSkin==0 && zAltSkinDir==0 && iDraftSkin==0 ){
1389 @ <li> Custom skin for this repository &larr; <i>Currently in use</i>
1390 }else{
1391 @ <li> %z(href("%R/skins?skin=custom"))\
1392 @ Custom skin for this repository</a>
1393 }
1394 }
1395 for(i=0; i<count(aBuiltinSkin); i++){
1396 if( pAltSkin==&aBuiltinSkin[i] ){
1397 @ <li> %h(aBuiltinSkin[i].zDesc) &larr; <i>Currently in use</i>
1398 }else{
1399 char *zUrl = href("%R/skins?skin=%T", aBuiltinSkin[i].zLabel);
1400 @ <li> %z(zUrl)%h(aBuiltinSkin[i].zDesc)</a>
1401 }
1402 }
1403 @ </ul>
1404 if( iSkinSource<SKIN_FROM_CUSTOM ){
1405 @ <p>The current skin is selected by
1406 switch( iSkinSource ){
1407 case SKIN_FROM_DRAFT:
1408
--- src/skins.c
+++ src/skins.c
@@ -1382,26 +1382,26 @@
1382 @ higher-priority skin in place.
1383 @ </p>
1384 }
1385 @ <p>The following skins are available for this repository:</p>
1386 @ <ul>
1387 for(i=0; i<count(aBuiltinSkin); i++){
1388 if( pAltSkin==&aBuiltinSkin[i] ){
1389 @ <li> %h(aBuiltinSkin[i].zDesc) &larr; <i>Currently in use</i>
1390 }else{
1391 char *zUrl = href("%R/skins?skin=%T", aBuiltinSkin[i].zLabel);
1392 @ <li> %z(zUrl)%h(aBuiltinSkin[i].zDesc)</a>
1393 }
1394 }
1395 if( skin_exists_custom() ){
1396 if( pAltSkin==0 && zAltSkinDir==0 && iDraftSkin==0 ){
1397 @ <li> Custom skin for this repository &larr; <i>Currently in use</i>
1398 }else{
1399 @ <li> %z(href("%R/skins?skin=custom"))\
1400 @ Custom skin for this repository</a>
1401 }
1402 }
 
 
 
 
 
 
 
 
1403 @ </ul>
1404 if( iSkinSource<SKIN_FROM_CUSTOM ){
1405 @ <p>The current skin is selected by
1406 switch( iSkinSource ){
1407 case SKIN_FROM_DRAFT:
1408

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button