Skip to content

Commit 3afa122

Browse files
committed
Rule for "all forks filtered out"
1 parent f067a90 commit 3afa122

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

project/useful_forks.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ function commits_count(request, fork_username) {
4141

4242
if (response.total_commits === 0) {
4343
old_data.remove();
44+
if (document.getElementById('useful_forks_table').rows.length === 0) {
45+
update_data_innerHTML("All the forks have been filtered out: apparently the maintainers are doing a great job!");
46+
}
4447
}
4548

4649
let appendedData = old_data.insertCell();
@@ -73,7 +76,7 @@ function add_fork_elements(forkdata_array, user, repo) {
7376

7477
console.log(forkdata_array);
7578

76-
let wrapper_html = '<table>';
79+
let wrapper_html = '<table id="useful_forks_table">';
7780

7881
for (let i = 0; i < Math.min(100, forkdata_array.length); ++i) {
7982
const elem_ref = forkdata_array[i];

0 commit comments

Comments
 (0)