]> git.sesse.net Git - ccbs/blobdiff - html/templates/songratings-text.tmpl
Pull from --pgweb.
[ccbs] / html / templates / songratings-text.tmpl
diff --git a/html/templates/songratings-text.tmpl b/html/templates/songratings-text.tmpl
new file mode 100644 (file)
index 0000000..5087350
--- /dev/null
@@ -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 %]