[CLEANUP] Responsive tables added when needed

This commit is contained in:
Sebastian Grewe 2014-03-10 09:51:25 +01:00
parent 6b1bceabdf
commit baf07e0abc
8 changed files with 115 additions and 123 deletions

View File

@ -5,7 +5,7 @@
<div class="panel-heading">
<i class="fa fa-envelope fa-fw"></i> Top Inviters
</div>
<div class="panel-body no-padding">
<div class="panel-body no-padding table-responsive">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
@ -41,4 +41,4 @@
</div>
</div>
</div>
</div>
</div>

View File

@ -4,63 +4,62 @@
<div class="panel-heading">
<i class="fa fa-bell-o fa-fw"></i> Monitoring
</div>
<div class="panel-body no-padding">
<div class="panel-body no-padding table-responsive">
<table class="table table-striped table-bordered table-hover">
<thead>
<th>Cronjob</th>
<th>Disabled</th>
<th>Exit Code</th>
<th>Active</th>
<th>Runtime</th>
<th>Start Time</th>
<th>End Time</th>
<th>Message</th>
</thead>
<tbody>
{foreach $CRONSTATUS as $cron => $data}
<tr>
<td>{$cron}</td>
{foreach $data as $name => $event}
<td>
{if $event.type == 'okerror'}
{if $event.value == 0}
<font color="green">OK</font>
{else}
<font color="red">ERROR</font>
{/if}
{else if $event.type == 'message'}
<i>{$event.value}</i>
{else if $event.type == 'yesno'}
<i class="fa fa-{if $event.value == 1}check{else}times{/if} fa-fw"></i>
{else if $event.type == 'time'}
{if $event.value > 60}
<font color="orange">
{else if $event.value > 120}
<font color="red">
{else}
<font color="green">
{/if}
{$event.value|default:"0"|number_format:"2"} seconds
</font>
{else if $event.type == 'date'}
{if ($smarty.now - 180) > $event.value}
<font color="red">
{else if ($smarty.now - 120) > $event.value}
<font color="orange">
{else}
<font color="green">
{/if}
{$event.value|date_format:"%m/%d %H:%M:%S"}
</font>
{else}
{$event.value|default:""}
{/if}
</td>
{/foreach}
</tr>
{/foreach}
</tbody>
<thead>
<th>Cronjob</th>
<th>Disabled</th>
<th>Exit Code</th>
<th>Active</th>
<th>Runtime</th>
<th>Start Time</th>
<th>End Time</th>
<th>Message</th>
</thead>
<tbody>
{foreach $CRONSTATUS as $cron => $data}
<tr>
<td>{$cron}</td>
{foreach $data as $name => $event}
<td>
{if $event.type == 'okerror'}
{if $event.value == 0}
<font color="green">OK</font>
{else}
<font color="red">ERROR</font>
{/if}
{else if $event.type == 'message'}
<i>{$event.value}</i>
{else if $event.type == 'yesno'}
<i class="fa fa-{if $event.value == 1}check{else}times{/if} fa-fw"></i>
{else if $event.type == 'time'}
{if $event.value > 60}
<font color="orange">
{else if $event.value > 120}
<font color="red">
{else}
<font color="green">
{/if}
{$event.value|default:"0"|number_format:"2"} seconds
</font>
{else if $event.type == 'date'}
{if ($smarty.now - 180) > $event.value}
<font color="red">
{else if ($smarty.now - 120) > $event.value}
<font color="orange">
{else}
<font color="green">
{/if}
{$event.value|date_format:"%m/%d %H:%M:%S"}
</font>
{else}
{$event.value|default:""}
{/if}
</td>
{/foreach}
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>

View File

@ -5,29 +5,20 @@
<i class="fa fa-desktop fa-fw"></i> {$GLOBAL.workers} Current Active Pool Workers
</div>
<div class="panel-body no-padding">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<form action="{$smarty.server.SCRIPT_NAME}">
<input type="hidden" name="page" value="{$smarty.request.page|escape}" />
<input type="hidden" name="action" value="{$smarty.request.action|escape}" />
<tbody>
<tr>
<td>
{if $smarty.request.start|default:"0" > 0}
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" - $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="icon-left-open"></i></a>
{else}
<i class="icon-left-open"></i>
{/if}
</td>
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" + $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="icon-right-open"></i></a>
</td>
</tr>
</tbody>
</form>
</table>
<div class="panel-body">
<form action="{$smarty.server.SCRIPT_NAME}">
<input type="hidden" name="page" value="{$smarty.request.page|escape}" />
<input type="hidden" name="action" value="{$smarty.request.action|escape}" />
<ul class="pager">
<li class="previous">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" - $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"> &larr;</a>
</li>
<li class="next">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" + $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"> &rarr;</a>
</li>
</ul>
</form>
</div>
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<thead>

View File

@ -3,7 +3,7 @@
<div class="panel-heading">
<i class="fa fa-tachometer fa-fw"></i> Contributor Hashrates
</div>
<div class="panel-body no-padding">
<div class="panel-body no-padding table-responsive">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>

View File

@ -3,7 +3,7 @@
<div class="panel-heading">
<i class="fa fa-tachometer fa-fw"></i> Contributor Shares
</div>
<div class="panel-body no-padding">
<div class="panel-body no-padding table-responsive">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>

View File

@ -4,45 +4,47 @@
<div class="panel-heading">
<i class="fa fa-bar-chart fa-fw"></i> Block Statistics
</div>
<table class="table table-striped table-bordered table-hover">
<tbody>
<tr>
<td colspan="8">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page}&action={$smarty.request.action}&height={$BLOCKDETAILS.height}&prev=1"><i class="fa fa-chevron-left fa-fw"></i></a>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page}&action={$smarty.request.action}&height={$BLOCKDETAILS.height}&next=1"><i class="fa fa-chevron-right fa-fw pull-right"></i></a>
</td>
</tr>
<tr class="odd">
<td>ID</td>
<td>{$BLOCKDETAILS.id|number_format:"0"|default:"0"}</td>
<td>Height</td>
{if ! $GLOBAL.website.blockexplorer.disabled}
<td><a href="{$GLOBAL.website.blockexplorer.url}{$BLOCKDETAILS.blockhash}" target="_new">{$BLOCKDETAILS.height|number_format:"0"|default:"0"}</a></td>
{else}
<td>{$BLOCKDETAILS.height|number_format:"0"|default:"0"}</td>
{/if}
<td>Amount</td>
<td>{$BLOCKDETAILS.amount|number_format|default:"0"}</td>
<td>Confirmations</td>
<td>{if $BLOCKDETAILS.confirmations >= $GLOBAL.confirmations}
<font color="green">Confirmed</font>
{else if $BLOCKDETAILS.confirmations == -1}
<font color="red">Orphan</font>
{else if $BLOCKDETAILS.confirmations == 0}0
{else}{($GLOBAL.confirmations - $BLOCKDETAILS.confirmations)|default:"0"} left{/if}</td>
</tr>
<tr class="even">
<td>Difficulty</td>
<td>{$BLOCKDETAILS.difficulty|default:"0"}</td>
<td>Time</td>
<td>{$BLOCKDETAILS.time|default:"0"}</td>
<td>Shares</td>
<td>{$BLOCKDETAILS.shares|number_format:"0"|default:"0"}</td>
<td>Finder</td>
<td>{$BLOCKDETAILS.finder|default:"unknown"}</td>
</tr>
</tbody>
</table>
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<tbody>
<tr>
<td colspan="8">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page}&action={$smarty.request.action}&height={$BLOCKDETAILS.height}&prev=1"><i class="fa fa-chevron-left fa-fw"></i></a>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page}&action={$smarty.request.action}&height={$BLOCKDETAILS.height}&next=1"><i class="fa fa-chevron-right fa-fw pull-right"></i></a>
</td>
</tr>
<tr class="odd">
<td>ID</td>
<td>{$BLOCKDETAILS.id|number_format:"0"|default:"0"}</td>
<td>Height</td>
{if ! $GLOBAL.website.blockexplorer.disabled}
<td><a href="{$GLOBAL.website.blockexplorer.url}{$BLOCKDETAILS.blockhash}" target="_new">{$BLOCKDETAILS.height|number_format:"0"|default:"0"}</a></td>
{else}
<td>{$BLOCKDETAILS.height|number_format:"0"|default:"0"}</td>
{/if}
<td>Amount</td>
<td>{$BLOCKDETAILS.amount|number_format|default:"0"}</td>
<td>Confirmations</td>
<td>{if $BLOCKDETAILS.confirmations >= $GLOBAL.confirmations}
<font color="green">Confirmed</font>
{else if $BLOCKDETAILS.confirmations == -1}
<font color="red">Orphan</font>
{else if $BLOCKDETAILS.confirmations == 0}0
{else}{($GLOBAL.confirmations - $BLOCKDETAILS.confirmations)|default:"0"} left{/if}</td>
</tr>
<tr class="even">
<td>Difficulty</td>
<td>{$BLOCKDETAILS.difficulty|default:"0"}</td>
<td>Time</td>
<td>{$BLOCKDETAILS.time|default:"0"}</td>
<td>Shares</td>
<td>{$BLOCKDETAILS.shares|number_format:"0"|default:"0"}</td>
<td>Finder</td>
<td>{$BLOCKDETAILS.finder|default:"unknown"}</td>
</tr>
</tbody>
</table>
</div>
<div class="panel-footer">
<div class="submit_link">
<form action="{$smarty.server.SCRIPT_NAME}" method="POST" id='search'>

View File

@ -32,4 +32,4 @@
</div>
</div>
</div>
</div>
</div>

View File

@ -2,7 +2,7 @@
<div class="col-lg-12">
<div class="panel panel-info">
<div class="panel-heading"><i class="fa fa-clock-o fa-fw"></i> UptimeRobot Status</div>
<div class="panel-body no-padding">
<div class="panel-body no-padding table-responsive">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>