Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
5f269399
Commit
5f269399
authored
May 27, 2013
by
resurtm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better exception page look.
parent
cc5426e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
15 deletions
+19
-15
main.php
framework/yii/views/errorHandler/main.php
+19
-15
No files found.
framework/yii/views/errorHandler/main.php
View file @
5f269399
...
...
@@ -205,7 +205,6 @@ html,body{
background-color
:
#ffebeb
;
position
:
absolute
;
width
:
100%
;
height
:
18px
;
z-index
:
100
;
margin-top
:
-61px
;
}
...
...
@@ -227,20 +226,25 @@ html,body{
z-index
:
200
;
display
:
block
;
color
:
#aaa
;
line-height
:
18
px
;
font-size
:
1
4
px
;
margin-top
:
-6
1
px
;
line-height
:
20
px
;
font-size
:
1
2
px
;
margin-top
:
-6
3
px
;
font-family
:
Consolas
,
Courier
New
,
monospace
;
}
.call-stack
ul
li
.code
pre
{
position
:
relative
;
z-index
:
200
;
left
:
50px
;
line-height
:
17
px
;
font-size
:
1
4
px
;
line-height
:
20
px
;
font-size
:
1
2
px
;
font-family
:
Consolas
,
Courier
New
,
monospace
;
display
:
inline
;
}
@-moz-document
url-prefix
()
{
.call-stack
ul
li
.code
pre
{
line-height
:
20px
;
}
}
/* request */
.request
{
...
...
@@ -421,10 +425,10 @@ window.onload = function() {
lineFound
=
false
,
hoverLines
=
Sizzle
(
'.hover-line'
);
for
(
var
i
=
0
,
imax
=
codeBlocks
.
length
;
i
<
imax
;
++
i
)
{
for
(
var
i
=
0
,
imax
=
codeBlocks
.
length
-
1
;
i
<
imax
;
++
i
)
{
var
lines
=
codeBlocks
[
i
].
getClientRects
();
for
(
var
j
=
0
,
jmax
=
lines
.
length
;
j
<
jmax
;
++
j
)
{
if
(
clientY
>
lines
[
j
].
top
&&
clientY
<
lines
[
j
].
bottom
)
{
if
(
clientY
>
=
lines
[
j
].
top
&&
clientY
<=
lines
[
j
].
bottom
)
{
lineFound
=
true
;
break
;
}
...
...
@@ -438,9 +442,9 @@ window.onload = function() {
hoverLines
[
k
].
className
=
'hover-line'
;
}
if
(
lineFound
)
{
var
line
=
Sizzle
(
'.call-stack-item:eq('
+
i
+
') .hover-line:eq('
+
j
+
')'
);
if
(
line
[
0
]
)
{
line
[
0
]
.
className
=
'hover-line hover'
;
var
line
=
Sizzle
(
'.call-stack-item:eq('
+
i
+
') .hover-line:eq('
+
j
+
')'
)
[
0
]
;
if
(
line
)
{
line
.
className
=
'hover-line hover'
;
}
}
};
...
...
@@ -459,11 +463,11 @@ window.onload = function() {
continue
;
}
lineNumbers
[
i
].
style
.
top
=
parseInt
(
lines
[
i
].
top
-
top
)
+
'px'
;
hoverLines
[
i
].
style
.
top
=
parseInt
(
lines
[
i
].
top
-
top
)
+
'px'
;
hoverLines
[
i
].
style
.
height
=
parseInt
(
lines
[
i
].
bottom
-
lines
[
i
].
top
+
1
)
+
'px'
;
hoverLines
[
i
].
style
.
top
=
parseInt
(
lines
[
i
].
top
-
top
-
3
)
+
'px'
;
hoverLines
[
i
].
style
.
height
=
parseInt
(
lines
[
i
].
bottom
-
lines
[
i
].
top
+
6
)
+
'px'
;
if
(
parseInt
(
callStackItem
.
getAttribute
(
'data-line'
))
==
i
)
{
errorLine
.
style
.
top
=
parseInt
(
lines
[
i
].
top
-
top
)
+
'px'
;
errorLine
.
style
.
height
=
parseInt
(
lines
[
i
].
bottom
-
lines
[
i
].
top
+
1
)
+
'px'
;
errorLine
.
style
.
top
=
parseInt
(
lines
[
i
].
top
-
top
-
3
)
+
'px'
;
errorLine
.
style
.
height
=
parseInt
(
lines
[
i
].
bottom
-
lines
[
i
].
top
+
6
)
+
'px'
;
}
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment