We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7335849 commit 48a74c5Copy full SHA for 48a74c5
app/helpers/users_helper.rb
@@ -24,8 +24,13 @@ def users_team_image_tag(user, options = {})
24
25
def users_image_tag(user, options = {})
26
options[:class] ||= 'avatar'
27
- options[:alt] ||= user.username
28
- image_tag(users_image_path(user), options)
+ #FIXME
+ if user
29
+ options[:alt] ||= user.username
30
+ image_tag(users_image_path(user), options)
31
+ else
32
+ image_tag('blank-mugshot.png', options)
33
+ end
34
end
35
36
#TODO Remove
@@ -118,7 +123,7 @@ def empty_stats
118
123
119
124
120
125
def estimated_delivery_date
121
- if Date.today.end_of_week == Date.today
126
+ if Date.today.end_of_week == Date.today
122
127
Date.today + 7.days
128
else
129
Date.today.end_of_week
0 commit comments