Fixed problem with created by user outside the project

stable
Jesús Espino 2014-11-18 12:33:00 +01:00
parent 59a1d6c27b
commit 79a3afc6c6
1 changed files with 5 additions and 1 deletions

View File

@ -132,8 +132,12 @@ CreatedByDisplayDirective = ->
link = ($scope, $el, $attrs) -> link = ($scope, $el, $attrs) ->
render = (model) -> render = (model) ->
owner = $scope.usersById?[model.owner] or {
full_name_display: "external user"
photo: "/images/unnamed.png"
}
html = template({ html = template({
owner: $scope.usersById?[model.owner] owner: owner
date: moment(model.created_date).format("DD MMM YYYY HH:mm") date: moment(model.created_date).format("DD MMM YYYY HH:mm")
}) })
$el.html(html) $el.html(html)