Fossil SCM
Shorten line statistics text for the benefit of devices with limited screen width.
Commit
941f67a83e9263270c0f7ec2cbcaa58254baace55df8f5e2ae0d6f76040bf9b7
Parent
25e156c9b77726d…
1 file changed
+4
-5
+4
-5
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -1229,16 +1229,15 @@ | ||
| 1229 | 1229 | pCfg,mperm); |
| 1230 | 1230 | } |
| 1231 | 1231 | db_finalize(&q3); |
| 1232 | 1232 | @ </div> |
| 1233 | 1233 | @ <script nonce='%h(style_nonce())'>;/* info.c:%d(__LINE__) */ |
| 1234 | - @ function plu(n) {return (n===1 ? '' : 's')} | |
| 1235 | 1234 | @ document.getElementById('changes_section').textContent = 'Changes ' + |
| 1236 | - @ '(%d(g.diffCnt[0]) file' + plu(%d(g.diffCnt[0])) + ': ' + | |
| 1237 | - @ '%d(g.diffCnt[1]) addition' + plu(%d(g.diffCnt[1])) + ', ' + | |
| 1238 | - @ '%d(g.diffCnt[2]) deletion' + plu(%d(g.diffCnt[2])) + ')' | |
| 1239 | - @ </script> | |
| 1235 | + @ '(%d(g.diffCnt[0]) file' + (%d(g.diffCnt[0])===1 ? '' : 's') + ': ' + | |
| 1236 | + @ '+%d(g.diffCnt[1]) ' + | |
| 1237 | + @ '−%d(g.diffCnt[2]))' | |
| 1238 | + @ </script> | |
| 1240 | 1239 | append_diff_javascript(diffType); |
| 1241 | 1240 | style_finish_page(); |
| 1242 | 1241 | } |
| 1243 | 1242 | |
| 1244 | 1243 | /* |
| 1245 | 1244 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1229,16 +1229,15 @@ | |
| 1229 | pCfg,mperm); |
| 1230 | } |
| 1231 | db_finalize(&q3); |
| 1232 | @ </div> |
| 1233 | @ <script nonce='%h(style_nonce())'>;/* info.c:%d(__LINE__) */ |
| 1234 | @ function plu(n) {return (n===1 ? '' : 's')} |
| 1235 | @ document.getElementById('changes_section').textContent = 'Changes ' + |
| 1236 | @ '(%d(g.diffCnt[0]) file' + plu(%d(g.diffCnt[0])) + ': ' + |
| 1237 | @ '%d(g.diffCnt[1]) addition' + plu(%d(g.diffCnt[1])) + ', ' + |
| 1238 | @ '%d(g.diffCnt[2]) deletion' + plu(%d(g.diffCnt[2])) + ')' |
| 1239 | @ </script> |
| 1240 | append_diff_javascript(diffType); |
| 1241 | style_finish_page(); |
| 1242 | } |
| 1243 | |
| 1244 | /* |
| 1245 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1229,16 +1229,15 @@ | |
| 1229 | pCfg,mperm); |
| 1230 | } |
| 1231 | db_finalize(&q3); |
| 1232 | @ </div> |
| 1233 | @ <script nonce='%h(style_nonce())'>;/* info.c:%d(__LINE__) */ |
| 1234 | @ document.getElementById('changes_section').textContent = 'Changes ' + |
| 1235 | @ '(%d(g.diffCnt[0]) file' + (%d(g.diffCnt[0])===1 ? '' : 's') + ': ' + |
| 1236 | @ '+%d(g.diffCnt[1]) ' + |
| 1237 | @ '−%d(g.diffCnt[2]))' |
| 1238 | @ </script> |
| 1239 | append_diff_javascript(diffType); |
| 1240 | style_finish_page(); |
| 1241 | } |
| 1242 | |
| 1243 | /* |
| 1244 |