Fixed problem with created by user outside the project
parent
59a1d6c27b
commit
79a3afc6c6
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue