From f55010072fc163bece5c8953855a277e4d18473a Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <gua@adhisimon.org> Date: Fri, 4 Sep 2015 18:39:34 +0700 Subject: [PATCH] logo diatas, close #1 --- index.js | 2 ++ views/basic_template.html | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ed1bd6d..2c02cab 100644 --- a/index.js +++ b/index.js @@ -47,6 +47,8 @@ app.get('/', function(req, res) { //balances = getBalances(suppliers); res.render('basic_template.html', { + // logo, berdasar isu #1 + logo: 'http://reload97.com/sites/default/files/web-reload97.png', title: 'Supplier Balances', balances: balances, timestamp: new Date(), diff --git a/views/basic_template.html b/views/basic_template.html index f6cb83f..c61558a 100644 --- a/views/basic_template.html +++ b/views/basic_template.html @@ -18,7 +18,11 @@ <![endif]--> </head> <body> - <h1>{title}</h1> + <h1> + <img src="{logo}"> + <br/><br/> + {title} + </h1> <table class="table table-hover table-striped"> {for balance in balances} -- 1.9.0