code.gitea.io/gitea@v1.22.3/web_src/js/features/repo-issue-pr-status.js (about) 1 export function initRepoPullRequestCommitStatus() { 2 for (const btn of document.querySelectorAll('.commit-status-hide-checks')) { 3 const panel = btn.closest('.commit-status-panel'); 4 const list = panel.querySelector('.commit-status-list'); 5 btn.addEventListener('click', () => { 6 list.style.maxHeight = list.style.maxHeight ? '' : '0px'; // toggle 7 btn.textContent = btn.getAttribute(list.style.maxHeight ? 'data-show-all' : 'data-hide-all'); 8 }); 9 } 10 }