添加贴吧帖子顶踩功能

This commit is contained in:
z9hang 2014-06-12 16:46:54 +08:00
parent 4fb96bacdc
commit f7fc4d06a2
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,6 @@
<div class="lz">
<!-- 在这里添加赞和踩-->
<span id="praise_tread" style="float: right"> <%= render :partial => "/praise_tread/praise_tread",:locals => {:obj => @memo,:show_flag => true,:user_id =>User.current.id}%> </span>
<div class="lz-left">
<div><%= link_to image_tag(url_to_avatar(@memo.author), :class => "avatar"), user_path(@memo.author) %></div>
<p class="clearfix"><%=link_to @memo.author.name, user_path(@memo.author) %></p>