Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
50d5baf7
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
50d5baf7
编写于
4月 20, 2017
作者:
R
Rafael França
提交者:
Rafael Mendonça França
4月 20, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Merge pull request #28814 from halfbyte/fix_error_pages_for_turbolinks
Namespace CSS selectors on error pages
上级
724aa902
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
23 addition
and
18 deletion
+23
-18
railties/CHANGELOG.md
railties/CHANGELOG.md
+5
-0
railties/lib/rails/generators/rails/app/templates/public/404.html
.../lib/rails/generators/rails/app/templates/public/404.html
+6
-6
railties/lib/rails/generators/rails/app/templates/public/422.html
.../lib/rails/generators/rails/app/templates/public/422.html
+6
-6
railties/lib/rails/generators/rails/app/templates/public/500.html
.../lib/rails/generators/rails/app/templates/public/500.html
+6
-6
未找到文件。
railties/CHANGELOG.md
浏览文件 @
50d5baf7
*
Namespace error pages' CSS selectors to stop the styles from bleeding into other pages
when using Turbolinks.
*Jan Krutisch*
*
Raise a error when using a bad symlink
Previously bad symlinks (where the link destination doesn't exist)
...
...
railties/lib/rails/generators/rails/app/templates/public/404.html
浏览文件 @
50d5baf7
...
...
@@ -4,7 +4,7 @@
<title>
The page you were looking for doesn't exist (404)
</title>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1"
>
<style>
body
{
.rails-default-error-page
{
background-color
:
#EFEFEF
;
color
:
#2E2F30
;
text-align
:
center
;
...
...
@@ -12,13 +12,13 @@
margin
:
0
;
}
div
.dialog
{
.rails-default-error-page
div
.dialog
{
width
:
95%
;
max-width
:
33em
;
margin
:
4em
auto
0
;
}
div
.dialog
>
div
{
.rails-default-error-page
div
.dialog
>
div
{
border
:
1px
solid
#CCC
;
border-right-color
:
#999
;
border-left-color
:
#999
;
...
...
@@ -31,13 +31,13 @@
box-shadow
:
0
3px
8px
rgba
(
50
,
50
,
50
,
0.17
);
}
h1
{
.rails-default-error-page
h1
{
font-size
:
100%
;
color
:
#730E15
;
line-height
:
1.5em
;
}
div
.dialog
>
p
{
.rails-default-error-page
div
.dialog
>
p
{
margin
:
0
0
1em
;
padding
:
1em
;
background-color
:
#F7F7F7
;
...
...
@@ -54,7 +54,7 @@
</style>
</head>
<body>
<body
class=
"rails-default-error-page"
>
<!-- This file lives in public/404.html -->
<div
class=
"dialog"
>
<div>
...
...
railties/lib/rails/generators/rails/app/templates/public/422.html
浏览文件 @
50d5baf7
...
...
@@ -4,7 +4,7 @@
<title>
The change you wanted was rejected (422)
</title>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1"
>
<style>
body
{
.rails-default-error-page
{
background-color
:
#EFEFEF
;
color
:
#2E2F30
;
text-align
:
center
;
...
...
@@ -12,13 +12,13 @@
margin
:
0
;
}
div
.dialog
{
.rails-default-error-page
div
.dialog
{
width
:
95%
;
max-width
:
33em
;
margin
:
4em
auto
0
;
}
div
.dialog
>
div
{
.rails-default-error-page
div
.dialog
>
div
{
border
:
1px
solid
#CCC
;
border-right-color
:
#999
;
border-left-color
:
#999
;
...
...
@@ -31,13 +31,13 @@
box-shadow
:
0
3px
8px
rgba
(
50
,
50
,
50
,
0.17
);
}
h1
{
.rails-default-error-page
h1
{
font-size
:
100%
;
color
:
#730E15
;
line-height
:
1.5em
;
}
div
.dialog
>
p
{
.rails-default-error-page
div
.dialog
>
p
{
margin
:
0
0
1em
;
padding
:
1em
;
background-color
:
#F7F7F7
;
...
...
@@ -54,7 +54,7 @@
</style>
</head>
<body>
<body
class=
"rails-default-error-page"
>
<!-- This file lives in public/422.html -->
<div
class=
"dialog"
>
<div>
...
...
railties/lib/rails/generators/rails/app/templates/public/500.html
浏览文件 @
50d5baf7
...
...
@@ -4,7 +4,7 @@
<title>
We're sorry, but something went wrong (500)
</title>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1"
>
<style>
body
{
.rails-default-error-page
{
background-color
:
#EFEFEF
;
color
:
#2E2F30
;
text-align
:
center
;
...
...
@@ -12,13 +12,13 @@
margin
:
0
;
}
div
.dialog
{
.rails-default-error-page
div
.dialog
{
width
:
95%
;
max-width
:
33em
;
margin
:
4em
auto
0
;
}
div
.dialog
>
div
{
.rails-default-error-page
div
.dialog
>
div
{
border
:
1px
solid
#CCC
;
border-right-color
:
#999
;
border-left-color
:
#999
;
...
...
@@ -31,13 +31,13 @@
box-shadow
:
0
3px
8px
rgba
(
50
,
50
,
50
,
0.17
);
}
h1
{
.rails-default-error-page
h1
{
font-size
:
100%
;
color
:
#730E15
;
line-height
:
1.5em
;
}
div
.dialog
>
p
{
.rails-default-error-page
div
.dialog
>
p
{
margin
:
0
0
1em
;
padding
:
1em
;
background-color
:
#F7F7F7
;
...
...
@@ -54,7 +54,7 @@
</style>
</head>
<body>
<body
class=
"rails-default-error-page"
>
<!-- This file lives in public/500.html -->
<div
class=
"dialog"
>
<div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录