aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/timeline.rhtml14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/admin/timeline.rhtml b/app/views/admin/timeline.rhtml
index 3b77b5821..4c4aa4f36 100644
--- a/app/views/admin/timeline.rhtml
+++ b/app/views/admin/timeline.rhtml
@@ -46,6 +46,20 @@
<% else %>
Missing outgoing message, internal error.
<% end %>
+ <% elsif event.event_type == 'edit_comment' %>
+ <% comments = Comment.find(:all, event.params[:comment_id].to_i) %>
+ had annotation edited by administrator <strong><%=h event.params[:editor] %></strong>.
+ <% if comments.size > 0 %>
+ <% comment = comments[0] %>
+ <% for p in ['body']
+ if event.params[p.to_sym] != event.params[('old_'+p).to_sym]
+ %> Changed <%=p%> from '<%=h event.params[('old_'+p).to_sym]%>' to '<%=h event.params[p.to_sym] %>'. <%
+ end
+ end
+ %>
+ <% else %>
+ Missing annotation, internal error.
+ <% end %>
<% elsif event.event_type == 'destroy_incoming' %>
had incoming message deleted by administrator <strong><%=h event.params[:editor] %></strong>.
<% elsif event.event_type == 'response' %>