Skip to content

Commit ef8f664

Browse files
authored
Add orange colour to blocks found
Together with #83efd60
1 parent 83efd60 commit ef8f664

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/bootstrap/statistics/blocks/blocks_found_details.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<td class="text-right">{$BLOCKSFOUND[block].shares|number_format}</td>
6060
<td class="text-right">
6161
{math assign="percentage" equation="shares / estshares * 100" shares=$BLOCKSFOUND[block].shares|default:"0" estshares=$BLOCKSFOUND[block].estshares}
62-
<font color="{if ($percentage <= 100)}green{else}red{/if}">{$percentage|number_format:"2"}</font>
62+
<font color="{if ($percentage <= 100)}green{elseif ($percentage <= 115)}orange{else}red{/if}">{$percentage|number_format:"2"}</font>
6363
</td>
6464
</tr>
6565
{/section}
@@ -70,7 +70,7 @@
7070
<td class="text-right">{$pplnsshares|number_format}</td>
7171
{/if}
7272
<td class="text-right">{$totalshares|number_format}</td>
73-
<td class="text-right">{if $count > 0}<font color="{if (($totalshares / $totalexpectedshares * 100) <= 100)}green{else}red{/if}">{($totalshares / $totalexpectedshares * 100)|number_format:"2"}</font>{else}0{/if}</td>
73+
<td class="text-right">{if $count > 0}<font color="{if (($totalshares / $totalexpectedshares * 100) <= 100)}green{elseif (($totalshares / $totalexpectedshares * 100) <= 115)}orange{else}red{/if}">{($totalshares / $totalexpectedshares * 100)|number_format:"2"}</font>{else}0{/if}</td>
7474
</tr>
7575
</tbody>
7676
</table>

0 commit comments

Comments
 (0)