Skip to content

Commit 2ab64dc

Browse files
committed
Update heading title in News page
1 parent 37f7342 commit 2ab64dc

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

app/controllers/news_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class NewsController < ApplicationController
22
def index
3-
@title = '📰 CoderDojo ニュース'
3+
@title = '📰 CoderDojo ニュース'
44
@desc = 'CoderDojo に関するお知らせの一覧ページです。'
55
@url = request.url
66

@@ -9,7 +9,7 @@ def index
99

1010
respond_to do |format|
1111
format.html # デフォルトのHTMLビュー
12-
format.json {
12+
format.json {
1313
# JSON レスポンス時は variant を無視する
1414
# rack-user_agent gem による variant 設定が JSON レスポンスに影響しないようにする
1515
request.variant = nil

app/views/news/index.html.erb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77

88
<div class='container'>
99
<section class='news' style='padding: 50px 0px 0px;'>
10-
<h1 class='text-center'><%= @title.html_safe %></h1>
10+
<h1 class='text-center'>
11+
📰🆕
12+
<br>
13+
CoderDojo ニュース
14+
</h1>
1115

1216
<p class='text-center' style='padding-top: 30px;'>
1317
<%= @desc.html_safe %>

0 commit comments

Comments
 (0)