mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-03 12:30:07 +00:00
coins: fix footer + date sort
This commit is contained in:
parent
d8d256b6f5
commit
0c5fb6cb30
1 changed files with 12 additions and 12 deletions
|
@ -9,11 +9,15 @@ echo <<<end
|
||||||
</div>
|
</div>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
tr.ssrow.filtered { display: none; }
|
tr.ssrow.filtered { display: none; }
|
||||||
|
.page .footer { clear: both; width: auto; margin-top: 16px; }
|
||||||
</style>
|
</style>
|
||||||
end;
|
end;
|
||||||
|
|
||||||
showTableSorter('maintable', "{
|
showTableSorter('maintable', "{
|
||||||
tableClass: 'dataGrid',
|
tableClass: 'dataGrid',
|
||||||
|
textExtraction: {
|
||||||
|
6: function(node, table, n) { return $(node).attr('data'); }
|
||||||
|
},
|
||||||
widgets: ['zebra','filter'],
|
widgets: ['zebra','filter'],
|
||||||
widgetOptions: {
|
widgetOptions: {
|
||||||
filter_external: '.search',
|
filter_external: '.search',
|
||||||
|
@ -31,7 +35,7 @@ echo <<<end
|
||||||
<th data-sorter="text">Algo</th>
|
<th data-sorter="text">Algo</th>
|
||||||
<th data-sorter="text">Status</th>
|
<th data-sorter="text">Status</th>
|
||||||
<th data-sorter="text">Version</th>
|
<th data-sorter="text">Version</th>
|
||||||
<th data-sorter="text">Created</th>
|
<th data-sorter="numeric">Created</th>
|
||||||
<th data-sorter="numeric">Height</th>
|
<th data-sorter="numeric">Height</th>
|
||||||
<th data-sorter="text">Message</th>
|
<th data-sorter="text">Message</th>
|
||||||
<th data-sorter="">Links</th>
|
<th data-sorter="">Links</th>
|
||||||
|
@ -111,23 +115,19 @@ foreach($coins as $coin)
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "</tbody>";
|
echo "</tbody>";
|
||||||
|
echo "<tfoot>";
|
||||||
|
|
||||||
$total = count($coins);
|
$total = count($coins);
|
||||||
|
|
||||||
echo "<tr class='ssrow'>";
|
echo '<tr class="ssrow sfooter">';
|
||||||
echo "<td></td>";
|
echo '<th></th>';
|
||||||
echo '<td colspan="6">';
|
echo '<th colspan="9">';
|
||||||
echo "<b>$total coins, $total_installed installed, $total_active running</b>";
|
echo "<b>$total coins, $total_installed installed, $total_active running</b>";
|
||||||
echo '<br/><br/><a href="/coin/create">Add a coin</a>';
|
echo '<br/><br/><a href="/coin/create">Add a new coin</a>';
|
||||||
echo '<td style="display: none;"></td>';
|
echo '</th>';
|
||||||
echo '<td style="display: none;"></td>';
|
|
||||||
echo '<td style="display: none;"></td>';
|
|
||||||
echo '<td style="display: none;"></td>';
|
|
||||||
echo '<td style="display: none;" data="0"></td>';
|
|
||||||
echo '</td>';
|
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
|
|
||||||
|
echo '</tfoot>';
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|
||||||
echo "<br><br><br><br><br>";
|
echo "<br><br><br><br><br>";
|
||||||
echo "<br><br><br><br><br>";
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue