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,12 +1,15 @@
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
<!DOCTYPE HTML>
|
||||||
"http://www.w3.org/TR/html4/loose.dtd">
|
|
||||||
<html>
|
<html>
|
||||||
|
<head>
|
||||||
<title>File not found</title>
|
<title>File not found</title>
|
||||||
<style>
|
<style>
|
||||||
body{
|
body{
|
||||||
font-family: Trebuchet MS,Georgia,"Times New Roman",serif;
|
font-family: Trebuchet MS,Georgia,"Times New Roman",serif;
|
||||||
color:#303030;
|
color:#303030;
|
||||||
margin:10px;
|
}
|
||||||
|
div.container{
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 80%;
|
||||||
}
|
}
|
||||||
h1{
|
h1{
|
||||||
font-size:1.5em;
|
font-size:1.5em;
|
||||||
|
@ -14,10 +17,24 @@ font-size:1.5em;
|
||||||
p{
|
p{
|
||||||
font-size:0.8em;
|
font-size:0.8em;
|
||||||
}
|
}
|
||||||
|
.hidden{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div class="container" >
|
||||||
<h1>Sorry, this file can not be downloaded now. </h1>
|
<h1>Sorry, this file can not be downloaded now. </h1>
|
||||||
<p>Trustie Team.</p>
|
<h3> <a href="http://forge.trustie.net" style="">Goto Home page</a> </h3>
|
||||||
<p><a href="javascript:history.back()">Back</a></p>
|
|
||||||
|
<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