|
4 | 4 | <img |
5 | 5 | class="only-light" |
6 | 6 | alt="{{ include.username }}" |
| 7 | + onerror="this.style.display='none'; this.parentElement.querySelector('.trophy-fallback').style.display='block';" |
7 | 8 | src="{{ site.external_services.github_profile_trophy_url }}/?username={{ include.username }}&theme={{ site.repo_trophies.theme_light }}&locale={{ site.lang }}&margin-w=15&margin-h=15&no-bg=true&rank=-C&column=6" |
8 | 9 | > |
9 | 10 | <img |
10 | 11 | class="only-dark" |
11 | 12 | alt="{{ include.username }}" |
| 13 | + onerror="this.style.display='none'; this.parentElement.querySelector('.trophy-fallback').style.display='block';" |
12 | 14 | src="{{ site.external_services.github_profile_trophy_url }}/?username={{ include.username }}&theme={{ site.repo_trophies.theme_dark }}&locale={{ site.lang }}&margin-w=15&margin-h=15&no-bg=true&rank=-C&column=6" |
13 | 15 | > |
| 16 | + <div class="trophy-fallback w-100 border rounded p-3 text-left" style="display: none;"> |
| 17 | + <h6 class="mb-1">{{ include.username }}</h6> |
| 18 | + <small class="text-muted">GitHub trophies are temporarily unavailable.</small> |
| 19 | + </div> |
14 | 20 | </span> |
15 | 21 |
|
16 | 22 | <span class="d-none d-sm-block d-md-none"> |
17 | 23 | <img |
18 | 24 | class="only-light" |
19 | 25 | alt="{{ include.username }}" |
| 26 | + onerror="this.style.display='none'; this.parentElement.querySelector('.trophy-fallback').style.display='block';" |
20 | 27 | src="{{ site.external_services.github_profile_trophy_url }}/?username={{ include.username }}&theme={{ site.repo_trophies.theme_light }}&locale={{ site.lang }}&margin-w=15&margin-h=15&no-bg=true&rank=-C&column=4" |
21 | 28 | > |
22 | 29 | <img |
23 | 30 | class="only-dark" |
24 | 31 | alt="{{ include.username }}" |
| 32 | + onerror="this.style.display='none'; this.parentElement.querySelector('.trophy-fallback').style.display='block';" |
25 | 33 | src="{{ site.external_services.github_profile_trophy_url }}/?username={{ include.username }}&theme={{ site.repo_trophies.theme_dark }}&locale={{ site.lang }}&margin-w=15&margin-h=15&no-bg=true&rank=-C&column=4" |
26 | 34 | > |
| 35 | + <div class="trophy-fallback w-100 border rounded p-3 text-left" style="display: none;"> |
| 36 | + <h6 class="mb-1">{{ include.username }}</h6> |
| 37 | + <small class="text-muted">GitHub trophies are temporarily unavailable.</small> |
| 38 | + </div> |
27 | 39 | </span> |
28 | 40 |
|
29 | 41 | <span class="d-block d-sm-none"> |
30 | 42 | <img |
31 | 43 | class="only-light" |
32 | 44 | alt="{{ include.username }}" |
| 45 | + onerror="this.style.display='none'; this.parentElement.querySelector('.trophy-fallback').style.display='block';" |
33 | 46 | src="{{ site.external_services.github_profile_trophy_url }}/?username={{ include.username }}&theme={{ site.repo_trophies.theme_light }}&locale={{ site.lang }}&margin-w=15&margin-h=15&no-bg=true&rank=-C&column=3" |
34 | 47 | > |
35 | 48 | <img |
36 | 49 | class="only-dark" |
37 | 50 | alt="{{ include.username }}" |
| 51 | + onerror="this.style.display='none'; this.parentElement.querySelector('.trophy-fallback').style.display='block';" |
38 | 52 | src="{{ site.external_services.github_profile_trophy_url }}/?username={{ include.username }}&theme={{ site.repo_trophies.theme_dark }}&locale={{ site.lang }}&margin-w=15&margin-h=15&no-bg=true&rank=-C&column=3" |
39 | 53 | > |
| 54 | + <div class="trophy-fallback w-100 border rounded p-3 text-left" style="display: none;"> |
| 55 | + <h6 class="mb-1">{{ include.username }}</h6> |
| 56 | + <small class="text-muted">GitHub trophies are temporarily unavailable.</small> |
| 57 | + </div> |
40 | 58 | </span> |
41 | 59 | </a> |
42 | 60 | </div> |
0 commit comments