can't download, html. after exception return;
This commit is contained in:
parent
803e9cbdb5
commit
056f86caad
|
@ -61,6 +61,7 @@ class AttachmentsController < ApplicationController
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
redirect_to "http://" + (Setting.host_name.to_s) +"/file_not_found.html"
|
redirect_to "http://" + (Setting.host_name.to_s) +"/file_not_found.html"
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
#更新资源文件类型
|
#更新资源文件类型
|
||||||
|
|
|
@ -1,23 +1,40 @@
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
<!DOCTYPE HTML>
|
||||||
"http://www.w3.org/TR/html4/loose.dtd">
|
|
||||||
<html>
|
<html>
|
||||||
<title>File not found</title>
|
<head>
|
||||||
<style>
|
<title>File not found</title>
|
||||||
body{
|
<style>
|
||||||
font-family: Trebuchet MS,Georgia,"Times New Roman",serif;
|
body{
|
||||||
color:#303030;
|
font-family: Trebuchet MS,Georgia,"Times New Roman",serif;
|
||||||
margin:10px;
|
color:#303030;
|
||||||
}
|
}
|
||||||
h1{
|
div.container{
|
||||||
font-size:1.5em;
|
margin: 0 auto;
|
||||||
}
|
width: 80%;
|
||||||
p{
|
}
|
||||||
font-size:0.8em;
|
h1{
|
||||||
}
|
font-size:1.5em;
|
||||||
</style>
|
}
|
||||||
|
p{
|
||||||
|
font-size:0.8em;
|
||||||
|
}
|
||||||
|
.hidden{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Sorry, this file can not be downloaded now. </h1>
|
<div class="container" >
|
||||||
<p>Trustie Team.</p>
|
<h1>Sorry, this file can not be downloaded now. </h1>
|
||||||
<p><a href="javascript:history.back()">Back</a></p>
|
<h3> <a href="http://forge.trustie.net" style="">Goto Home page</a> </h3>
|
||||||
|
|
||||||
|
<div class="container" style="">
|
||||||
|
<div style="position: relative; right:0;text-align: right;">
|
||||||
|
<h4>Trustie Team.</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="hidden" >
|
||||||
|
<a href="javascript:history.back()">Back</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue