upgraded to jquery 1.5.1, fixed comment voting ajax

This commit is contained in:
albert
2011-03-08 18:23:16 -05:00
parent a281bf03ed
commit 2b2be3263b
12 changed files with 122 additions and 275 deletions

View File

@@ -1,5 +1,5 @@
<div class="comments">
<div class="index">
<div id="c-comments">
<div id="a-index">
<% @posts.each do |post| %>
<div class="post">
<div class="preview">

View File

@@ -1,9 +1,12 @@
<article data-comment-id="<%= comment.id %>">
<div class="author">
<h1><%= link_to comment.creator_name, user_path(comment.creator_id) %></h1>
<time datetime="<%= comment.created_at %>">
<%= time_ago_in_words(comment.created_at) %> ago
</time>
<p>
<time datetime="<%= comment.created_at %>">
<%= time_ago_in_words(comment.created_at) %> ago
</time>
</p>
<p><span class="comment-score" id="score-for-comment-<%= comment.id %>"><%= pluralize comment.score, "point" %></span></p>
</div>
<div class="content">
<div>