X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Ftemplates%2Fsongratings-text.tmpl;fp=html%2Ftemplates%2Fsongratings-text.tmpl;h=5087350a6f4712c10b64c75e6640b88861d20842;hp=0000000000000000000000000000000000000000;hb=4dce0fb0cd97f705af2e169fe6fdf7eb6e458304;hpb=bd55f6835567a11e5a490d4a872bc778c96d1e83 diff --git a/html/templates/songratings-text.tmpl b/html/templates/songratings-text.tmpl new file mode 100644 index 0000000..5087350 --- /dev/null +++ b/html/templates/songratings-text.tmpl @@ -0,0 +1,32 @@ +[%# vim:set filetype=html: %] +[% FOR s = songs %] +[% IF s.single_beginner == '' %] +[% SET s.single_beginner = 'NULL' %] +[% END %] +[% IF s.single_standard == '' %] +[% SET s.single_standard = 'NULL' %] +[% END %] +[% IF s.single_difficult == '' %] +[% SET s.single_difficult = 'NULL' %] +[% END %] +[% IF s.single_expert == '' %] +[% SET s.single_expert = 'NULL' %] +[% END %] +[% IF s.single_challenge == '' %] +[% SET s.single_challenge = 'NULL' %] +[% END %] +[% IF s.double_standard == '' %] +[% SET s.double_standard = 'NULL' %] +[% END %] +[% IF s.double_difficult == '' %] +[% SET s.double_difficult = 'NULL' %] +[% END %] +[% IF s.double_expert == '' %] +[% SET s.double_expert = 'NULL' %] +[% END %] +[% IF s.double_challenge == '' %] +[% SET s.double_challenge = 'NULL' %] +[% END %] +'[% s.title %]', '[% s.artist %]', [% s.single_beginner%], [% s.single_standard%], [% s.single_difficult%], [% s.single_expert%], [% s.single_challenge%], [% s.double_standard%], [% s.double_difficult%], [% s.double_expert%], [% s.double_challenge %] + +[% END %]