|
117 | 117 | <div class="collapse_content"> |
118 | 118 | <div class="padding flex flex-jc:start" style="overflow: auto;"> |
119 | 119 | <ul class="ban_action responsive_show:desktop"> |
120 | | - <li class="button button-light">{$ban.demo_link}</li> |
| 120 | + <li class="button button-light">{$ban.demo_link}</li> |
121 | 121 | {if !$login} |
122 | 122 | <li> |
123 | 123 | <a class="button button-success" href='index.php?p=login'>Admin ? Sign In</a> |
|
148 | 148 | {/if} |
149 | 149 | </ul> |
150 | 150 | <ul class="ban_list_detal"> |
| 151 | + <ul class="ban_action responsive_hide:desktop lists-mobile"> |
| 152 | + {if $view_bans} |
| 153 | + {if ($ban.view_edit && !$ban.unbanned)} |
| 154 | + <li class="button button-primary lists-mobile">{$ban.edit_link}</li> |
| 155 | + {/if} |
| 156 | + <li class="button button-success lists-mobile">{$ban.addcomment}</li> |
| 157 | + <li class="button button-infos lists-mobile">{$ban.blockcomm_link}</li> |
| 158 | + {if ($ban.unbanned == false && $ban.view_unban)} |
| 159 | + <li class="button button-important lists-mobile">{$ban.unban_link}</li> |
| 160 | + {/if} |
| 161 | + {if $ban.unbanned && $ban.reban_link != false} |
| 162 | + <li class="button button-important lists-mobile">{$ban.reban_link}</li> |
| 163 | + {/if} |
| 164 | + {if $ban.type == 0} |
| 165 | + {if $groupban} |
| 166 | + <li class="button button-important lists-mobile">{$ban.groups_link}</li> |
| 167 | + {/if} |
| 168 | + {if $friendsban} |
| 169 | + <li class="button button-important lists-mobile">{$ban.friend_ban_link}</li> |
| 170 | + {/if} |
| 171 | + {/if} |
| 172 | + {if $ban.view_delete} |
| 173 | + <li class="button button-important lists-mobile">{$ban.delete_link}</li> |
| 174 | + {/if} |
| 175 | + {/if} |
| 176 | + </ul> |
151 | 177 | <li> |
152 | 178 | <span><i class="fas fa-user"></i> Player</span> |
153 | 179 | {if empty($ban.player)} |
|
309 | 335 | </ul> |
310 | 336 | {/if} |
311 | 337 | </div> |
| 338 | + {if $view_comments} |
| 339 | + {if $ban.commentdata != "None"} |
| 340 | + <ul class="ban_list_comments responsive_hide:desktop" style="display: contents;"> |
| 341 | + <div class="layout_box_title"> |
| 342 | + <h2><i class="fa-solid fa-comments"></i> Comments <i style="font-weight: normal;font-size: smaller;">(from the most recent to the oldest)</i></h2> |
| 343 | + </div> |
| 344 | + <ul> |
| 345 | + {foreach from=$ban.commentdata item="commenta"} |
| 346 | + <li> |
| 347 | + <div class="layout_box-child padding"> |
| 348 | + <div class="ban_list_comments_header"> |
| 349 | + {if !empty($commenta.comname)} |
| 350 | + <span class="text:bold">{$commenta.comname|escape:'html'}</span> |
| 351 | + {else} |
| 352 | + <span class="text:italic">Admin deleted</span> |
| 353 | + {/if} |
| 354 | + <span>{$commenta.added}</span> |
| 355 | + {if $commenta.editcomlink != ""} |
| 356 | + {$commenta.editcomlink} {$commenta.delcomlink} |
| 357 | + {/if} |
| 358 | + </div> |
| 359 | + <div class="margin-top flex flex-fd:column"> |
| 360 | + {$commenta.commenttxt} |
| 361 | + {if !empty($commenta.edittime)} |
| 362 | + <span class="margin-top:half text:italic"> |
| 363 | + <i class="fas fa-pencil-alt"></i> Last edit |
| 364 | + {$commenta.edittime} by {if !empty($commenta.editname)}{$commenta.editname}{else}<i>Admin deleted</i>{/if} |
| 365 | + </span> |
| 366 | + {/if} |
| 367 | + </div> |
| 368 | + </div> |
| 369 | + </li> |
| 370 | + {/foreach} |
| 371 | + </ul> |
| 372 | + {/if} |
| 373 | + </ul> |
| 374 | + {/if} |
312 | 375 | </div> |
313 | 376 | </td> |
314 | 377 | </tr> |
|
0 commit comments