diff options
Diffstat (limited to 'templates/song.html.erb')
-rw-r--r-- | templates/song.html.erb | 23 |
1 files changed, 23 insertions, 0 deletions
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 @@ +<h2><%= song.title -%></h2> +<a href='<%= path_to (song_pdf song.id) %>'>[PDF]</a> + +<% song.split_lyrics.each do |paragraph| -%> +<p> + <%- paragraph.each do |line| -%> + <%= line %> <br /> + <%- end -%> +</p> +<%- end -%> + +<%- if File.file?(src (song_ly song.id)) -%> +<img src='<%= path_to (song_svg song.id) %>' /> +<%- end -%> + +<%- if !song.recordings.empty? -%> +<h3>Nagrania</h3> +<%- song.recordings.each do |recording| -%> +<p> +<%= recording.render -%> +</p> +<%- end -%> +<%- end -%> |