Skip to content

Instantly share code, notes, and snippets.

@nylen
Created October 28, 2010 03:43
Show Gist options
  • Save nylen/650586 to your computer and use it in GitHub Desktop.
Save nylen/650586 to your computer and use it in GitHub Desktop.
<script type="text/x-jquery-tmpl" id="tmpl-list-playlists">
<table id="list-playlists">
<tr>
<th class="user">User</th>
<th class="name">Name</th>
<th class="info">Info</th>
<th class="controls">Controls</th>
</tr>
{{each items}}
<tr class="${$index % 2 ? 'odd' : 'even'}">
<td class="user">${$item.user}</td>
<td class="name">${$item.name}</td>
<td class="info">${$item.songs} songs (${$item.time})</td>
<td class="controls">
<a href="#playlist/${$item.user}/${$item.name_urlencoded}">link</a>
| <span class="delete-playlist-wrap">
<a href="#" class="delete-playlist"
data-user="${$item.user}" data-name="${$item.name}">
delete<span style="visibility: hidden">d</span>
</a>
</span>
</td>
</tr>
{{/each}}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment