mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 09:12:35 +02:00
Business logic fix for news actions
This commit is contained in:
parent
56f712bb89
commit
8bdf4e7663
1 changed files with 10 additions and 2 deletions
|
@ -7,8 +7,16 @@
|
|||
<%= event_likes_count %> <%= event_likes_count == 1 ? 'like' : 'likes' %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if current_site && 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>
|
||||
<% if current_site %>
|
||||
<% 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) %>
|
||||
<a id="editLink" href="#" onclick="ProfileComment.displayEditor('<%= event.id %>'); return false">Edit</a>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Reference in a new issue