Created
January 11, 2015 13:59
-
-
Save g-p-g/1c5e6568563a2eaa417a to your computer and use it in GitHub Desktop.
Patch for lamassu-admin to list the Coinapult plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/client/code/app/Models/User.js b/client/code/app/Models/User.js | |
index 2caaeb3..f003bf2 100644 | |
--- a/client/code/app/Models/User.js | |
+++ b/client/code/app/Models/User.js | |
@@ -4,7 +4,7 @@ var PriceData = Backbone.Model.extend({ //this model keeps a current record of p | |
var self = this | |
- self.sources = ['bitstamp', 'bitpay', 'coindesk', 'bitcoinaverage'] | |
+ self.sources = ['bitstamp', 'bitpay', 'coindesk', 'bitcoinaverage', 'coinapult'] | |
self.sources.forEach(function(source){ | |
var price_update = 'latest_price:' + source; | |
diff --git a/client/templates/main/price.jade b/client/templates/main/price.jade | |
index 1182ceb..547b8f4 100644 | |
--- a/client/templates/main/price.jade | |
+++ b/client/templates/main/price.jade | |
@@ -21,6 +21,7 @@ | |
option(value="coindesk") CoinDesk | |
option(value="bitcoinaverage") BitcoinAverage | |
option(value="bitstamp") BitStamp | |
+ option(value="coinapult") Coinapult | |
.current_price | |
| The current price is | |
span.value ---.-- | |
diff --git a/client/templates/main/trading.jade b/client/templates/main/trading.jade | |
index f38cc8c..e095d4d 100644 | |
--- a/client/templates/main/trading.jade | |
+++ b/client/templates/main/trading.jade | |
@@ -21,6 +21,7 @@ | |
.select_wrap | |
select#exchange_provider | |
option(value="bitstamp") BitStamp | |
+ option(value="coinapult") Coinapult | |
li | |
.label ID | |
.input_wrap | |
diff --git a/client/templates/main/wallet.jade b/client/templates/main/wallet.jade | |
index ac21e73..3246a09 100644 | |
--- a/client/templates/main/wallet.jade | |
+++ b/client/templates/main/wallet.jade | |
@@ -18,6 +18,7 @@ | |
.select_wrap | |
select#wallet_provider | |
option(value="blockchain") Blockchain.info | |
+ option(value="coinapult") Coinapult | |
li | |
.label GUID | |
.input_wrap | |
diff --git a/server/price/feed.js b/server/price/feed.js | |
index 107b209..22d0bcf 100644 | |
--- a/server/price/feed.js | |
+++ b/server/price/feed.js | |
@@ -4,7 +4,7 @@ var ss = require('socketstream'); | |
var _config = require('../config'); | |
var _currency = null; | |
-var _tickers = ['bitpay', 'bitstamp', 'coindesk', 'bitcoinaverage']; | |
+var _tickers = ['bitpay', 'bitstamp', 'coindesk', 'bitcoinaverage', 'coinapult']; | |
var _tickerModules = _tickers.map(function (ticker) { | |
return require('lamassu-' + ticker).ticker.factory(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment