moved out search pages

This commit is contained in:
albert
2011-03-15 19:19:49 -04:00
parent 7c45243d16
commit 42627be1d3
19 changed files with 77 additions and 93 deletions

View File

@@ -1,5 +1,5 @@
<div class="comments">
<div class="index">
<div id="c-comments">
<div id="a-index">
<% @comments.each do |comment| %>
<%= render :partial => "comments/partials/index/list", :locals => {:post => comment.post, :comments => [comment], :show_header => false} %>
<% end %>

View File

@@ -1,7 +1,7 @@
<div class="header">
<div class="row">
<span class="info">
<time>Date</time>
<strong>Date</strong>
<%= compact_time(post.created_at) %>
</span>
<span class="info">
@@ -14,7 +14,7 @@
</span>
<span class="info">
<strong>Score</strong>
<span id="score-for-post-<%= post.id %>"%>
<span id="score-for-post-<%= post.id %>">
<span><%= post.score %></span>
<% if CurrentUser.user.is_privileged? %>
(vote <%= link_to("up", post_votes_path(:score => "up", :post_id => post.id), :remote => true, :method => :post) %>/<%= link_to("down", post_votes_path(:score => "down", :post_id => post.id), :remote => true, :method => :post) %>)

View File

@@ -2,9 +2,7 @@
<div class="author">
<h1><%= link_to comment.creator_name, user_path(comment.creator_id) %></h1>
<p>
<time datetime="<%= comment.created_at %>">
<%= time_ago_in_words(comment.created_at) %> ago
</time>
<%= time_ago_in_words(comment.created_at) %> ago
</p>
</div>
<div class="content">