Fix some problems between non-photo image and unassigned image
parent
0363290173
commit
9fb03994a9
|
@ -155,7 +155,7 @@ WikiSummaryDirective = ($log, $template, $compile, $translate) ->
|
||||||
user = $scope.usersById[wiki.last_modifier]
|
user = $scope.usersById[wiki.last_modifier]
|
||||||
|
|
||||||
if user is undefined
|
if user is undefined
|
||||||
user = {name: "unknown", imgUrl: "/images/unnamed.png"}
|
user = {name: "unknown", imgUrl: "/images/user-noimage.png"}
|
||||||
else
|
else
|
||||||
user = {name: user.full_name_display, imgUrl: user.photo}
|
user = {name: user.full_name_display, imgUrl: user.photo}
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 6.1 KiB |
|
@ -3,7 +3,7 @@ div.activity-item
|
||||||
div.activity-info
|
div.activity-info
|
||||||
div.profile-contact-picture
|
div.profile-contact-picture
|
||||||
a(tg-nav="user-profile:username=vm.activity.user.username", title="{{::vm.activity.user.name }}")
|
a(tg-nav="user-profile:username=vm.activity.user.username", title="{{::vm.activity.user.name }}")
|
||||||
img(ng-src="{{::vm.activity.user.photo || '/images/unnamed.png'}}", alt="{{::vm.activity.user.name}}")
|
img(ng-src="{{::vm.activity.user.photo || '/images/user-noimage.png'}}", alt="{{::vm.activity.user.name}}")
|
||||||
|
|
||||||
p(tg-compile-html="vm.activity.title")
|
p(tg-compile-html="vm.activity.title")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue