历史版本样式更改

This commit is contained in:
Tim 2016-02-20 17:00:21 +08:00
parent 89eff0f920
commit 55b13e7dde
2 changed files with 57 additions and 55 deletions

View File

@ -1,56 +1,57 @@
<!--<div class="resourceUploadPopup">--> <!--<div class="resourceUploadPopup">-->
<span class="uploadDialogText">更新资源版本</span> <span class="uploadDialogText">更新资源版本</span>
<!--<div class="resourcePopupClose"> <a href="javascript:void(0);" class="resourceClose" onclick="closeModal();"></a></div>--> <!--<div class="resourcePopupClose"> <a href="javascript:void(0);" class="resourceClose" onclick="closeModal();"></a></div>-->
<div class="uploadBoxContainer mt0"> <div class="uploadBoxContainer mt0">
<div> <div>
<div>当前版本 <div>当前版本
<span class="attachment" > <span class="attachment" >
<input readonly="readonly" name="attachments[1][filename]" value="<%=@attachment.filename%>" class="upload_filename readonly" type="text"> <input readonly="readonly" name="attachments[1][filename]" value="<%=@attachment.filename%>" class="upload_filename readonly" type="text">
</span> </span>
</div> </div>
<% unless @attachment_histories.empty? %> <% unless @attachment_histories.empty? %>
<div >历史版本</div> <div >历史版本</div>
<div style="max-height: 95px;overflow-y:auto; background-color: #e3e3e3;" class="mb10 p10"> <div style="max-height: 95px;overflow-y:auto; background-color: #e3e3e3;" class="mb10 p10">
<% @attachment_histories.each do |history| %> <% @attachment_histories.each do |history| %>
<span class="attachment"> <span class="attachment">
<%= link_to truncate(history.filename,length: 35, omission: '...'), <%= link_to truncate(history.filename,length: 35, omission: '...'),
download_history_attachment_path(history.id, history.filename), 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;",:class => "linkBlue f_14 f_b" %> :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" %>
<span>版本号:<%= history.version %></span> <span class="fr">版本号:<%= history.version %></span>
</span> <div class="cl"></div>
</span>
<% end %>
</div> <% end %>
<% end %> </div>
<% end %>
</div>
<%= form_tag(upload_attachment_version_path, :multipart => true,:remote => !ie8?,:name=>"upload_form",:id=>'upload_form') do %> </div>
<%= hidden_field_tag :old_attachment_id,@attachment.id %> <%= form_tag(upload_attachment_version_path, :multipart => true,:remote => !ie8?,:name=>"upload_form",:id=>'upload_form') do %>
<div> <%= hidden_field_tag :old_attachment_id,@attachment.id %>
<span id="attachments_fields" xmlns="http://www.w3.org/1999/html"> <div>
</span> <span id="attachments_fields" xmlns="http://www.w3.org/1999/html">
</div> </span>
<div class="uploadBox"> </div>
<input type="hidden" name="attachment_type" value="1"> <div class="uploadBox">
<%= render :partial => 'attachments/upload_attachment_new_version' %> <input type="hidden" name="attachment_type" value="1">
<div class="cl"></div> <%= render :partial => 'attachments/upload_attachment_new_version' %>
<!--<a href="javascript:void(0);" class=" fr grey_btn mr40" onclick="closeModal();"><%#= l(:button_cancel)%></a>--> <div class="cl"></div>
<!--<a id="submit_resource" href="javascript:void(0);" class="blue_btn fr" onclick="submit_resource();"><%#= l(:button_confirm)%></a>--> <!--<a href="javascript:void(0);" class=" fr grey_btn mr40" onclick="closeModal();"><%#= l(:button_cancel)%></a>-->
</div> <!--<a id="submit_resource" href="javascript:void(0);" class="blue_btn fr" onclick="submit_resource();"><%#= l(:button_confirm)%></a>-->
<div class="uploadResourceIntr"> </div>
<div class="uploadResourceName fl"><span id="upload_file_count">(未选择文件)</span></div> <div class="uploadResourceIntr">
<div class="uploadResourceIntr2 fl">您可以上传小于<span class="c_red">50MB</span>的文件</div> <div class="uploadResourceName fl"><span id="upload_file_count">(未选择文件)</span></div>
</div> <div class="uploadResourceIntr2 fl">您可以上传小于<span class="c_red">50MB</span>的文件</div>
</div> </div>
<div class="cl"></div> </div>
<div style="margin-top: 10px" > <div class="cl"></div>
<div class="courseSendSubmit"> <div style="margin-top: 10px" >
<!--<a href="javascript:void(0);" class="sendSourceText" onclick="">确定</a>--> <div class="courseSendSubmit">
<%= submit_tag '确定',:onclick=>'upload_attachment_version(event);',:onfocus=>'this.blur()',:id=>'upload_files_submit_btn',:class=>'sendSourceText' %> <!--<a href="javascript:void(0);" class="sendSourceText" onclick="">确定</a>-->
</div> <%= submit_tag '确定',:onclick=>'upload_attachment_version(event);',:onfocus=>'this.blur()',:id=>'upload_files_submit_btn',:class=>'sendSourceText' %>
<div class="courseSendCancel"><a href="javascript:void(0);" id="upload_files_cancle_btn" class="sendSourceText" onclick="hideModal();">取消</a></div> </div>
</div> <div class="courseSendCancel"><a href="javascript:void(0);" id="upload_files_cancle_btn" class="sendSourceText" onclick="hideModal();">取消</a></div>
<% end %> </div>
<div class="cl"></div> <% end %>
<div class="cl"></div>
<!--</div>--> <!--</div>-->

View File

@ -1083,6 +1083,7 @@ a.c_grey{ color:#999999;}
a:hover.c_grey{ color:#333;} a:hover.c_grey{ color:#333;}
a.link_file_a{ background:url(../images/pic_file.png) 0 2px no-repeat; padding-left:20px; } a.link_file_a{ background:url(../images/pic_file.png) 0 2px no-repeat; padding-left:20px; }
a:hover.link_file_a{ background:url(../images/pic_file.png) 0 -25px no-repeat; color:#3ca5c6;} a:hover.link_file_a{ background:url(../images/pic_file.png) 0 -25px no-repeat; color:#3ca5c6;}
a.link_file_a2{ background:url(../images/pic_file.png) 0 -15px no-repeat; padding-left: 20px;}
.link_file_a{ display:block; max-width:450px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;} .link_file_a{ display:block; max-width:450px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
.last_time{width:auto; text-align:right; margin-right:70px;} .last_time{width:auto; text-align:right; margin-right:70px;}
.link_file_box{ width:360px;} .link_file_box{ width:360px;}