Fossil

Check-in [8f6e98aa3d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:hyperlinks disabled skinned
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | stv-skinning
Files: files | file ages | folders
SHA1: 8f6e98aa3d962e4505ba17f9beb619077e2d7bd5
User & Date: Ratte 2010-09-06 19:10:56.000
Original Comment: hyperlinks isabled skinned
Context
2010-09-07
17:29
merged-make-corrections ... (Closed-Leaf check-in: 036d76815b user: Ratte tags: stv-skinning)
2010-09-06
19:10
hyperlinks disabled skinned ... (check-in: 8f6e98aa3d user: Ratte tags: stv-skinning)
2010-09-05
13:07
merged main trunk ... (check-in: 7766e68992 user: Ratte tags: stv-skinning)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/login.c.
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
*/
void login_anonymous_available(void){
  if( !g.okHistory &&
      db_exists("SELECT 1 FROM user"
                " WHERE login='anonymous'"
                "   AND cap LIKE '%%h%%'") ){
    const char *zUrl = PD("REQUEST_URI", "index");
    @ <p>Many <font color="red">hyperlinks are disabled.</font><br />
    @ Use <a href="%s(g.zTop)/login?anon=1&g=%T(zUrl)">anonymous login</a>
    @ to enable hyperlinks.</p>
  }
}

/*
** While rendering a form, call this routine to add the Anti-CSRF token







|







594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
*/
void login_anonymous_available(void){
  if( !g.okHistory &&
      db_exists("SELECT 1 FROM user"
                " WHERE login='anonymous'"
                "   AND cap LIKE '%%h%%'") ){
    const char *zUrl = PD("REQUEST_URI", "index");
    @ <p>Many <span class="disabledLinks">hyperlinks are disabled.</span><br />
    @ Use <a href="%s(g.zTop)/login?anon=1&g=%T(zUrl)">anonymous login</a>
    @ to enable hyperlinks.</p>
  }
}

/*
** While rendering a form, call this routine to add the Anti-CSRF token
Changes to src/setup.c.
914
915
916
917
918
919
920

921
922
923
924
925
926
927
  @ /* internal page layout */
  @ %h(zTdTimelineTable)
  @ %h(zTdTimelineTimeStampCell)
  @ %h(zTdTimelineOmitted)
  @ %h(zTdTimelineComment)
  @ %h(zDivTimelineLeafDsp)
  @ %h(zDivNomenclatureSidebox)

  @ </pre></blockquote>
  style_footer();
  db_end_transaction(0);
}

/*
** WEBPAGE: setup_header







>







914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
  @ /* internal page layout */
  @ %h(zTdTimelineTable)
  @ %h(zTdTimelineTimeStampCell)
  @ %h(zTdTimelineOmitted)
  @ %h(zTdTimelineComment)
  @ %h(zDivTimelineLeafDsp)
  @ %h(zDivNomenclatureSidebox)
  @ %h(zSpanDisabledLinks)
  @ </pre></blockquote>
  style_footer();
  db_end_transaction(0);
}

/*
** WEBPAGE: setup_header
Changes to src/style.c.
424
425
426
427
428
429
430






431
432
433
434
435
436
437
@   float: right;
@   width: 33%;
@   border-width: medium;
@   border-style: double;
@   margin: 10;
@ }
;







/*
** WEBPAGE: style.css
*/
void page_style_css(void){
  char *zCSS = 0;








>
>
>
>
>
>







424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
@   float: right;
@   width: 33%;
@   border-width: medium;
@   border-style: double;
@   margin: 10;
@ }
;
const char zSpanDisabledLinks[] =
@ /* hyperlinks disabled text */
@ span.disabledLinks {
@   color: red;
@ }
;

/*
** WEBPAGE: style.css
*/
void page_style_css(void){
  char *zCSS = 0;

448
449
450
451
452
453
454


455
456
457
458
459
460
461
    cgi_append_content(zTdTimelineOmitted,-1);
  if (!strstr(zCSS,"timelineComment"))
    cgi_append_content(zTdTimelineComment,-1);
  if (!strstr(zCSS,"timelineLeafDsp"))
    cgi_append_content(zDivTimelineLeafDsp,-1);
  if (!strstr(zCSS,"nomenclatureSidebox"))
    cgi_append_content(zDivNomenclatureSidebox,-1);


  g.isConst = 1;
}

/*
** WEBPAGE: test_env
*/
void page_test_env(void){







>
>







454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
    cgi_append_content(zTdTimelineOmitted,-1);
  if (!strstr(zCSS,"timelineComment"))
    cgi_append_content(zTdTimelineComment,-1);
  if (!strstr(zCSS,"timelineLeafDsp"))
    cgi_append_content(zDivTimelineLeafDsp,-1);
  if (!strstr(zCSS,"nomenclatureSidebox"))
    cgi_append_content(zDivNomenclatureSidebox,-1);
  if (!strstr(zCSS,"disabledLinks"))
    cgi_append_content(zSpanDisabledLinks,-1);
  g.isConst = 1;
}

/*
** WEBPAGE: test_env
*/
void page_test_env(void){