parent
47cdf1231d
commit
c4abe6b413
@ -1,8 +1,8 @@
|
|||||||
<% attachments.each_with_index do |attachment,i| %>
|
<% attachments.each_with_index do |attachment,i| %>
|
||||||
<div id="attachment_<%= attachment.id%>">
|
<div id="attachment_<%= attachment.id%>">
|
||||||
<%= link_to_short_attachment attachment, :class => 'link_file', :download => true -%>
|
<%= link_to_short_attachment attachment, :class => 'link_file_a fl', :download => true -%>
|
||||||
<%= link_to(' '.html_safe, attachment_path(attachment, :format => 'js'), :method => 'delete', :remote => true, :title => '删除', :class => 'remove-upload', :confirm => l(:text_are_you_sure)) if attachment.id && User.current == attachment.author %>
|
<%= link_to(' '.html_safe, attachment_path(attachment, :format => 'js'), :method => 'delete', :remote => true, :title => '删除', :class => 'remove-upload fl', :confirm => l(:text_are_you_sure)) if attachment.id && User.current == attachment.author %>
|
||||||
<span class="ml5">(<%= number_to_human_size attachment.filesize %>)</span>
|
<span class="ml5 fl">(<%= number_to_human_size attachment.filesize %>)</span>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
if($("#about_hwork_<%= @work.id%>").children().length > 0)
|
if($("#about_hwork_<%= @work.id%>").children().length > 0){
|
||||||
{$("#about_hwork_<%= @work.id%>").html("");}
|
$("#about_hwork_<%= @work.id%>").html("");
|
||||||
else
|
}
|
||||||
{
|
else{
|
||||||
<% if @homework.homework_type == 2%>
|
<% if @homework.homework_type == 2%>
|
||||||
$("#about_hwork_<%= @work.id%>").html("<%= escape_javascript(render :partial => 'programing_work_show') %>");
|
$("#about_hwork_<%= @work.id%>").html("<%= escape_javascript(render :partial => 'programing_work_show') %>");
|
||||||
<% else%>
|
<% else%>
|
||||||
$("#about_hwork_<%= @work.id%>").html("<%= escape_javascript(render :partial => 'show') %>");
|
$("#about_hwork_<%= @work.id%>").html("<%= escape_javascript(render :partial => 'show') %>");
|
||||||
<% end%>
|
<% end%>
|
||||||
$('#score_<%= @work.id%>').peSlider({range: 'min'});
|
$('#score_<%= @work.id%>').peSlider({range: 'min'});
|
||||||
}
|
}
|
Loading…
Reference in new issue