Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Commit

Permalink
Badge and Popup Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brhndursun committed Dec 12, 2018
1 parent 62a37e2 commit f950b07
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion star/page_bans.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
{elseif $ban.banlength|strpos:"Permanent" !== false}
<label class="badge badge-danger">
{else}
<label class="badge badge-success">
<label class="badge badge-warning">
{/if}
{$ban.banlength}</label>

Expand Down
14 changes: 13 additions & 1 deletion star/page_comms.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,19 @@
{/if}
</td>
{/if}
<td align="center" class="{$ban.class}">{$ban.banlength}</td>
<td>
{if $ban.banlength|strpos:"Unbanned" !== false}
<label class="badge badge-primary">
{elseif $ban.banlength|strpos:"Expired" !== false || $ban.banlength|strpos:"Deleted" !== false || $ban.banlength|strpos:"Expired" !== false}
<label class="badge badge-success">
{elseif $ban.banlength|strpos:"Permanent" !== false}
<label class="badge badge-danger">
{else}
<label class="badge badge-warning">
{/if}
{$ban.banlength}</label>

</td>
</tr>
<!-- ###############[ Start Sliding Panel ]################## -->
<tr>
Expand Down
2 changes: 1 addition & 1 deletion star/page_dashboard.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
</thead>
<tbody>
{foreach from=$players_blocked item=player}
<tr{if $dashboard_lognopopup} onclick="{$player.link_url}"{else} {/if} style="cursor: pointer;" id="{$player.server}" title="Querying Server Data..." data-aos="zoom-in">
<tr{if $dashboard_lognopopup} onclick="{$player.link_url}"{else} onclick="{$player.popup}" {/if} style="cursor: pointer;" id="{$player.server}" title="Querying Server Data..." data-aos="zoom-in">
<td>
<i class="icon-md mdi mdi-minus-circle"></i>
</td>
Expand Down

0 comments on commit f950b07

Please sign in to comment.