diff options
| author | Adam Soltys <[email protected]> | 2014-08-20 08:01:20 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2014-08-20 08:01:20 -0700 |
| commit | 11390ded587c17ca06535c0826f2d2da94417d93 (patch) | |
| tree | d73d67e31c63cce7fa36959c9c60dfa963fcac42 /public/js/calculator.coffee | |
| parent | 1e24fe8d3d87104a7d70b4be286dc82003e48912 (diff) | |
| download | coinos-server-11390ded587c17ca06535c0826f2d2da94417d93.tar.gz coinos-server-11390ded587c17ca06535c0826f2d2da94417d93.zip | |
Add links to homepage
Diffstat (limited to 'public/js/calculator.coffee')
| -rw-r--r-- | public/js/calculator.coffee | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee index 700e9903..c90954ab 100644 --- a/public/js/calculator.coffee +++ b/public/js/calculator.coffee @@ -58,16 +58,12 @@ setup = -> g.commission or= 0 g.symbol or= 'quadrigacx' - if g.title - $('#title').html(g.title).show() - if g.logo $('#logo').attr('src', g.logo).show() - else unless g.title - $('#logo').attr('src', '/assets/img/bitcoin.png').show() + else if g.title + $('#title').html("<a href='/#{g.user}/edit'>#{g.title}</a>").show() - $('#logo').click -> $(location).attr("href","/#{g.user}/edit") - $('#address').html("#{address} <a href='http://blockchain.info/address/#{address}' target='_blank'><img src='/assets/img/blockchain.png' /></a>") + $('#address').html("<a href='/#{g.user}/report'>#{address}</a> <a href='http://blockchain.info/address/#{address}' target='_blank'><img src='/assets/img/blockchain.png' /></a>") $('#symbol').html(g.symbol + " bid") $('#currency').html(g.currency) $('#unit').html(g.unit) |
