Skip to content

Commit 509c3b4

Browse files
committed
Easier to change next live date via 'heroku config:set'
1 parent 8eecbc9 commit 509c3b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/controllers/podcasts_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ def index
44
@desc = 'Highlight people around CoderDojo communities by Podcast 📻✨'
55
@episodes = Podcast.all.sort_by{|episode| episode.filename.rjust(3, '0')}
66
@url = request.url
7+
@next_live_date = ENV['NEXT_LIVE_DATE'] || '未定'
78
end
89

910
def show

app/views/podcasts/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<h1 style="text-align: center;"><%= @title %></h1>
1010
<p style="text-align: center; padding-bottom: 100px;"><%= @desc %></p>
1111

12-
<h3 id="live" style="text-align: center; padding-bottom: 10px;">🎙 次回ライブ配信: <br class="ignore-pc">3月25日 (月) 20:00〜</h3>
12+
<h3 id="live" style="text-align: center; padding-bottom: 10px;">🎙 次回ライブ配信: <br class="ignore-pc"><%= @next_live_date %></h3>
1313
<iframe src="https://mixlr.com/users/6058871/embed"
1414
width="100%" height="180px" scrolling="no"
1515
frameborder="no" marginheight="0" marginwidth="0"></iframe>

0 commit comments

Comments
 (0)