2013-08-10 22:54:16 +08:00
|
|
|
<span id="praise">
|
2013-08-08 17:01:56 +08:00
|
|
|
<% if is_praise_or_tread(obj,user_id).size > 0 %>
|
|
|
|
<%= image_tag("/images/praise.png") %>
|
2013-08-10 16:09:07 +08:00
|
|
|
<%= link_to "#{l(:label_cancel_praise)}",:controller=>"praise_tread",:action=>"praise_minus",:remote=>true,:obj => obj %>
|
2013-08-10 22:54:16 +08:00
|
|
|
(<strong class="font_small_watch"><%= get_praise_num(obj)%></strong>)
|
2013-08-08 17:01:56 +08:00
|
|
|
<% else %>
|
|
|
|
<%= image_tag("/images/tread.png") %>
|
2013-08-10 16:09:07 +08:00
|
|
|
<%= link_to "#{l(:label_praise)}",:controller=>"praise_tread",:action=>"praise_plus",:remote=>true,:obj => obj %>
|
2013-08-10 22:54:16 +08:00
|
|
|
(<strong class="font_small_watch"><%= get_praise_num(obj)%></strong>)
|
2013-08-08 17:01:56 +08:00
|
|
|
<% end %>
|
2013-08-10 22:54:16 +08:00
|
|
|
</span>
|
2013-08-08 17:01:56 +08:00
|
|
|
<% if show_flag %>
|
2013-08-10 22:54:16 +08:00
|
|
|
<span id="tread">
|
2013-08-08 17:01:56 +08:00
|
|
|
<%= link_to image_tag("/images/tread.png"),:controller=>"praise_tread",
|
|
|
|
:action=>"tread_minus",:remote=>true,:obj => obj %>踩
|
2013-08-10 22:54:16 +08:00
|
|
|
</span>
|
2013-08-08 17:01:56 +08:00
|
|
|
<% end %>
|