更新资源版本
当前版本
<% unless @attachment_histories.empty? %>
历史版本
<% @attachment_histories.each do |history| %> <%= link_to truncate(history.filename,length: 35, omission: '...'), download_history_attachment_path(history.id, history.filename), :title => history.filename+"\n"+history.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis; max-width:300px;",:class => "linkBlue f_14 f_b link_file_a2 fl" %> 版本号:<%= history.version %>
<% end %>
<% end %>
<%= form_tag(upload_attachment_version_path, :multipart => true,:remote => !ie8?,:name=>"upload_form",:id=>'upload_form') do %> <%= hidden_field_tag :old_attachment_id,@attachment.id %>
<%= render :partial => 'attachments/upload_attachment_new_version' %>
(未选择文件) 您可以上传小于50MB的文件

描述:

<%= submit_tag '确定',:onclick=>'upload_attachment_version(event);',:onfocus=>'this.blur()',:id=>'upload_files_submit_btn',:class=>'sendSourceText' %>
取消
<% end %>