You've already forked oncall
mirror of
https://github.com/linkedin/oncall.git
synced 2025-11-30 23:44:59 +02:00
very slight simplification of defaultPhoto
This commit is contained in:
committed by
Qingping Hou
parent
ec019c905a
commit
d693ebdb01
@@ -2395,12 +2395,7 @@ var oncall = {
|
||||
//takes a photo_url and if null retuns the default blank headshot-blank
|
||||
Handlebars.registerHelper('defaultPhoto', function(src){
|
||||
// removes hash tag from string
|
||||
if(src == null){
|
||||
return "/static/images/headshot-blank.jpg";
|
||||
}
|
||||
else{
|
||||
return src;
|
||||
}
|
||||
return src || "/static/images/headshot-blank.jpg";
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user