Fossil

Check-in [941f67a83e]
Login

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

Overview
Comment:Shorten line statistics text for the benefit of devices with limited screen width.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | gui-diff-numstat
Files: files | file ages | folders
SHA3-256: 941f67a83e9263270c0f7ec2cbcaa58254baace55df8f5e2ae0d6f76040bf9b7
User & Date: danield 2025-07-31 12:50:19.625
Context
2025-08-06
10:30
Show numstat-style statistics in the 'Changes' section of /info and friends. check-in: 18151a8615 user: danield tags: trunk
2025-07-31
12:50
Shorten line statistics text for the benefit of devices with limited screen width. Closed-Leaf check-in: 941f67a83e user: danield tags: gui-diff-numstat
2025-07-30
17:26
Show numstat-style statistics in the 'Changes' section of /info and friends. check-in: 25e156c9b7 user: danield tags: gui-diff-numstat
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/info.c.
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
    const char *zOldName = db_column_text(&q3, 4);
    append_file_change_line(zUuid, zName, zOld, zNew, zOldName,
                            pCfg,mperm);
  }
  db_finalize(&q3);
  @ </div>
  @ <script nonce='%h(style_nonce())'>;/* info.c:%d(__LINE__) */
  @ function plu(n) {return (n===1 ? '' : 's')}
  @ document.getElementById('changes_section').textContent =  'Changes ' +
  @   '(%d(g.diffCnt[0]) file' + plu(%d(g.diffCnt[0])) + ': ' +
  @   '%d(g.diffCnt[1]) addition' + plu(%d(g.diffCnt[1])) + ', ' +
  @   '%d(g.diffCnt[2]) deletion' + plu(%d(g.diffCnt[2])) + ')'
  @ </script>      
  append_diff_javascript(diffType);
  style_finish_page();
}

/*
** WEBPAGE: winfo
** URL:  /winfo?name=HASH







<

|
|
|
|







1227
1228
1229
1230
1231
1232
1233

1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
    const char *zOldName = db_column_text(&q3, 4);
    append_file_change_line(zUuid, zName, zOld, zNew, zOldName,
                            pCfg,mperm);
  }
  db_finalize(&q3);
  @ </div>
  @ <script nonce='%h(style_nonce())'>;/* info.c:%d(__LINE__) */

  @ document.getElementById('changes_section').textContent =  'Changes ' +
  @   '(%d(g.diffCnt[0]) file' + (%d(g.diffCnt[0])===1 ? '' : 's') + ': ' +
  @   '+%d(g.diffCnt[1]) ' +
  @   '%d(g.diffCnt[2]))'
  @ </script>
  append_diff_javascript(diffType);
  style_finish_page();
}

/*
** WEBPAGE: winfo
** URL:  /winfo?name=HASH