|
|
|
@ -29,15 +29,26 @@
|
|
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
|
|
|
|
|
|
<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> <%= link_to image_tag("/images/praise_tread/tread_true.png",weight:"22px", height:"22px",:title => l(:label_issue_tread)),:controller=>"praise_tread",
|
|
|
|
|
:action=>"tread_plus",:remote=>true,:obj_id => obj.id,:obj_type => obj.class,:horizontal => horizontal %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<% if user_id == obj.author_id %>
|
|
|
|
|
<table style="line-height: 1px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td ><%= image_tag "/images/praise_tread/praise_true.png" , weight:"22px", height:"22px",:title => l(:label_issue_not_praise_over) %></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_issue_not_treed_over) %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<% else %>
|
|
|
|
|
<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> <%= link_to image_tag("/images/praise_tread/tread_true.png",weight:"22px", height:"22px",:title => l(:label_issue_tread)),:controller=>"praise_tread",
|
|
|
|
|
:action=>"tread_plus",:remote=>true,:obj_id => obj.id,:obj_type => obj.class,:horizontal => horizontal %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<!-- end -->
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
@ -80,20 +91,35 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
|
<% if user_id == obj.author_id %>
|
|
|
|
|
<table style="line-height: 1px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td > <%= image_tag "/images/praise_tread/praise_true.png",weight:"22px", height:"22px", :title => l(:label_issue_not_praise_over) %></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_issue_not_tread_over) %> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<% else %>
|
|
|
|
|
<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> <%= link_to image_tag("/images/praise_tread/tread_true.png",weight:"22px", height:"22px",:title => l(:label_issue_tread)),:controller=>"praise_tread",
|
|
|
|
|
:action=>"tread_plus",:remote=>true,:obj_id => obj.id,:obj_type => obj.class ,:horizontal => horizontal %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<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> <%= link_to image_tag("/images/praise_tread/tread_true.png",weight:"22px", height:"22px",:title => l(:label_issue_tread)),:controller=>"praise_tread",
|
|
|
|
|
:action=>"tread_plus",:remote=>true,:obj_id => obj.id,:obj_type => obj.class ,:horizontal => horizontal %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<!-- end -->
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|