Display pretty episode name.
This commit is contained in:
parent
da47b03862
commit
3fbc21b90e
1 changed files with 2 additions and 1 deletions
|
@ -35,6 +35,7 @@ module StargateRando::Controllers
|
|||
chosen_episode = 1 + rand(num_episodes)
|
||||
|
||||
@episode_code = "#{chosen_season}x#{chosen_episode}"
|
||||
@episode_and_season = "Season #{chosen_season}: Episode #{chosen_episode}"
|
||||
render :results
|
||||
end
|
||||
end
|
||||
|
@ -56,7 +57,7 @@ module StargateRando::Views
|
|||
end
|
||||
|
||||
def results
|
||||
h1 "You should watch #{@series}: #{@episode_code}"
|
||||
h1 "You should watch #{@series}: #{@episode_and_season}"
|
||||
button :onclick => "document.location.reload()", :id => "reload" do
|
||||
"Get a new episode"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue