This commit is contained in:
albert
2013-03-21 17:58:55 -07:00
parent 12313e2526
commit 9cdc2a7cd7
2 changed files with 14 additions and 10 deletions

View File

@@ -237,6 +237,7 @@ Danbooru.Note = {
}) })
} else { } else {
$note_body.click(function(e) { $note_body.click(function(e) {
Danbooru.notice("You must be logged in to edit notes");
e.stopPropagation(); e.stopPropagation();
}); });
} }

View File

@@ -13,6 +13,8 @@
<p class="info">Updated by <%= link_to comment.updater_name, user_path(comment.updater_id) %> <%= time_ago_in_words_tagged(comment.updated_at) %></p> <p class="info">Updated by <%= link_to comment.updater_name, user_path(comment.updater_id) %> <%= time_ago_in_words_tagged(comment.updated_at) %></p>
<% end %> <% end %>
</div> </div>
<% if CurrentUser.is_member? %>
<menu> <menu>
<% if @post || @posts %> <% if @post || @posts %>
<li><%= link_to "Reply", new_comment_path(:post_id => comment.post_id), :class => "reply-link", "data-comment-id" => comment.id %></li> <li><%= link_to "Reply", new_comment_path(:post_id => comment.post_id), :class => "reply-link", "data-comment-id" => comment.id %></li>
@@ -24,6 +26,7 @@
<li id="comment-vote-down-link-for-<%= comment.id %>"><%= link_to "Vote down", comment_votes_path(:comment_id => comment.id, :score => "down"), :method => :post, :remote => true %></li> <li id="comment-vote-down-link-for-<%= comment.id %>"><%= link_to "Vote down", comment_votes_path(:comment_id => comment.id, :score => "down"), :method => :post, :remote => true %></li>
<% end %> <% end %>
</menu> </menu>
<% end %>
</div> </div>
<div class="clearfix"></div> <div class="clearfix"></div>
</article> </article>