2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# File 'lib/coursegen/course/helpers/visual_helpers.rb', line 2
def end_of_lecture(type=:random)
if (type == :thatsall)
part1 = "<slide_break></slide_break>\n\n"
part2 = "## See you next time!!\n\n"
part3 = "<img src=\"/content/topics/images/thatsallfolks.jpg\" class=\"img-thumbnail d-block mx-auto\" style=\"height:300px;\"/>"
part4 = ""
elsif type == :random
part1 = "<slide_break></slide_break>\n\n"
part2 = "<h2 class=\"shadow p-3 bg-white rounded\">Thank you. Questions?"
part3 = random_image :normal, "800", "100"
part4 = "<small> (random Image from picsum.photos)</small>\</h2>"
end
part1 + part2 + part3 + part4
end
|