Permalink
Browse files

[js][xs]: display source if provided.

  • Loading branch information...
1 parent 6a90fc5 commit d5756b072beca5eebcfbfea94b64ad3bde93609e @rufuspollock rufuspollock committed Jun 17, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 js/app.js
View
@@ -80,6 +80,9 @@ var Timeliner = Backbone.View.extend({
};
}
out.text = record.get('description');
+ if (record.get('source')) {
+ out.text += '<p style="font-style: italic">Source: ' + record.get('source') + '</em></p>';
+ }
// hacky but it will work ...
// do not want time part of the dates
out.startDate = String(out.startDate.getFullYear()) + ',' + String(out.startDate.getMonth()+1) + ',' + String(out.startDate.getDate());

0 comments on commit d5756b0

Please sign in to comment.