Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #9 from Orange-OpenSource/feature/add-filename-in-…
Browse files Browse the repository at this point in the history
…admin

Add filename in admin page
  • Loading branch information
arnaudruffin authored Dec 13, 2016
2 parents b575507 + 5e41b17 commit 1e98eb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routes/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
2 changes: 1 addition & 1 deletion views/admin.jade
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e98eb8

Please sign in to comment.