Fossil SCM

css for hyperlinks disabled

wolfgang 2010-09-08 20:25 wolfgangFormat2CSS
Commit 0e394b8fa2ab71d64721dcf35c301fe38a409d7a
+3 -3
--- src/branch.c
+++ src/branch.c
@@ -231,16 +231,16 @@
231231
}
232232
login_anonymous_available();
233233
compute_leaves(0, 1);
234234
style_sidebox_begin("Nomenclature:", "33%");
235235
@ <ol>
236
- @ <li> An <a href="brlist">open branch</a> is a branch that has one or
236
+ @ <li> An <div class="sideboxDescribed"><a href="brlist">open branch</a></div> is a branch that has one or
237237
@ more <a href="leaves">open leaves.</a>
238238
@ The presence of open leaves presumably means
239239
@ that the branch is still being extended with new check-ins.</li>
240
- @ <li> A <a href="brlist?closed">closed branch</a> is a branch with only
241
- @ <a href="leaves?closed">closed leaves</a>.
240
+ @ <li> A <div class="sideboxDescribed"><a href="brlist?closed">closed branch</a></div> is a branch with only
241
+ @ <div class="sideboxDescribed"><a href="leaves?closed">closed leaves</a></div>.
242242
@ Closed branches are fixed and do not change (unless they are first
243243
@ reopened)</li>
244244
@ </ol>
245245
style_sidebox_end();
246246
247247
--- src/branch.c
+++ src/branch.c
@@ -231,16 +231,16 @@
231 }
232 login_anonymous_available();
233 compute_leaves(0, 1);
234 style_sidebox_begin("Nomenclature:", "33%");
235 @ <ol>
236 @ <li> An <a href="brlist">open branch</a> is a branch that has one or
237 @ more <a href="leaves">open leaves.</a>
238 @ The presence of open leaves presumably means
239 @ that the branch is still being extended with new check-ins.</li>
240 @ <li> A <a href="brlist?closed">closed branch</a> is a branch with only
241 @ <a href="leaves?closed">closed leaves</a>.
242 @ Closed branches are fixed and do not change (unless they are first
243 @ reopened)</li>
244 @ </ol>
245 style_sidebox_end();
246
247
--- src/branch.c
+++ src/branch.c
@@ -231,16 +231,16 @@
231 }
232 login_anonymous_available();
233 compute_leaves(0, 1);
234 style_sidebox_begin("Nomenclature:", "33%");
235 @ <ol>
236 @ <li> An <div class="sideboxDescribed"><a href="brlist">open branch</a></div> is a branch that has one or
237 @ more <a href="leaves">open leaves.</a>
238 @ The presence of open leaves presumably means
239 @ that the branch is still being extended with new check-ins.</li>
240 @ <li> A <div class="sideboxDescribed"><a href="brlist?closed">closed branch</a></div> is a branch with only
241 @ <div class="sideboxDescribed"><a href="leaves?closed">closed leaves</a></div>.
242 @ Closed branches are fixed and do not change (unless they are first
243 @ reopened)</li>
244 @ </ol>
245 style_sidebox_end();
246
247
--- src/descendants.c
+++ src/descendants.c
@@ -318,14 +318,14 @@
318318
style_header("Leaves");
319319
login_anonymous_available();
320320
compute_leaves(0, showAll ? 0 : showClosed ? 2 : 1);
321321
style_sidebox_begin("Nomenclature:", "33%");
322322
@ <ol>
323
- @ <li> A <b>leaf</b> is a check-in with no descendants.</li>
324
- @ <li> An <b>open leaf</b> is a leaf that does not have a "closed" tag
323
+ @ <li> A <div class="sideboxDescribed">leaf</div> is a check-in with no descendants.</li>
324
+ @ <li> An <div class="sideboxDescribed">open leaf</div> is a leaf that does not have a "closed" tag
325325
@ and is thus assumed to still be in use.</li>
326
- @ <li> A <b>closed leaf</b> has a "closed" tag and is thus assumed to
326
+ @ <li> A <div class="sideboxDescribed">closed leaf</div> has a "closed" tag and is thus assumed to
327327
@ be historical and no longer in active use.</li>
328328
@ </ol>
329329
style_sidebox_end();
330330
331331
if( showAll ){
332332
--- src/descendants.c
+++ src/descendants.c
@@ -318,14 +318,14 @@
318 style_header("Leaves");
319 login_anonymous_available();
320 compute_leaves(0, showAll ? 0 : showClosed ? 2 : 1);
321 style_sidebox_begin("Nomenclature:", "33%");
322 @ <ol>
323 @ <li> A <b>leaf</b> is a check-in with no descendants.</li>
324 @ <li> An <b>open leaf</b> is a leaf that does not have a "closed" tag
325 @ and is thus assumed to still be in use.</li>
326 @ <li> A <b>closed leaf</b> has a "closed" tag and is thus assumed to
327 @ be historical and no longer in active use.</li>
328 @ </ol>
329 style_sidebox_end();
330
331 if( showAll ){
332
--- src/descendants.c
+++ src/descendants.c
@@ -318,14 +318,14 @@
318 style_header("Leaves");
319 login_anonymous_available();
320 compute_leaves(0, showAll ? 0 : showClosed ? 2 : 1);
321 style_sidebox_begin("Nomenclature:", "33%");
322 @ <ol>
323 @ <li> A <div class="sideboxDescribed">leaf</div> is a check-in with no descendants.</li>
324 @ <li> An <div class="sideboxDescribed">open leaf</div> is a leaf that does not have a "closed" tag
325 @ and is thus assumed to still be in use.</li>
326 @ <li> A <div class="sideboxDescribed">closed leaf</div> has a "closed" tag and is thus assumed to
327 @ be historical and no longer in active use.</li>
328 @ </ol>
329 style_sidebox_end();
330
331 if( showAll ){
332
+1 -1
--- src/login.c
+++ src/login.c
@@ -596,11 +596,11 @@
596596
if( !g.okHistory &&
597597
db_exists("SELECT 1 FROM user"
598598
" WHERE login='anonymous'"
599599
" AND cap LIKE '%%h%%'") ){
600600
const char *zUrl = PD("REQUEST_URI", "index");
601
- @ <p>Many <font color="red">hyperlinks are disabled.</font><br />
601
+ @ <p>Many <span class="disabled">hyperlinks are disabled.</span><br />
602602
@ Use <a href="%s(g.zTop)/login?anon=1&g=%T(zUrl)">anonymous login</a>
603603
@ to enable hyperlinks.</p>
604604
}
605605
}
606606
607607
--- src/login.c
+++ src/login.c
@@ -596,11 +596,11 @@
596 if( !g.okHistory &&
597 db_exists("SELECT 1 FROM user"
598 " WHERE login='anonymous'"
599 " AND cap LIKE '%%h%%'") ){
600 const char *zUrl = PD("REQUEST_URI", "index");
601 @ <p>Many <font color="red">hyperlinks are disabled.</font><br />
602 @ Use <a href="%s(g.zTop)/login?anon=1&g=%T(zUrl)">anonymous login</a>
603 @ to enable hyperlinks.</p>
604 }
605 }
606
607
--- src/login.c
+++ src/login.c
@@ -596,11 +596,11 @@
596 if( !g.okHistory &&
597 db_exists("SELECT 1 FROM user"
598 " WHERE login='anonymous'"
599 " AND cap LIKE '%%h%%'") ){
600 const char *zUrl = PD("REQUEST_URI", "index");
601 @ <p>Many <span class="disabled">hyperlinks are disabled.</span><br />
602 @ Use <a href="%s(g.zTop)/login?anon=1&g=%T(zUrl)">anonymous login</a>
603 @ to enable hyperlinks.</p>
604 }
605 }
606
607
--- src/setup.c
+++ src/setup.c
@@ -912,10 +912,12 @@
912912
@ <blockquote><pre>
913913
@ %h(zDefaultCSS)
914914
@ %h(zTableLabelValueCSS)
915915
@ %h(zDivSidebox)
916916
@ %h(zDivSideboxTitle)
917
+ @ %h(zDivSideboxDescribed)
918
+ @ %h(zSpanDisabled)
917919
@ </pre></blockquote>
918920
style_footer();
919921
db_end_transaction(0);
920922
}
921923
922924
--- src/setup.c
+++ src/setup.c
@@ -912,10 +912,12 @@
912 @ <blockquote><pre>
913 @ %h(zDefaultCSS)
914 @ %h(zTableLabelValueCSS)
915 @ %h(zDivSidebox)
916 @ %h(zDivSideboxTitle)
 
 
917 @ </pre></blockquote>
918 style_footer();
919 db_end_transaction(0);
920 }
921
922
--- src/setup.c
+++ src/setup.c
@@ -912,10 +912,12 @@
912 @ <blockquote><pre>
913 @ %h(zDefaultCSS)
914 @ %h(zTableLabelValueCSS)
915 @ %h(zDivSidebox)
916 @ %h(zDivSideboxTitle)
917 @ %h(zDivSideboxDescribed)
918 @ %h(zSpanDisabled)
919 @ </pre></blockquote>
920 style_footer();
921 db_end_transaction(0);
922 }
923
924
+15
--- src/style.c
+++ src/style.c
@@ -399,10 +399,23 @@
399399
@ div.sideboxTitle {
400400
@ display: inline;
401401
@ font-weight: bold;
402402
@ }
403403
;
404
+const char zDivSideboxDescribed[] =
405
+@ /* The defined element in sideboxes for branches,.. */
406
+@ div.sideboxDescribed {
407
+@ display: inline;
408
+@ font-weight: bold;
409
+@ }
410
+;
411
+const char zSpanDisabled[] =
412
+@ /* The defined element in sideboxes for branches,.. */
413
+@ span.disabled {
414
+@ color: red;
415
+@ }
416
+;
404417
405418
/*
406419
** WEBPAGE: style.css
407420
*/
408421
void page_style_css(void){
@@ -415,10 +428,12 @@
415428
cgi_append_content(zCSS, -1);
416429
/* add special missing definitions */
417430
if (!strstr("table.label-value",zCSS)) cgi_append_content(zTableLabelValueCSS, -1);
418431
if (!strstr("div.sidebox",zCSS)) cgi_append_content(zDivSidebox, -1);
419432
if (!strstr("div.sideboxTitle",zCSS)) cgi_append_content(zDivSideboxTitle, -1);
433
+ if (!strstr("div.sideboxDescribed",zCSS)) cgi_append_content(zDivSideboxDescribed, -1);
434
+ if (!strstr("span.disabled",zCSS)) cgi_append_content(zSpanDisabled, -1);
420435
g.isConst = 1;
421436
}
422437
423438
/*
424439
** WEBPAGE: test_env
425440
--- src/style.c
+++ src/style.c
@@ -399,10 +399,23 @@
399 @ div.sideboxTitle {
400 @ display: inline;
401 @ font-weight: bold;
402 @ }
403 ;
 
 
 
 
 
 
 
 
 
 
 
 
 
404
405 /*
406 ** WEBPAGE: style.css
407 */
408 void page_style_css(void){
@@ -415,10 +428,12 @@
415 cgi_append_content(zCSS, -1);
416 /* add special missing definitions */
417 if (!strstr("table.label-value",zCSS)) cgi_append_content(zTableLabelValueCSS, -1);
418 if (!strstr("div.sidebox",zCSS)) cgi_append_content(zDivSidebox, -1);
419 if (!strstr("div.sideboxTitle",zCSS)) cgi_append_content(zDivSideboxTitle, -1);
 
 
420 g.isConst = 1;
421 }
422
423 /*
424 ** WEBPAGE: test_env
425
--- src/style.c
+++ src/style.c
@@ -399,10 +399,23 @@
399 @ div.sideboxTitle {
400 @ display: inline;
401 @ font-weight: bold;
402 @ }
403 ;
404 const char zDivSideboxDescribed[] =
405 @ /* The defined element in sideboxes for branches,.. */
406 @ div.sideboxDescribed {
407 @ display: inline;
408 @ font-weight: bold;
409 @ }
410 ;
411 const char zSpanDisabled[] =
412 @ /* The defined element in sideboxes for branches,.. */
413 @ span.disabled {
414 @ color: red;
415 @ }
416 ;
417
418 /*
419 ** WEBPAGE: style.css
420 */
421 void page_style_css(void){
@@ -415,10 +428,12 @@
428 cgi_append_content(zCSS, -1);
429 /* add special missing definitions */
430 if (!strstr("table.label-value",zCSS)) cgi_append_content(zTableLabelValueCSS, -1);
431 if (!strstr("div.sidebox",zCSS)) cgi_append_content(zDivSidebox, -1);
432 if (!strstr("div.sideboxTitle",zCSS)) cgi_append_content(zDivSideboxTitle, -1);
433 if (!strstr("div.sideboxDescribed",zCSS)) cgi_append_content(zDivSideboxDescribed, -1);
434 if (!strstr("span.disabled",zCSS)) cgi_append_content(zSpanDisabled, -1);
435 g.isConst = 1;
436 }
437
438 /*
439 ** WEBPAGE: test_env
440

Keyboard Shortcuts

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