Skip to content

Commit

Permalink
Fixes #17 so links are relative and not fixed from root /.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitcartel committed Jul 30, 2017
1 parent 3a31ce1 commit b74939d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mce/abe.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,10 +715,10 @@ def handle_chain(abe, page):
body += ['<div class="container"><div class="row"><div class="col-md-6">']
body += ['<h3>Summary</h3>']
body += ['<table class="table table-bordered table-striped table-condensed">']
body += ['<td>Blocks</td>','<td><a href="/', escape(chain.name), '/blocks/">', info_resp['blocks'], '</a></td>']
body += ['<td>Blocks</td>', '<td><a href="', page['dotdot'], escape(chain.name), '/blocks/">', info_resp['blocks'], '</a></td>']
#body += html_keyvalue_tablerow('Blocks', info_resp['blocks'])
body += html_keyvalue_tablerow('Transactions', num_txs)
body += ['<td>Assets</td>', '<td><a href="/{0}/assets">'.format(escape(chain.name)), num_assets, '</a></td>']
body += ['<td>Assets</td>', '<td><a href="', page['dotdot'], escape(chain.name), '/assets">', num_assets, '</a></td>']
#body += html_keyvalue_tablerow('Assets', num_assets)
body += html_keyvalue_tablerow('Addresses', num_addresses)
body += ['</table>']
Expand Down

0 comments on commit b74939d

Please sign in to comment.