diff --git a/routes/admin.js b/routes/admin.js index 7263882..f029b79 100644 --- a/routes/admin.js +++ b/routes/admin.js @@ -32,7 +32,7 @@ debug.log = console.log.bind(console); router.get('/', function(req, res) { var senders = []; dao.eachSenders(function(sender){ - var senderObj = {id : sender.senderId, receivers : []}; + var senderObj = {id : sender.senderId, receivers : [], fileName: sender.fileName}; sender.eachReceiver(function(receiver){ senderObj.receivers.push(receiver.receiverId); }); diff --git a/views/admin.jade b/views/admin.jade index 7554715..5d35535 100644 --- a/views/admin.jade +++ b/views/admin.jade @@ -25,7 +25,7 @@ block extra_scripts block content ul each sender in senders - li= "Sender " + sender.id + li= "Sender " + sender.id + ": " + sender.fileName ul each receiverId in sender.receivers li= "Receiver " + receiverId