Skip to content

Commit

Permalink
Adds a bit of logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrove committed Apr 12, 2012
1 parent bd01552 commit d217418
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/assets/javascripts/backbone/views/show_activity.js.coffee
Expand Up @@ -6,6 +6,8 @@ class Kandan.Views.ShowActivity extends Backbone.View
render: ()->
activity = @options.activity.toJSON()
activity.created_at = Kandan.Helpers.Utils.time_to_string(new Date(activity.created_at))
console.log("Rendering activity:")
console.log(activity)
if activity.action != "message"
@compiled_template = JST['user_notification']({activity: activity})
else
Expand Down
2 changes: 1 addition & 1 deletion app/assets/templates/user_notification.jst.eco
Expand Up @@ -5,7 +5,7 @@
<span class="user">Kandan bot</span>

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

0 comments on commit d217418

Please sign in to comment.