|
164 | 164 | <button class="mt-3 btn btn-outline-primary btn-sm" data-action="click->show-more-recent-activity#revealRows" data-show-more-recent-activity-target="button">{{ 'show_more'|trans }}</button> |
165 | 165 | {% endif %} |
166 | 166 | </div> |
| 167 | + |
| 168 | +{% macro placeholder(props) %} |
| 169 | + <div class="table-responsive custom-table-wrapper mt-4"> |
| 170 | + <table class="table table-striped custom-table table-hover mb-0 placeholder-glow"> |
| 171 | + <tbody> |
| 172 | + {% set rowCount = props.showLimit > 0 ? props.showLimit : props.limit|default(5) %} |
| 173 | + {% for i in 1..rowCount %} |
| 174 | + <tr> |
| 175 | + <td class="text-center" style="width: 90px;"> |
| 176 | + <div class="position-relative"> |
| 177 | + <span class="rounded-2 d-inline-block" style="width: 80px; height: 58px; background: #e9ecef;"></span> |
| 178 | + </div> |
| 179 | + </td> |
| 180 | + |
| 181 | + <td class="d-none d-sm-table-cell"> |
| 182 | + <span class="d-inline-block" style="line-height: 120%;"> |
| 183 | + <span style="color: #111;"> |
| 184 | + <span class="placeholder" style="width: 85px;"></span><br> |
| 185 | + <small><span class="placeholder placeholder-sm" style="width: 55px;"></span></small> |
| 186 | + </span><br> |
| 187 | + <small class="puzzle-title mt-2"><span class="placeholder placeholder-sm" style="width: 110px;"></span></small> |
| 188 | + </span> |
| 189 | + </td> |
| 190 | + |
| 191 | + <td class="player-name"> |
| 192 | + <p class="mt-0 mb-1 d-sm-none"> |
| 193 | + <small><span class="placeholder placeholder-sm" style="width: 65px;"></span></small><br> |
| 194 | + <small><span class="placeholder placeholder-sm" style="width: 45px;"></span></small> |
| 195 | + </p> |
| 196 | + <p class="mb-0 low-line-height"> |
| 197 | + <small><span class="placeholder" style="width: 95px;"></span></small> |
| 198 | + </p> |
| 199 | + </td> |
| 200 | + |
| 201 | + <td class="with-ppm text-end"> |
| 202 | + <small style="line-height: 105%;"><span class="placeholder placeholder-sm" style="width: 55px;"></span></small><br> |
| 203 | + <span class="placeholder placeholder" style="width: 75px;"> </span><br> |
| 204 | + <small class="text-nowrap"><span class="placeholder placeholder-sm" style="width: 50px;"></span></small> |
| 205 | + </td> |
| 206 | + </tr> |
| 207 | + {% endfor %} |
| 208 | + </tbody> |
| 209 | + </table> |
| 210 | + </div> |
| 211 | +{% endmacro %} |
0 commit comments