From 7994abe07c61df326223171c3e9b036d11275664 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sun, 12 Sep 2021 14:38:07 +0200 Subject: Add templates --- templates/song.html.erb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 templates/song.html.erb (limited to 'templates/song.html.erb') diff --git a/templates/song.html.erb b/templates/song.html.erb new file mode 100644 index 0000000..2c4164f --- /dev/null +++ b/templates/song.html.erb @@ -0,0 +1,23 @@ +

<%= song.title -%>

+[PDF] + +<% song.split_lyrics.each do |paragraph| -%> +

+ <%- paragraph.each do |line| -%> + <%= line %>
+ <%- end -%> +

+<%- end -%> + +<%- if File.file?(src (song_ly song.id)) -%> + +<%- end -%> + +<%- if !song.recordings.empty? -%> +

Nagrania

+<%- song.recordings.each do |recording| -%> +

+<%= recording.render -%> +

+<%- end -%> +<%- end -%> -- cgit v1.2.3