Skip to content

Commit

Permalink
Reformat blocks page
Browse files Browse the repository at this point in the history
  • Loading branch information
National Bitcoiner committed Jun 21, 2020
1 parent 1254283 commit 0391d40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ h3 {

.ellipsis {
overflow: hidden;
font-family: monospace, monospace;
text-overflow: ellipsis;
white-space: nowrap;
}
Expand Down
8 changes: 4 additions & 4 deletions static/templates/blocks.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ <h1>Blocks <small class="text-muted">by date</small>
<tr>
<th style="width: 10%;">Height</th>
<th style="width: 48%;">Hash</th>
<th>Timestamp</span></th>
<th class="text-right" style="width: 10%;">Transactions</th>
<th class="text-right" style="width: 10%;">Size</th>
<th>Time</span></th>
<th class="text-right" style="width: 10%;">Tx Count</th>
<th class="text-right" style="width: 10%;">Size (B)</th>
</tr>
</thead>
<tbody>
{{- range $b := $blocks.Blocks -}}
<tr>
<td><a href="/block/{{$b.Height}}">{{$b.Height}}</a></td>
<td class="ellipsis">{{$b.Hash}}</td>
<td class="ellipsis"><a title="{{$b.Hash}}" href="/block/{{$b.Hash}}">{{$b.PrintHash}}</a></td>
<td>{{formatUnixTime $b.Time}}</td>
<td class="text-right">{{$b.Txs}}</td>
<td class="text-right">{{$b.Size}}</td>
Expand Down

0 comments on commit 0391d40

Please sign in to comment.