aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2014-08-20 08:01:20 -0700
committerAdam Soltys <[email protected]>2014-08-20 08:01:20 -0700
commit11390ded587c17ca06535c0826f2d2da94417d93 (patch)
treed73d67e31c63cce7fa36959c9c60dfa963fcac42 /public
parent1e24fe8d3d87104a7d70b4be286dc82003e48912 (diff)
downloadcoinos-server-11390ded587c17ca06535c0826f2d2da94417d93.tar.gz
coinos-server-11390ded587c17ca06535c0826f2d2da94417d93.zip
Add links to homepage
Diffstat (limited to 'public')
-rw-r--r--public/css/calculator.less3
-rw-r--r--public/js/calculator.coffee10
-rw-r--r--public/js/setup.coffee1
3 files changed, 6 insertions, 8 deletions
diff --git a/public/css/calculator.less b/public/css/calculator.less
index 2a36be4f..4ba5058a 100644
--- a/public/css/calculator.less
+++ b/public/css/calculator.less
@@ -15,7 +15,7 @@ div.container-fluid {
.navbar-toggle { background-color: #428bca; width: 100%; position: absolute; top: 0px; height: 30px; margin: 0; float: none; z-index: 1; margin-bottom: -30px; }
.navbar-toggle .glyphicon { margin-top: -5px; padding-left: 10px; }
-.navbar { margin: 0; margin-bottom: 15px; }
+.navbar { margin: 0; min-height: 40px; }
.navbar-collapse.in { overflow-y: visible; }
.nav { margin-top: 30px; }
.nav li a { padding: 10px 0 10px 10px; }
@@ -34,6 +34,7 @@ div#calculator {
strong#total { font-size: 30px; }
p#address { padding-top: 10px; }
#title { display: none; }
+ #title a { color: #000; text-decoration: none; }
#logo { display: none; padding: 10px 0; margin-bottom: 10px; max-height: 250px; }
#error { margin-top: 10px; }
}
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)
diff --git a/public/js/setup.coffee b/public/js/setup.coffee
index ce6b3963..7daf960f 100644
--- a/public/js/setup.coffee
+++ b/public/js/setup.coffee
@@ -80,6 +80,7 @@ $(->
$.getJSON("/#{user}.json", (data) ->
$('#title').val(data.title)
$('#address').val(data.address)
+ $('#logo').val(data.logo)
$("#symbol option[value='#{data.symbol}']").attr('selected', 'selected')
$('#commission').val(data.commission)
$('#unit').val(data.unit)