aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app.js17
-rw-r--r--src/app.coffee10
-rw-r--r--views/tips.html11
3 files changed, 36 insertions, 2 deletions
diff --git a/app.js b/app.js
index c82f895e..dab0d431 100644
--- a/app.js
+++ b/app.js
@@ -1,5 +1,5 @@
(function() {
- var RedisStore, app, authorize, bodyParser, cache, calculator, config, cookieParser, express, fetchRates, fs, passport, path, request, session, sessionStore, sessions, transactions, users;
+ var RedisStore, app, authorize, bodyParser, cache, calculator, config, cookieParser, express, fetchRates, fs, passport, path, request, session, sessionStore, sessions, tips, transactions, users;
request = require('request');
@@ -103,7 +103,7 @@
return setTimeout(fetchRates, 120000);
})();
- app.get('/', cache, sessions["new"]);
+ tips = app.get('/', cache, sessions["new"]);
app.get('/register', cache, users["new"]);
@@ -113,6 +113,19 @@
app.get('/address', cache, calculator.address);
+ app.get('/tips', cache, function(req, res) {
+ return res.render('tips', {
+ notice: true,
+ layout: 'layout',
+ js: (function() {
+ return global.js;
+ }),
+ css: (function() {
+ return global.css;
+ })
+ });
+ });
+
app.get('/login', cache, sessions["new"]);
app.post('/login', sessions.create);
diff --git a/src/app.coffee b/src/app.coffee
index 3208ae49..f62b7696 100644
--- a/src/app.coffee
+++ b/src/app.coffee
@@ -62,11 +62,21 @@ do fetchRates = ->
)
setTimeout(fetchRates, 120000)
+tips =
+
app.get('/', cache, sessions.new)
app.get('/register', cache, users.new)
app.get('/ticker', cache, calculator.ticker)
app.get('/sweep', calculator.sweep)
app.get('/address', cache, calculator.address)
+app.get('/tips', cache, (req, res) ->
+ res.render('tips',
+ notice: true,
+ layout: 'layout',
+ js: (-> global.js),
+ css: (-> global.css)
+ )
+)
app.get('/login', cache, sessions.new)
app.post('/login', sessions.create)
diff --git a/views/tips.html b/views/tips.html
new file mode 100644
index 00000000..a4ac19ba
--- /dev/null
+++ b/views/tips.html
@@ -0,0 +1,11 @@
+<h1>Congratulations</h1>
+
+<p>
+If you're here, you've probably received a Bitcoin tip from me. I've created a short YouTube video to explain what to do next and show how you can create your own paper wallets. Enjoy, and if you have any questions, don't hesitate to contact me!</p>
+
+<p>
+-Adam Soltys<br />
+</p>
+
+<iframe width="420" height="315" src="https://www.youtube.com/embed/be4J_OpciTc" frameborder="0" allowfullscreen></iframe>