Fossil

Check-in [d4fc9120]
Login

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

Overview
Comment:Add the "Last Sync URL" division to the /urllist page.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d4fc9120e1b718e1e4e9396190b3028f7ecfcc5369029609fe848d6841063651
User & Date: drh 2017-05-12 13:57:31.394
Context
2017-05-12
14:11
In the hyperlink on the "Last Sync URL", omit the username to prevent warnings from Firefox. ... (check-in: 172c2235 user: drh tags: trunk)
13:57
Add the "Last Sync URL" division to the /urllist page. ... (check-in: d4fc9120 user: drh tags: trunk)
13:49
Patch for autosetup to restore previous behavior of the --with options to configure, by Steve Bennett. ... (check-in: 4e1450ae user: mistachkin tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/stat.c.
339
340
341
342
343
344
345

346
347
348
349
350
351
352
** WEBPAGE: urllist
**
** Show ways in which this repository has been accessed
*/
void urllist_page(void){
  Stmt q;
  int cnt;

  login_check_credentials();
  if( !g.perm.Admin ){ login_needed(0); return; }

  style_header("URLs and Checkouts");
  style_adunit_config(ADUNIT_RIGHT_OK);
  style_submenu_element("Stat", "stat");
  style_submenu_element("Schema", "repo_schema");







>







339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
** WEBPAGE: urllist
**
** Show ways in which this repository has been accessed
*/
void urllist_page(void){
  Stmt q;
  int cnt;
  char *zRemote;
  login_check_credentials();
  if( !g.perm.Admin ){ login_needed(0); return; }

  style_header("URLs and Checkouts");
  style_adunit_config(ADUNIT_RIGHT_OK);
  style_submenu_element("Stat", "stat");
  style_submenu_element("Schema", "repo_schema");
376
377
378
379
380
381
382










383
384
385
386
387
388
389
    cnt++;
  }
  db_finalize(&q);
  if( cnt==0 ){
    @ <tr><td>(none)</td>
  }
  @ </table>










  style_footer();
}

/*
** WEBPAGE: repo_schema
**
** Show the repository schema







>
>
>
>
>
>
>
>
>
>







377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
    cnt++;
  }
  db_finalize(&q);
  if( cnt==0 ){
    @ <tr><td>(none)</td>
  }
  @ </table>
  zRemote = db_text(0, "SELECT value FROM config WHERE name='last-sync-url'");
  if( zRemote ){
    @ <div class="section">Last Sync URL</div>
    if( sqlite3_strlike("http%", zRemote, 0)==0 ){
      @ <p><a href='%h(zRemote)'>%h(zRemote)</a>
    }else{
      @ <p>%h(zRemote)</p>
    }
    @ </div>
  }
  style_footer();
}

/*
** WEBPAGE: repo_schema
**
** Show the repository schema