summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-08-05 01:45:13 -0700
committerraylu <raylu@mixpanel.com>2011-08-05 01:45:31 -0700
commitc680bce12701298901ccd5cb3f0c366799f6a1c6 (patch)
tree922e20472b8a7ddb7f582b2d3fba4a71a56ef73a /templates
parent7d59ab2eac80615a7c684ba4bfca879c55d59683 (diff)
downloadaudioaxis-c680bce12701298901ccd5cb3f0c366799f6a1c6.tar.xz
add works
also, `name` -> `title` in the db and global db conn
Diffstat (limited to 'templates')
-rw-r--r--templates/p.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/p.html b/templates/p.html
index 1098e0b..c6f6004 100644
--- a/templates/p.html
+++ b/templates/p.html
@@ -15,7 +15,7 @@
<input type="text" id="user" value="anonymous" size="16">
<br>
<label for="song">Add a song:</label>
- <input type="text" id="song" size="58" autocomplete="off">
+ <input type="text" id="song" autocomplete="off">
<input type="submit" value="Search">
</form>
<div id="results" onblur="$(this).slideUp()"><ul>
@@ -25,7 +25,7 @@
{{range .Songs}}
<section class="song">
<div class="info">
- <a href="http://www.youtube.com/watch?v={{.Yid}}">{{.Name}}</a>
+ <a href="http://www.youtube.com/watch?v={{.Yid}}">{{.Title}}</a>
</div>
<div class="user">
{{.User}}
@@ -33,7 +33,7 @@
<div class="remove">×</div>
<br class="clear">
<div class="thumb">
- <img src="http://i.ytimg.com/vi/{{.Yid}}/1.jpg" alt="{{.Name}}">
+ <img src="http://i.ytimg.com/vi/{{.Yid}}/1.jpg" alt="{{.Yid}}">
</div>
<canvas id="{{.Yid}}" width="700" height="20"></canvas>
<br>
@@ -48,6 +48,7 @@
</article>
{{$first := index .Songs 0}}
<script>
+ var pid = '{{.Id}}';
var current_id = '{{$first.Yid}}';
var ids = [{{range .Songs}}'{{.Yid}}',{{end}}];
</script>