Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
1a5b5e19
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1a5b5e19
编写于
1月 03, 2013
作者:
G
Gosha Arinich
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move error page js into script tag
上级
f8633f9f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
27 addition
and
5 deletion
+27
-5
actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
...ch/middleware/templates/rescues/_request_and_response.erb
+3
-3
actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.erb
...b/action_dispatch/middleware/templates/rescues/_trace.erb
+2
-2
actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
...b/action_dispatch/middleware/templates/rescues/layout.erb
+22
-0
未找到文件。
actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
浏览文件 @
1a5b5e19
<%
unless
@exception
.
blamed_files
.
blank?
%>
<%
if
(
hide
=
@exception
.
blamed_files
.
length
>
8
)
%>
<a
href=
"#"
onclick=
"
s = document.getElementById('blame_trace').style; s.display = s.display == 'none' ? 'block' : 'none'; return false;
"
>
Toggle blamed files
</a>
<a
href=
"#"
onclick=
"
toggleTrace()
"
>
Toggle blamed files
</a>
<%
end
%>
<pre
id=
"blame_trace"
<%=
'style="display:none"'
if
hide
%>
><code>
<%=
h
@exception
.
describe_blame
%>
</code></pre>
<%
end
%>
...
...
@@ -21,12 +21,12 @@
<p><b>
Parameters
</b>
:
</p>
<pre>
<%=
h
request_dump
%>
</pre>
<div
class=
"details"
>
<div
class=
"summary"
><a
href=
"#"
onclick=
"
s = document.getElementById('session_dump').style; s.display = s.display == 'none' ? 'block' : 'none'; return false;
"
>
Toggle session dump
</a></div>
<div
class=
"summary"
><a
href=
"#"
onclick=
"
toggleSessionDump()
"
>
Toggle session dump
</a></div>
<div
id=
"session_dump"
style=
"display:none"
><pre>
<%=
debug_hash
@request
.
session
%>
</pre></div>
</div>
<div
class=
"details"
>
<div
class=
"summary"
><a
href=
"#"
onclick=
"
s = document.getElementById('env_dump').style; s.display = s.display == 'none' ? 'block' : 'none'; return false;
"
>
Toggle env dump
</a></div>
<div
class=
"summary"
><a
href=
"#"
onclick=
"
toggleEnvDump()
"
>
Toggle env dump
</a></div>
<div
id=
"env_dump"
style=
"display:none"
><pre>
<%=
debug_hash
@request
.
env
.
slice
(
*
@request
.
class
::
ENV_METHODS
)
%>
</pre></div>
</div>
...
...
actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.erb
浏览文件 @
1a5b5e19
...
...
@@ -12,8 +12,8 @@
<div
id=
"traces"
>
<%
names
.
each
do
|
name
|
%>
<%
show
=
"
document.getElementById('
#{
name
.
gsub
(
/\s/
,
'-'
)
}
').style.display='block'
;"
hide
=
(
names
-
[
name
]).
collect
{
|
hide_name
|
"
document.getElementById('
#{
hide_name
.
gsub
(
/\s/
,
'-'
)
}
').style.display='none'
;"
}
show
=
"
show('
#{
name
.
gsub
(
/\s/
,
'-'
)
}
')
;"
hide
=
(
names
-
[
name
]).
collect
{
|
hide_name
|
"
hide('
#{
hide_name
.
gsub
(
/\s/
,
'-'
)
}
')
;"
}
%>
<a
href=
"#"
onclick=
"
<%=
hide
.
join
%><%=
show
%>
; return false;"
>
<%=
name
%>
</a>
<%=
'|'
unless
names
.
last
==
name
%>
<%
end
%>
...
...
actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
浏览文件 @
1a5b5e19
...
...
@@ -114,6 +114,28 @@
a
:visited
{
color
:
#666
;
}
a
:hover
{
color
:
#C52F24
;
}
</style>
<script>
var
toggle
=
function
(
id
)
{
var
s
=
document
.
getElementById
(
id
).
style
;
s
.
display
=
s
.
display
==
'
none
'
?
'
block
'
:
'
none
'
;
}
var
show
=
function
(
id
)
{
document
.
getElementById
(
id
).
style
.
display
=
'
block
'
;
}
var
hide
=
function
(
id
)
{
document
.
getElementById
(
id
).
style
.
display
=
'
none
'
;
}
var
toggleTrace
=
function
()
{
toggle
(
'
blame_trace
'
);
}
var
toggleSessionDump
=
function
()
{
toggle
(
'
session_dump
'
);
}
var
toggleEnvDump
=
function
()
{
toggle
(
'
env_dump
'
);
}
</script>
</head>
<body>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录