% if PraiseTread.praised(activity) %> 赞 <% num = get_praise_num(activity) %> <%= num > 0 ? "(#{num})" : "" %> <% else %> 已赞 <% num = get_praise_num(activity) %> <%= num > 0 ? "(#{num})" : "" %> <% end %>