|
|
|
@ -37,6 +37,17 @@
|
|
|
|
|
<td><%= image_tag "/images/praise_tread/tread_true.png",weight:"22px", height:"22px",:title => l(:label_issue_not_treed_over) %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<% else %>
|
|
|
|
|
<!-- 积分少于2分不能踩帖 -->
|
|
|
|
|
<% if OptionNumber.get_user_option_number(user_id).nil? || OptionNumber.get_user_option_number(user_id).total_score < 2 %>
|
|
|
|
|
<table style="line-height: 1px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td ><%= link_to image_tag("/images/praise_tread/praise_true.png",weight:"22px", height:"22px",:title => l(:label_issue_praise)),
|
|
|
|
|
:controller=>"praise_tread",:action=>"praise_plus",:remote=>true,:obj_id => obj.id,:obj_type => obj.class,:horizontal => horizontal %></td>
|
|
|
|
|
<td align="center"><strong class="font_small_watch"><%= get_praise_num(obj)%></strong></td>
|
|
|
|
|
<td><%= image_tag "/images/praise_tread/tread_true.png",weight:"22px", height:"22px",:title => l(:label_issues_score_not_enough) %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<% else %>
|
|
|
|
|
<table style="line-height: 1px">
|
|
|
|
|
<tr>
|
|
|
|
@ -49,6 +60,8 @@
|
|
|
|
|
</table>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<!-- end -->
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
@ -104,6 +117,21 @@
|
|
|
|
|
<td><%= image_tag "/images/praise_tread/tread_true.png",weight:"22px", height:"22px",:title => l(:label_issue_not_treed_over) %> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% if OptionNumber.get_user_option_number(user_id).nil? || OptionNumber.get_user_option_number(user_id).total_score < 2 %>
|
|
|
|
|
<table style="line-height: 1px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td > <%= link_to image_tag("/images/praise_tread/praise_true.png",weight:"22px", height:"22px",:title => l(:label_issue_praise)),
|
|
|
|
|
:controller=>"praise_tread",:action=>"praise_plus",:remote=>true,:obj_id => obj.id,:obj_type => obj.class ,:horizontal => horizontal %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="center"><strong class="font_small_watch"><%= get_praise_num(obj)%></strong></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= image_tag "/images/praise_tread/tread_true.png",weight:"22px", height:"22px",:title => l(:label_issues_score_not_enough) %> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<% else %>
|
|
|
|
|
<table style="line-height: 1px">
|
|
|
|
|
<tr>
|
|
|
|
@ -120,6 +148,8 @@
|
|
|
|
|
</table>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<!-- end -->
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|