markdownify profile in new profile view

This commit is contained in:
Maxwell Salzberg 2012-04-23 11:42:49 -07:00
parent c9406d8d7e
commit bcdd03b4e9

View file

@ -16,6 +16,12 @@ app.pages.Profile = app.views.Base.extend({
}, },
editMode : false, editMode : false,
presenter : function(){
var bio = this.model.get("bio") || ''
return _.extend(this.defaultPresenter(),
{text : this.model && app.helpers.textFormatter(bio, this.model)})
},
initialize : function(options) { initialize : function(options) {
this.model = new app.models.Profile.findByGuid(options.personId) this.model = new app.models.Profile.findByGuid(options.personId)