Business logic fix for news actions

This commit is contained in:
Kyle Drake 2014-12-02 01:32:55 -08:00
parent 56f712bb89
commit 8bdf4e7663

View file

@ -7,8 +7,16 @@
<%= event_likes_count %>&nbsp;<%= event_likes_count == 1 ? 'like' : 'likes' %> <%= event_likes_count %>&nbsp;<%= event_likes_count == 1 ? 'like' : 'likes' %>
<% end %> <% end %>
<% end %> <% end %>
<% if current_site && event.site.profile_comments_enabled && current_site.commenting_allowed? %> <% if current_site %>
<a id="reply" href="#" onclick="Template.renderComment(<%= event.id %>); return false"><% if event.profile_comment_id %>Reply<% else %>Comment<% end %></a> <% if event.site.profile_comments_enabled && current_site.commenting_allowed? %>
<a id="reply" href="#" onclick="Template.renderComment(<%= event.id %>); return false">
<% if event.profile_comment_id %>
Reply
<% else %>
Comment
<% end %>
</a>
<% end %>
<% if event.profile_comment_id && event.created_by?(current_site) %> <% if event.profile_comment_id && event.created_by?(current_site) %>
<a id="editLink" href="#" onclick="ProfileComment.displayEditor('<%= event.id %>'); return false">Edit</a> <a id="editLink" href="#" onclick="ProfileComment.displayEditor('<%= event.id %>'); return false">Edit</a>
<% end %> <% end %>