commit
5439dc2cdc
@ -1,193 +1,192 @@
|
|||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
div.talk_new .ke-container{margin-left:2px;}
|
div.talk_new .ke-container{margin-left:2px;}
|
||||||
.break_word {width:100%;}
|
</style>
|
||||||
</style>
|
<script type="text/javascript">
|
||||||
<script type="text/javascript">
|
//头部导航
|
||||||
//头部导航
|
var menuids=["TopUserNav"] //Enter id(s) of SuckerTree UL menus, separated by commas
|
||||||
var menuids=["TopUserNav"] //Enter id(s) of SuckerTree UL menus, separated by commas
|
function buildsubmenus(){
|
||||||
function buildsubmenus(){
|
for (var i=0; i<menuids.length; i++){
|
||||||
for (var i=0; i<menuids.length; i++){
|
var div = document.getElementById(menuids[i]);
|
||||||
var div = document.getElementById(menuids[i]);
|
if(div == undefined)continue;
|
||||||
if(div == undefined)continue;
|
var ultags=div.getElementsByTagName("ul");
|
||||||
var ultags=div.getElementsByTagName("ul");
|
for (var t=0; t<ultags.length; t++){
|
||||||
for (var t=0; t<ultags.length; t++){
|
ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle";
|
||||||
ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle";
|
ultags[t].parentNode.onmouseover=function(){
|
||||||
ultags[t].parentNode.onmouseover=function(){
|
this.getElementsByTagName("ul")[0].style.display="block";
|
||||||
this.getElementsByTagName("ul")[0].style.display="block";
|
}
|
||||||
}
|
ultags[t].parentNode.onmouseout=function(){
|
||||||
ultags[t].parentNode.onmouseout=function(){
|
this.getElementsByTagName("ul")[0].style.display="none";
|
||||||
this.getElementsByTagName("ul")[0].style.display="none";
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
if (window.addEventListener)
|
||||||
if (window.addEventListener)
|
window.addEventListener("load", buildsubmenus, false)
|
||||||
window.addEventListener("load", buildsubmenus, false)
|
else if (window.attachEvent)
|
||||||
else if (window.attachEvent)
|
window.attachEvent("onload", buildsubmenus)
|
||||||
window.attachEvent("onload", buildsubmenus)
|
</script>
|
||||||
</script>
|
<%= import_ke(enable_at: false, prettify: false) %>
|
||||||
<%= import_ke(enable_at: false, prettify: false) %>
|
|
||||||
|
|
||||||
|
<%= render :partial => 'blogs/article_list', :locals => {:blog=>@user.blog,:topics => @topics, :page => 0, :user => @user} %>
|
||||||
<%= render :partial => 'blogs/article_list', :locals => {:blog=>@user.blog,:topics => @topics, :page => 0, :user => @user} %>
|
|
||||||
|
|
||||||
|
<script type="text/javascript">//侧导航
|
||||||
<script type="text/javascript">//侧导航
|
|
||||||
|
function nh_check_field(params){
|
||||||
function nh_check_field(params){
|
var result=true;
|
||||||
var result=true;
|
if(params.subject!=undefined){
|
||||||
if(params.subject!=undefined){
|
if($.trim(params.subject.val()) == ""){
|
||||||
if($.trim(params.subject.val()) == ""){
|
params.subjectmsg.html('主题不能为空');
|
||||||
params.subjectmsg.html('主题不能为空');
|
params.subjectmsg.css({color:'#ff0000'});
|
||||||
params.subjectmsg.css({color:'#ff0000'});
|
result=false;
|
||||||
result=false;
|
}else{
|
||||||
}else{
|
params.subjectmsg.html('填写正确');
|
||||||
params.subjectmsg.html('填写正确');
|
params.subjectmsg.css({color:'#008000'});
|
||||||
params.subjectmsg.css({color:'#008000'});
|
}
|
||||||
}
|
params.subjectmsg.show();
|
||||||
params.subjectmsg.show();
|
}
|
||||||
}
|
|
||||||
|
if(params.content!=undefined){
|
||||||
if(params.content!=undefined){
|
if(params.content.isEmpty()){
|
||||||
if(params.content.isEmpty()){
|
result=false;
|
||||||
result=false;
|
}
|
||||||
}
|
if(params.content.html()!=params.textarea.html() || params.issubmit==true){
|
||||||
if(params.content.html()!=params.textarea.html() || params.issubmit==true){
|
params.textarea.html(params.content.html());
|
||||||
params.textarea.html(params.content.html());
|
params.content.sync(); //用上面那句ie11提交到服务器居然木有值
|
||||||
params.content.sync(); //用上面那句ie11提交到服务器居然木有值
|
if(params.content.isEmpty()){
|
||||||
if(params.content.isEmpty()){
|
params.contentmsg.html('内容不能为空');
|
||||||
params.contentmsg.html('内容不能为空');
|
params.contentmsg.css({color:'#ff0000'});
|
||||||
params.contentmsg.css({color:'#ff0000'});
|
}else{
|
||||||
}else{
|
params.contentmsg.html('填写正确');
|
||||||
params.contentmsg.html('填写正确');
|
params.contentmsg.css({color:'#008000'});
|
||||||
params.contentmsg.css({color:'#008000'});
|
}
|
||||||
}
|
params.contentmsg.show();
|
||||||
params.contentmsg.show();
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
return result;
|
||||||
return result;
|
}
|
||||||
}
|
function nh_init_board(params){
|
||||||
function nh_init_board(params){
|
//发帖/编辑/回复按钮的click
|
||||||
//发帖/编辑/回复按钮的click
|
params.showbtn.click(function(){
|
||||||
params.showbtn.click(function(){
|
params.textarea.removeAttr('placeholder');
|
||||||
params.textarea.removeAttr('placeholder');
|
if(params.textarea.data('init') == undefined){
|
||||||
if(params.textarea.data('init') == undefined){
|
//初始化编辑器
|
||||||
//初始化编辑器
|
var editor = params.kindutil.create(params.textarea, {
|
||||||
var editor = params.kindutil.create(params.textarea, {
|
// allowPreviewEmoticons : false,
|
||||||
// allowPreviewEmoticons : false,
|
// allowImageUpload : false,
|
||||||
// allowImageUpload : false,
|
autoHeightMode : true,
|
||||||
autoHeightMode : true,
|
resizeType : 1,minWidth:"1px",width:"560px",height:"150px",
|
||||||
resizeType : 1,minWidth:"1px",width:"560px",height:"150px",
|
allowFileManager:true,uploadJson:"/kindeditor/upload",
|
||||||
allowFileManager:true,uploadJson:"/kindeditor/upload",
|
fileManagerJson:"/kindeditor/filemanager",
|
||||||
fileManagerJson:"/kindeditor/filemanager",
|
afterChange:function(){//按键事件
|
||||||
afterChange:function(){//按键事件
|
nh_check_field({content:this,contentmsg:params.contentmsg,textarea:params.textarea});
|
||||||
nh_check_field({content:this,contentmsg:params.contentmsg,textarea:params.textarea});
|
// var edit = this.edit;
|
||||||
// var edit = this.edit;
|
// var body = edit.doc.body;
|
||||||
// var body = edit.doc.body;
|
// edit.iframe.height(minHeight);
|
||||||
// edit.iframe.height(minHeight);
|
// this.resize(null, Math.max((params.kindutil.IE ? body.scrollHeight : body.offsetHeight) + 30, minHeight));
|
||||||
// this.resize(null, Math.max((params.kindutil.IE ? body.scrollHeight : body.offsetHeight) + 30, minHeight));
|
},
|
||||||
},
|
afterCreate:function(){
|
||||||
afterCreate:function(){
|
this.loadPlugin("autoheight");
|
||||||
this.loadPlugin("autoheight");
|
var userAgent = navigator.userAgent.toLowerCase();
|
||||||
var userAgent = navigator.userAgent.toLowerCase();
|
if(/trident/.test(userAgent)){
|
||||||
if(/trident/.test(userAgent)){
|
$("div.talk_new .ke-container").css({'margin-left':'0px'});
|
||||||
$("div.talk_new .ke-container").css({'margin-left':'0px'});
|
}
|
||||||
}
|
// var toolbar = $("div[class='ke-toolbar']",params.about_talk);
|
||||||
// var toolbar = $("div[class='ke-toolbar']",params.about_talk);
|
// $(".ke-outline>.ke-toolbar-icon",toolbar).append('表情');
|
||||||
// $(".ke-outline>.ke-toolbar-icon",toolbar).append('表情');
|
// params.toolbar_container.append(toolbar);
|
||||||
// params.toolbar_container.append(toolbar);
|
}
|
||||||
}
|
}).loadPlugin('paste');
|
||||||
}).loadPlugin('paste');
|
|
||||||
|
//主题输入框按键事件
|
||||||
//主题输入框按键事件
|
params.inputsubject.keyup(function(){
|
||||||
params.inputsubject.keyup(function(){
|
nh_check_field({subject:params.inputsubject,subjectmsg:params.subjectmsg});
|
||||||
nh_check_field({subject:params.inputsubject,subjectmsg:params.subjectmsg});
|
})
|
||||||
})
|
//表单提交
|
||||||
//表单提交
|
params.form.submit(function(){
|
||||||
params.form.submit(function(){
|
var is_checked = nh_check_field({
|
||||||
var is_checked = nh_check_field({
|
issubmit:true,
|
||||||
issubmit:true,
|
subject:params.inputsubject,
|
||||||
subject:params.inputsubject,
|
subjectmsg:params.subjectmsg,
|
||||||
subjectmsg:params.subjectmsg,
|
content:editor,
|
||||||
content:editor,
|
contentmsg:params.contentmsg,
|
||||||
contentmsg:params.contentmsg,
|
textarea:params.textarea
|
||||||
textarea:params.textarea
|
});
|
||||||
});
|
if(is_checked){
|
||||||
if(is_checked){
|
//return true 居然不提交 fuck your sister
|
||||||
//return true 居然不提交 fuck your sister
|
$(this)[0].submit();
|
||||||
$(this)[0].submit();
|
// return true;
|
||||||
// return true;
|
}
|
||||||
}
|
return false;
|
||||||
return false;
|
});
|
||||||
});
|
//提交按钮click
|
||||||
//提交按钮click
|
params.submitbtn.click(function(){
|
||||||
params.submitbtn.click(function(){
|
params.form.submit();
|
||||||
params.form.submit();
|
});
|
||||||
});
|
//取消按钮click
|
||||||
//取消按钮click
|
params.cancelbtn.click(function(){
|
||||||
params.cancelbtn.click(function(){
|
params.about_talk.toggle();//显示/隐藏编辑区
|
||||||
params.about_talk.toggle();//显示/隐藏编辑区
|
if(params.about_talk.is(':hidden')){//隐藏时reset表单数据
|
||||||
if(params.about_talk.is(':hidden')){//隐藏时reset表单数据
|
params.form[0].reset();
|
||||||
params.form[0].reset();
|
if(params.type=='reply'){
|
||||||
if(params.type=='reply'){
|
params.textarea.empty();
|
||||||
params.textarea.empty();
|
}else{
|
||||||
}else{
|
params.textarea.html(params.init_content_val.val());
|
||||||
params.textarea.html(params.init_content_val.val());
|
}
|
||||||
}
|
var str = params.textarea.html();
|
||||||
var str = params.textarea.html();
|
str=str.replace(new RegExp(/</g),'<');
|
||||||
str=str.replace(new RegExp(/</g),'<');
|
str=str.replace(new RegExp(/>/g),'>');
|
||||||
str=str.replace(new RegExp(/>/g),'>');
|
editor.html(str);
|
||||||
editor.html(str);
|
params.subjectmsg.hide();
|
||||||
params.subjectmsg.hide();
|
params.contentmsg.hide();
|
||||||
params.contentmsg.hide();
|
if(params.quote_show!=undefined)params.quote_show.empty();
|
||||||
if(params.quote_show!=undefined)params.quote_show.empty();
|
if(params.quote_input!=undefined)params.quote_input.empty();
|
||||||
if(params.quote_input!=undefined)params.quote_input.empty();
|
}else{
|
||||||
}else{
|
if(params.type=='reply'){
|
||||||
if(params.type=='reply'){
|
params.textarea.show();
|
||||||
params.textarea.show();
|
params.textarea.focus();
|
||||||
params.textarea.focus();
|
params.textarea.hide();
|
||||||
params.textarea.hide();
|
//params.jumphref.attr('href','#'+params.form.attr('id'));
|
||||||
//params.jumphref.attr('href','#'+params.form.attr('id'));
|
//params.jumphref[0].click();
|
||||||
//params.jumphref[0].click();
|
}else{
|
||||||
}else{
|
params.textarea.show();
|
||||||
params.textarea.show();
|
params.textarea.focus();
|
||||||
params.textarea.focus();
|
params.textarea.hide();
|
||||||
params.textarea.hide();
|
// params.inputsubject.focus();
|
||||||
// params.inputsubject.focus();
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
params.textarea.data('init','1');//标记为已经初始化
|
||||||
params.textarea.data('init','1');//标记为已经初始化
|
}
|
||||||
}
|
params.cancelbtn.click();//显示/隐藏编辑区
|
||||||
params.cancelbtn.click();//显示/隐藏编辑区
|
});
|
||||||
});
|
if(params.type == 'reply'){
|
||||||
if(params.type == 'reply'){
|
params.showbtn_child.click(function(){
|
||||||
params.showbtn_child.click(function(){
|
if(params.textarea.data('init') == undefined){
|
||||||
if(params.textarea.data('init') == undefined){
|
params.showbtn.click();
|
||||||
params.showbtn.click();
|
}else{
|
||||||
}else{
|
params.cancelbtn.click();
|
||||||
params.cancelbtn.click();
|
if(params.about_talk.is(':hidden')){
|
||||||
if(params.about_talk.is(':hidden')){
|
params.cancelbtn.click();
|
||||||
params.cancelbtn.click();
|
}
|
||||||
}
|
}
|
||||||
}
|
var parent_topic_id = $(this).data('topic-id');
|
||||||
var parent_topic_id = $(this).data('topic-id');
|
if(parent_topic_id!=undefined)$("input[name='parent_topic']",params.form).val(parent_topic_id);
|
||||||
if(parent_topic_id!=undefined)$("input[name='parent_topic']",params.form).val(parent_topic_id);
|
var ref_str = params.get_ref_str_call($(this));
|
||||||
var ref_str = params.get_ref_str_call($(this));
|
params.quote_show.html(ref_str);
|
||||||
params.quote_show.html(ref_str);
|
params.quote_input.html(ref_str);
|
||||||
params.quote_input.html(ref_str);
|
});
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
</script>
|
||||||
</script>
|
<script type="text/javascript">
|
||||||
<script type="text/javascript">
|
$(function(){
|
||||||
$(function(){
|
setTimeout(function(){
|
||||||
setTimeout(function(){
|
elocalStorage(message_content_editor,'blog_<%=User.current.id %>');
|
||||||
elocalStorage(message_content_editor,'blog_<%=User.current.id %>');
|
}, 10000);
|
||||||
}, 10000);
|
});
|
||||||
});
|
</script>
|
||||||
</script>
|
|
||||||
|
@ -1,71 +1,71 @@
|
|||||||
<table class="hwork-table-wrap" style="border-bottom:1px solid #eaeaea;">
|
<table class="hwork-table-wrap" style="border-bottom:1px solid #eaeaea;">
|
||||||
<tr class="b_grey hworkH30">
|
<tr class="b_grey hworkH30">
|
||||||
<th class="hworkList30 pl5 pr5"><span class="c_dark f14 fb">序号</span></th>
|
<th class="hworkList30 pl5 pr5"><span class="c_dark f14 fb">序号</span></th>
|
||||||
<th class="hworkList50"> </th>
|
<th class="hworkList50"> </th>
|
||||||
<th class="hworkList60"><span class="c_dark f14 fb">姓名</span></th>
|
<th class="hworkList130"><span class="c_dark f14 fb">姓名</span></th>
|
||||||
<th class="hworkList80"><span class="c_dark f14 fb">学号</span></th>
|
<th class="hworkList130"><span class="c_dark f14 fb">学号</span></th>
|
||||||
<th class="hworkList80"><span class="c_dark f14 fb">班级</span></th>
|
<th class="hworkList130"><span class="c_dark f14 fb">班级</span></th>
|
||||||
<th width="230"> </th>
|
<th width="60"> </th>
|
||||||
<th class="hworkList130">
|
<th class="hworkList130">
|
||||||
<%= link_to "时间",'',:class => "c_dark f14 fb" ,:remote => true%>
|
<%= link_to "时间",'',:class => "c_dark f14 fb" ,:remote => true%>
|
||||||
</th>
|
</th>
|
||||||
<th class="hworkList50">
|
<th class="hworkList50">
|
||||||
<%= link_to "成绩",'',:class => "c_dark f14 fb",:remote => true%>
|
<%= link_to "成绩",'',:class => "c_dark f14 fb",:remote => true%>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<% @exercise_users_list.each_with_index do |exercise, index|%>
|
<% @exercise_users_list.each_with_index do |exercise, index|%>
|
||||||
<tr class="hworkListRow" id="student_work_<%= exercise.id%>">
|
<tr class="hworkListRow" id="student_work_<%= exercise.id%>">
|
||||||
<td class="pl5 pr5" style="text-align:center;"><%=index + 1 %></td>
|
<td class="pl5 pr5" style="text-align:center;"><%=index + 1 %></td>
|
||||||
<td class="hworkPortrait pr10 float-none">
|
<td class="hworkPortrait float-none">
|
||||||
<%= link_to(image_tag(url_to_avatar(exercise.user),:width =>"40",:height => "40",:style => "display:block;", :class => "mt15"),user_activities_path(exercise.user)) %>
|
<%= link_to(image_tag(url_to_avatar(exercise.user),:width =>"40",:height => "40",:style => "display:block;", :class => "mt15"),user_activities_path(exercise.user)) %>
|
||||||
|
</td>
|
||||||
|
<td class="hworkStName130 pr10 student_work_<%= exercise.id%>" title="姓名" id="student_name_<%= exercise.id%>" style="cursor:pointer;">
|
||||||
|
<%=exercise.user.show_name %>
|
||||||
|
</td>
|
||||||
|
<td class="hworkStID130 pr10 student_work_<%= exercise.id%> float-none" title="学号" id="student_id_<%= exercise.id%>" style="cursor:pointer;">
|
||||||
|
<span class="hidden fl" style="width:130px;"><%= exercise.user.user_extensions.nil? ? "--" : exercise.user.user_extensions.student_id%></span>
|
||||||
</td>
|
</td>
|
||||||
<td class="hworkStName student_work_<%= exercise.id%>" title="姓名" id="student_name_<%= exercise.id%>" style="cursor:pointer;">
|
<td class="hworkStID130 student_work_<%= exercise.id%> float-none" title="班级" id="student_class_<%= exercise.id%>" style="cursor:pointer;">
|
||||||
<%=exercise.user.show_name %>
|
--
|
||||||
</td>
|
</td>
|
||||||
<td class="hworkStID student_work_<%= exercise.id%> pl15 pr10 float-none" title="学号" id="student_id_<%= exercise.id%>" style="cursor:pointer;">
|
<td width="60"> </td>
|
||||||
<span class="hidden fl" style="width:55px;"><%= exercise.user.user_extensions.nil? ? "--" : exercise.user.user_extensions.student_id%></span>
|
<td class="hworkList130 c_grey">
|
||||||
</td>
|
<% if exercise.created_at%>
|
||||||
<td class="hworkStID student_work_<%= exercise.id%> float-none" title="班级" id="student_class_<%= exercise.id%>" style="cursor:pointer;">
|
<%= Time.parse(format_time(exercise.created_at)).strftime("%m-%d %H:%M")%>
|
||||||
--
|
<% if @exercise.end_time <= exercise.created_at %>
|
||||||
</td>
|
<span class="c_red">[未答]</span>
|
||||||
<td width="230"> </td>
|
<% end %>
|
||||||
<td class="hworkList130 c_grey">
|
<% end %>
|
||||||
<% if exercise.created_at%>
|
</td>
|
||||||
<%= Time.parse(format_time(exercise.created_at)).strftime("%m-%d %H:%M")%>
|
<td class="hworkList50 <%= score_color exercise.score%> student_final_scor_info">
|
||||||
<% if @exercise.end_time <= exercise.created_at %>
|
<%= exercise.score.nil? ? "--" : format("%.1f",exercise.score)%>
|
||||||
<span class="c_red">[未答]</span>
|
</td>
|
||||||
<% end %>
|
<td><div style="position:relative;"><div class="hworkTip" style="display: none" id="work_click_<%= exercise.id%>"><em></em><span></span><font class="fontGrey2">点击查看详情</font></div></div></td>
|
||||||
<% end %>
|
</tr>
|
||||||
</td>
|
|
||||||
<td class="hworkList50 <%= score_color exercise.score%> student_final_scor_info">
|
<script type="text/javascript">
|
||||||
<%= exercise.score.nil? ? "--" : format("%.1f",exercise.score)%>
|
$(function(){
|
||||||
</td>
|
<% if Time.parse(h(@exercise.end_time)).strftime("%Y-%m-%d-%H-%M-%S") <= Time.now.strftime("%Y-%m-%d-%H-%M-%S") %>
|
||||||
<td><div style="position:relative;"><div class="hworkTip" style="display: none" id="work_click_<%= exercise.id%>"><em></em><span></span><font class="fontGrey2">点击查看详情</font></div></div></td>
|
$(".student_work_<%= exercise.id%>").mouseenter(function(){
|
||||||
</tr>
|
$("#work_click_<%= exercise.id%>").show();
|
||||||
|
}).mouseleave(function(){
|
||||||
<script type="text/javascript">
|
$("#work_click_<%= exercise.id%>").hide();
|
||||||
$(".student_work_<%= exercise.id%>").mouseenter(function(){
|
}).mouse;
|
||||||
$("#work_click_<%= exercise.id%>").show();
|
$("#student_name_<%= exercise.id%>,#student_id_<%= exercise.id%>,#student_class_<%= exercise.id%>").on('click',function() {
|
||||||
}).mouseleave(function(){
|
window.location.href = '<%=show_student_result_exercise_path(@exercise,:user_id => exercise.user_id) %>';
|
||||||
$("#work_click_<%= exercise.id%>").hide();
|
});
|
||||||
}).mouse;
|
<% else %>
|
||||||
$(function(){
|
//$("#show_student_result_div_<%#= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
||||||
<% if Time.parse(h(@exercise.end_time)).strftime("%Y-%m-%d-%H-%M-%S") <= Time.now.strftime("%Y-%m-%d-%H-%M-%S") %>
|
$("#student_name_<%= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
||||||
$("#student_name_<%= exercise.id%>,#student_id_<%= exercise.id%>,#student_class_<%= exercise.id%>").on('click',function() {
|
$("#student_id_<%= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
||||||
window.location.href = '<%=show_student_result_exercise_path(@exercise,:user_id => exercise.user_id) %>';
|
$("#student_class_<%= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
||||||
});
|
<% end %>
|
||||||
<% else %>
|
});
|
||||||
//$("#show_student_result_div_<%#= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
/*function show_result(id) {
|
||||||
$("#student_name_<%= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
window.location.href = '<%#=show_student_result_exercise_path(@exercise,:user_id => exercise.user.id) %>';
|
||||||
$("#student_id_<%= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
}*/
|
||||||
$("#student_class_<%= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
</script>
|
||||||
<% end %>
|
|
||||||
});
|
<% end%>
|
||||||
/*function show_result(id) {
|
|
||||||
window.location.href = '<%#=show_student_result_exercise_path(@exercise,:user_id => exercise.user.id) %>';
|
|
||||||
}*/
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<% end%>
|
|
||||||
</table>
|
</table>
|
@ -0,0 +1,6 @@
|
|||||||
|
<div class="project-block">
|
||||||
|
<div class="wiki-description">
|
||||||
|
<p><%= textilizable(project.short_description.strip, :project => project) %></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddIndexToStudentWorkTests < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_index :student_work_tests, :student_work_id
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,7 @@
|
|||||||
|
class AddIndexToCourseContributorScores < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_index :course_contributor_scores, [:course_id, :user_id]
|
||||||
|
add_index :members, :course_id
|
||||||
|
add_index :course_groups, :course_id
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue