Fix some problems between non-photo image and unassigned image

stable
David Barragán Merino 2015-06-26 13:09:34 +02:00
parent 0363290173
commit 9fb03994a9
3 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ WikiSummaryDirective = ($log, $template, $compile, $translate) ->
user = $scope.usersById[wiki.last_modifier]
if user is undefined
user = {name: "unknown", imgUrl: "/images/unnamed.png"}
user = {name: "unknown", imgUrl: "/images/user-noimage.png"}
else
user = {name: user.full_name_display, imgUrl: user.photo}

BIN
app/images/user-noimage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -3,7 +3,7 @@ div.activity-item
div.activity-info
div.profile-contact-picture
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")