Skip to content

Commit d217418

Browse files
committed
Adds a bit of logging
1 parent bd01552 commit d217418

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/assets/javascripts/backbone/views/show_activity.js.coffee

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ class Kandan.Views.ShowActivity extends Backbone.View
66
render: ()->
77
activity = @options.activity.toJSON()
88
activity.created_at = Kandan.Helpers.Utils.time_to_string(new Date(activity.created_at))
9+
console.log("Rendering activity:")
10+
console.log(activity)
911
if activity.action != "message"
1012
@compiled_template = JST['user_notification']({activity: activity})
1113
else

app/assets/templates/user_notification.jst.eco

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<span class="user">Kandan bot</span>
66

77
<span class="content">
8-
<%= @activity.user.first_name %> <%= @activity.action %>ed <%- "<a href='#{@activity.content}'>#{@activity.content}</a>" if @activity.action == "upload" %>
8+
<%= @activity.user.first_name || @activity.user.email %> <%= @activity.action %>ed <%- "<a href='#{@activity.content}'>#{@activity.content}</a>" if @activity.action == "upload" %>
99
</span>
1010
</div>
1111

0 commit comments

Comments
 (0)