9e84b6fc13d60a1beb638f18050cb1fed5835410 hiram Sun May 24 12:04:05 2026 -0700 add a "hide/show completed" toggle and no longer need to protect via VPN IP with .htaccess now refs #31811 diff --git src/hg/utils/otto/userRequests/ottoRequestView.cgi src/hg/utils/otto/userRequests/ottoRequestView.cgi index 0a81e3b954f..dc7d51122da 100644 --- src/hg/utils/otto/userRequests/ottoRequestView.cgi +++ src/hg/utils/otto/userRequests/ottoRequestView.cgi @@ -289,55 +289,62 @@ 'font-size:12px}\n' 'th{background:#eee;text-align:left;position:sticky;top:0}\n' 'tr:nth-child(even){background:#f8f8f8}\n' 'td.comment{max-width:28em;white-space:pre-wrap;' 'word-break:break-word}\n' 'tr.s7 td{background:#ffe0e0}\n' 'tr.s8 td{background:#e0f0e0;color:#555}\n' 'select,button{font-size:12px}\n' '.banner{padding:.5em;margin:.4em 0;border-radius:4px}\n' '.info {background:#dfd;border:1px solid #5a5}\n' '.error{background:#fdd;border:1px solid #a55}\n' '.legend{font-size:15px;color:#333;margin:.4em 0}\n' '.legend code{background:#eee;padding:0 3px;font-size:14px}\n' '.refreshBtn{font-size:14px;padding:3px 10px;margin-left:6px;' 'cursor:pointer}\n' + '.toggleBtn{font-size:14px;padding:3px 10px;margin-left:6px;' + 'cursor:pointer;background:#f0f0f0;border:1px solid #ccc}\n' + '.hide-complete tr.s8{display:none}\n' '
\n') out(f'{k}={html.escape(v)}'
for k, v in STATUS_NAMES.items()))
+ # Count completed rows for the toggle button label
+ completed_count = sum(1 for r in rows if len(r) > 7 and r[7] == '8')
out(f' · {len(rows)} row(s)'
'| {c} | ') out(''
'coverage from / to | '
'elapsed | set status | {html.escape(elapsed)} | ') # reset form out('') out('\n') out(' |
|---|