Skip to content

Commit e2ed3be

Browse files
committed
公式ブックに版切り替え用リンクを追加: /sotechsha[2]
1 parent 7cd342b commit e2ed3be

File tree

4 files changed

+14
-38
lines changed

4 files changed

+14
-38
lines changed

app/controllers/sotechsha2_pages_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Sotechsha2PagesController < ApplicationController
22
def index; end
3-
3+
44
def show
55
render "sotechsha2_pages/#{params[:page]}"
66
end

app/controllers/sotechsha_pages_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class SotechshaPagesController < ApplicationController
22
def index; end
3-
3+
44
def show
55
render "sotechsha_pages/#{params[:page]}"
66
end

app/views/sotechsha2_pages/index.html.erb

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,12 @@
66
<%= lazy_image_tag 'sotechsha-2_book-cover.webp', alt: 'Scratchでつくる! たのしむ! プログラミング道場 (第2版)' %>
77
<div style='text-align: center; font-size: 19.2px;'>
88
<div class="img-responsive center-block">
9-
<div>
10-
<div>
11-
<p>
12-
<br>
13-
</p>
14-
<p>本ページでは、書籍で利用する素材や、課題の答えを掲載しています。</p>
15-
<p>
16-
本書に関するお問い合わせは
17-
<a href="http://sotechsha.co.jp/dokusha/">コチラ</a>
18-
から 📮
19-
</p>
20-
<p>
21-
<br>
22-
</p>
23-
</div>
24-
</div>
9+
<br>
10+
<p>本ページでは、書籍で利用する素材や、課題の答えを掲載しています。</p>
11+
<p>本書に関するお問い合わせは<a href="http://sotechsha.co.jp/dokusha/">コチラ</a>から 📮</p>
12+
<a href='/sotechsha'><small>&raquo; 第1版に切り替える</small></a>
13+
<br>
14+
<br>
2515
</div>
2616
</div>
2717
</div>

app/views/sotechsha_pages/index.html.erb

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,12 @@
66
<%= lazy_image_tag 'sotechsha-1_book-cover.webp', alt: 'Scratchでつくる! たのしむ! プログラミング道場 (第1版)' %>
77
<div style='text-align: center; font-size: 19.2px;'>
88
<div class="img-responsive center-block">
9-
<div>
10-
<div>
11-
<p>
12-
<br>
13-
本ページでは、書籍で利用する素材や、課題の答えを掲載しています。
14-
</p>
15-
<p>
16-
<span style="font-size: 19.2px;">本書に関するお問い合わせは</span>
17-
<span style="font-size: 19.2px; background-color: rgb(255, 255, 255);">
18-
<a href="http://sotechsha.co.jp/dokusha/">コチラ</a>
19-
から 📮
20-
</span>
21-
</p>
22-
<p>
23-
<span style="font-size: 19.2px;">
24-
<br>
25-
</span>
26-
</p>
27-
</div>
28-
</div>
9+
<br>
10+
<p>本ページでは、書籍で利用する素材や、課題の答えを掲載しています。</p>
11+
<p>本書に関するお問い合わせは<a href="http://sotechsha.co.jp/dokusha/">コチラ</a>から 📮</p>
12+
<a href='/sotechsha2'><small>&raquo; 第2版に切り替える</small></a>
13+
<br>
14+
<br>
2915
</div>
3016
</div>
3117
</div>

0 commit comments

Comments
 (0)