Skip to content

Commit bcc4924

Browse files
committed
Convert HTML to ERB: Error pages with Rambulance gem
1 parent c9995e6 commit bcc4924

File tree

6 files changed

+115
-92
lines changed

6 files changed

+115
-92
lines changed

app/views/errors/bad_request.html.erb

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<% provide(:title, "ページが見つかりませんでした... 🥺💦") %>
2+
<% provide(:desc, "ページが削除された可能性があります 🤔💭") %>
3+
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>
10+
11+
<section class="introduction text-center list">
12+
<h2>
13+
ページが見つかりませんでした... 🥺💦
14+
</h2>
15+
<p>
16+
ページが削除された可能性があります 🤔💭
17+
<br>
18+
</p>
19+
<p>
20+
フィードバックなどあれば info@coderdojo.jp にメールしていただくか、
21+
<br>
22+
もしくは
23+
<a href="https://github.com/coderdojo-japan/coderdojo.jp/issues/">GitHub Issue</a>
24+
に書いていただけると嬉しいです (>人< )✨
25+
</p>
26+
</section>
27+
28+
<section id="timeline" class="text-center grayscale-bg" style="padding-bottom: 100px;">
29+
<br>
30+
<h3 class="text-center">
31+
<a href="https://twitter.com/search?vertical=default&q=dojocon%20OR%20coderdojo%20OR%20%E3%82%B3%E3%83%BC%E3%83%80%E3%83%BC%E9%81%93%E5%A0%B4%20lang%3Aja" target="_blank" rel="noopener">🐣 最近の情報発信</a>
32+
</h3>
33+
<br>
34+
<div class="twitter-timeline-wrapper">
35+
<a class="twitter-timeline" href="https://twitter.com/CoderDojoJapan?ref_src=twsrc%5Etfw" data-lang="ja" data-chrome="noheader nofooter noborders" data-dnt="true" data-width="500" data-tweet-limit="5">@CoderDojoJapan アカウントのタイムライン</a>
36+
</div>
37+
<script async="" await="" src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
38+
</section>
39+

app/views/errors/bad_request.html.haml

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

app/views/errors/forbidden.html.erb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<% provide(:title, "403 Forbidden エラー 🚧 🏗") %>
2+
<% provide(:desc, "アクセス権限が無いか削除された可能性があります 🤔💭") %>
3+
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>
10+
11+
<section class="introduction text-center list">
12+
<h2>
13+
アクセスできないページのため表示できませんでした 🚧 🏗
14+
</h2>
15+
<p>
16+
ログインし直すことで解決する可能性があります 🤔💭
17+
<br>
18+
</p>
19+
<p>
20+
フィードバックなどあれば info@coderdojo.jp にメールしていただくか、
21+
<br>
22+
もしくは
23+
<a href="https://github.com/coderdojo-japan/coderdojo.jp/issues/">GitHub Issue</a>
24+
に書いていただけると嬉しいです (>人< )✨
25+
</p>
26+
</section>
27+
28+
<section id="timeline" class="text-center grayscale-bg" style="padding-bottom: 100px;">
29+
<br>
30+
<h3 class="text-center">
31+
<a href="https://twitter.com/search?vertical=default&q=dojocon%20OR%20coderdojo%20OR%20%E3%82%B3%E3%83%BC%E3%83%80%E3%83%BC%E9%81%93%E5%A0%B4%20lang%3Aja" target="_blank" rel="noopener">🐣 最近の情報発信</a>
32+
</h3>
33+
<br>
34+
<div class="twitter-timeline-wrapper">
35+
<a class="twitter-timeline" href="https://twitter.com/CoderDojoJapan?ref_src=twsrc%5Etfw" data-lang="ja" data-chrome="noheader nofooter noborders" data-dnt="true" data-width="500" data-tweet-limit="5">@CoderDojoJapan アカウントのタイムライン</a>
36+
</div>
37+
<script async="" await="" src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
38+
</section>

app/views/errors/forbidden.html.haml

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

app/views/errors/not_found.html.erb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<% provide(:title, "ページが見つかりませんでした... 🥺💦") %>
2+
<% provide(:desc, "ページが削除された可能性があります 🤔💭") %>
3+
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>
10+
11+
<section class="introduction text-center list">
12+
<h2>
13+
ページが見つかりませんでした... 🥺💦
14+
</h2>
15+
<p>
16+
ページが削除された可能性があります 🤔💭
17+
<br>
18+
</p>
19+
<p>
20+
フィードバックなどあれば info@coderdojo.jp にメールしていただくか、
21+
<br>
22+
もしくは
23+
<a href="https://github.com/coderdojo-japan/coderdojo.jp/issues/">GitHub Issue</a>
24+
に書いていただけると嬉しいです (>人< )✨
25+
</p>
26+
</section>
27+
28+
<section id="timeline" class="text-center grayscale-bg" style="padding-bottom: 100px;">
29+
<br>
30+
<h3 class="text-center">
31+
<a href="https://twitter.com/search?vertical=default&q=dojocon%20OR%20coderdojo%20OR%20%E3%82%B3%E3%83%BC%E3%83%80%E3%83%BC%E9%81%93%E5%A0%B4%20lang%3Aja" target="_blank" rel="noopener">🐣 最近の情報発信</a>
32+
</h3>
33+
<br>
34+
<div class="twitter-timeline-wrapper">
35+
<a class="twitter-timeline" href="https://twitter.com/CoderDojoJapan?ref_src=twsrc%5Etfw" data-lang="ja" data-chrome="noheader nofooter noborders" data-dnt="true" data-width="500" data-tweet-limit="5">@CoderDojoJapan アカウントのタイムライン</a>
36+
</div>
37+
<script async="" await="" src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
38+
</section>

app/views/errors/not_found.html.haml

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

0 commit comments

Comments
 (0)