Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9dac37e

Browse files
committed
errors/headerをインライン化し、partialを削除
1 parent 7e4737c commit 9dac37e

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

app/views/errors/_header.html.erb

Lines changed: 0 additions & 6 deletions
This file was deleted.

app/views/errors/internal_server_error.html.erb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<% provide(:title, "予期しないエラーが発生しました 😵‍💫") %>
22
<% provide(:desc, "申し訳ありません。サーバーで問題が発生しています。") %>
33

4-
<%= render 'errors/header' %>
4+
<div id="top" class="title text-center">
5+
<i class="cd cd-logo"></i>
6+
<h1>CoderDojo Japan</h1>
7+
<p>子どものためのプログラミング道場</p>
8+
<br>
9+
</div>
510

611
<section class="introduction text-center list">
712
<h2>

app/views/errors/not_found.html.erb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<% provide(:title, "ページが見つかりませんでした... 🥺💦") %>
22
<% provide(:desc, "ページが削除された可能性があります 🤔💭") %>
33

4-
<%= render 'errors/header' %>
4+
<div id="top" class="title text-center">
5+
<i class="cd cd-logo"></i>
6+
<h1>CoderDojo Japan</h1>
7+
<p>子どものためのプログラミング道場</p>
8+
<br>
9+
</div>
510

611
<section class="introduction text-center list">
712
<h2>

app/views/errors/unprocessable_entity.html.erb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<% provide(:title, "リクエストが処理できませんでした… 😢") %>
22
<% provide(:desc, "入力内容に誤りがあるか、リクエストが正しく送信されなかった可能性があります。") %>
33

4-
<%= render 'errors/header' %>
4+
<div id="top" class="title text-center">
5+
<i class="cd cd-logo"></i>
6+
<h1>CoderDojo Japan</h1>
7+
<p>子どものためのプログラミング道場</p>
8+
<br>
9+
</div>
510

611
<section class="introduction text-center list">
712
<h2>

0 commit comments

Comments
 (0)