forked from publify/publify
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dashboard: marking a comment as spam should load the next non spammy …
…comment. Issue publify#239.
- Loading branch information
Frédéric de Villamil
committed
Sep 9, 2013
1 parent
7756494
commit e0ebb1b
Showing
3 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<% if @comments.size == 0 %> | ||
<li class='alert'><%= _("No comments yet") %></li> | ||
<% else %> | ||
<% for comment in @comments -%> | ||
<li id='feedback_<%= comment.id %>'> | ||
<%= avatar_tag(:email => comment.email, :url => comment.url) %> | ||
<h5> | ||
<%= _("By") %> <%= (comment.url.blank?) ? h(comment.author) : link_to(h(comment.author), comment.url).nofollowify %> | ||
<%= display_date_and_time comment.created_at %> | ||
</h5> | ||
<p> | ||
<%= comment.html.strip_html.slice(0..300) %> | ||
</p> | ||
<%= show_feedback_actions(comment, 'dashboard') %> | ||
<hr /> | ||
</li> | ||
<% end %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,6 @@ | ||
<h3><%= _("Latest Comments") %></h3> | ||
<div class='well'> | ||
<ul class='unstyled' id="commentList"> | ||
<% if @comments.size == 0 %> | ||
<li class='alert'><%= _("No comments yet") %></li> | ||
<% else %> | ||
<% for comment in @comments -%> | ||
<li id='feedback_<%= comment.id %>'> | ||
<%= avatar_tag(:email => comment.email, :url => comment.url) %> | ||
<h5> | ||
<%= _("By") %> <%= (comment.url.blank?) ? h(comment.author) : link_to(h(comment.author), comment.url).nofollowify %> | ||
<%= display_date_and_time comment.created_at %> | ||
</h5> | ||
<p> | ||
<%= comment.html.strip_html.slice(0..300) %> | ||
</p> | ||
<%= show_feedback_actions(comment, 'dashboard') %> | ||
<hr /> | ||
</li> | ||
<% end %> | ||
<% end %> | ||
<%= render :partial => "comment" %> | ||
</ul> | ||
</div> |