修复老师角色在没有任何附件情况下点击打包下载报500错误的BUG #1209
解决方案:增加判断是否有一个以上附件,当没有任何附件时,跳转到相应页面,提示用户没有任何文件可以下载course_group
parent
dec8b70895
commit
f70edc1a0b
@ -0,0 +1,42 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>File not found</title>
|
||||
<style>
|
||||
body{
|
||||
font-family: Trebuchet MS,Georgia,"Times New Roman",serif;
|
||||
color:#303030;
|
||||
}
|
||||
div.container{
|
||||
margin: 0 auto;
|
||||
width: 80%;
|
||||
}
|
||||
h1{
|
||||
font-size:1.5em;
|
||||
}
|
||||
p{
|
||||
font-size:0.8em;
|
||||
}
|
||||
.hidden{
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" >
|
||||
<!--<h1>Sorry, this file can not be downloaded now. </h1>-->
|
||||
<h1>该作业没有任何的附件可以下载</h1>
|
||||
<h3> <a href="http://forge.trustie.net" style="">返回主页</a> </h3>
|
||||
|
||||
<div class="container" style="">
|
||||
<div style="position: relative; right:0;text-align: right;">
|
||||
<h4>Trustie开发团队.</h4>
|
||||
</div>
|
||||
</div>
|
||||
<p class="hidden" >
|
||||
<a href="javascript:history.back()">Back</a>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue