index2 added

This commit is contained in:
moneroexamples 2016-05-01 09:51:55 +08:00
parent 96dc29f804
commit 245471d418
1 changed files with 61 additions and 0 deletions

61
src/templates/index2.html Normal file
View File

@ -0,0 +1,61 @@
<div class="center">
<h3 style="font-size: 12px; margin-top: 20px">
Server time: {{server_timestamp}} |
{{#refresh}}
<a href="/">Autorefresh is ON (10 s)</a>
{{/refresh}}
{{^refresh}}
<a href="/autorefresh">Autorefresh is OFF</a>
{{/refresh}}
</h3>
</div>
{{{mempool_info}}}
{{#is_page_zero}}
<h2>100 recent blocks<!--(height: {{height}})--></h2>
{{/is_page_zero}}
{{^is_page_zero}}
<h2>older blocks<!--(height: {{height}})--></h2>
{{/is_page_zero}}
<div class="center">
<table class="center">
<tr>
<td>height</td>
<td>age {{age_format}} (Δm)</td>
<td>block hash</td>
<td>txs</td>
<td>fees</td>
<td>outputs</td>
<td>mixins</td>
<td>size [kB]</td>
</tr>
{{#blocks}}
<tr>
<td><a href="/block/{{height}}">{{height}}</a></td>
<td>{{age}} ({{time_delta}})</td>
<td><a href="/block/{{hash}}">{{hash}}</a></td>
<td>{{notx}}</td>
<td>{{fees}}</td>
<td>{{xmr_outputs}}</td>
<td>{{mixin_range}}</td>
<td>{{blksize}}</td>
</tr>
{{/blocks}}
</table>
<div class="center" style="text-align: center;">
{{^is_page_zero}}
<a href="/page/{{prev_page}}">previous page</a> |
<a href="/">first page</a> |
{{/is_page_zero}}
current page: {{page_no}}/<a href="/page/{{total_page_no}}">{{total_page_no}}</a>
| <a href="/page/{{next_page}}">next page</a>
</div>
</div>