|
|
|
@ -17,15 +17,16 @@
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<!-- 图片上传,稍后添加-->
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
<a href="javascript:void(0);" id="object_upload_img_<%= shixun.id %>" onclick="$('#upload_img_<%= shixun.id %>').click();">
|
|
|
|
|
<%= File.exist?(disk_filename("Shixun",shixun.id)) ? "重新上传" : "上传图片" %>
|
|
|
|
|
</a>
|
|
|
|
|
<% if File.exist?(disk_filename("Shixun",shixun.id)) %>
|
|
|
|
|
<%= image_tag(url_to_avatar(shixun), :class => "w80 h80 fl ml5 shixun_image_show", :id => "shixun_image_show_#{shixun.id}") %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<img src="" class="w80 h80 fl ml5 shixun_image_show none" id="shixun_image_show_<%= shixun.id %>"/>
|
|
|
|
|
<% end %>
|
|
|
|
|
<!-- <a href="javascript:void(0);" id="object_upload_img_<%#= shixun.id %>" onclick="$('#upload_img_<%= shixun.id %>').click();">-->
|
|
|
|
|
<%#= File.exist?(disk_filename("Shixun",shixun.id)) ? "重新上传" : "上传图片" %>
|
|
|
|
|
<!-- </a>-->
|
|
|
|
|
<%# if File.exist?(disk_filename("Shixun",shixun.id)) %>
|
|
|
|
|
<%#= image_tag(url_to_avatar(shixun), :class => "w80 h80 fl ml5 shixun_image_show", :id => "shixun_image_show_#{shixun.id}") %>
|
|
|
|
|
<%# else %>
|
|
|
|
|
<!-- <img src="" class="w80 h80 fl ml5 shixun_image_show none" id="shixun_image_show_<%#= shixun.id %>"/>-->
|
|
|
|
|
<%# end %>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
<td><%= link_to shixun.owner.try(:show_real_name),"/users/#{shixun.owner.login}",target:'_blank' %></td>
|
|
|
|
|