Skip to content
Snippets Groups Projects
Commit 92ef4c33 authored by Christian Pointner's avatar Christian Pointner
Browse files

add playlist description field to ui

parent 2fc68832
No related branches found
No related tags found
No related merge requests found
......@@ -140,6 +140,7 @@
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Description</th>
<th scope="col">Length</th>
<th scope="col">Created</th>
<th scope="col">Action</th>
......@@ -151,6 +152,7 @@
<table class="playlistTemplate">
<tr>
<td class="playlistId" scope="row"></td>
<td class="playlistDescription"></td>
<td class="playlistLength"></td>
<td class="playlistCreated"></td>
<td>
......
......@@ -516,6 +516,7 @@ main.File.prototype.upload_simple = function(file) {
main.Playlist = function(show, inst) {
this.$show = show;
this.id = inst.id;
this.description = inst.description;
this.created = new Date(inst.created);
this.updated = new Date(inst.updated);
this.entries = inst.entries;
......@@ -791,6 +792,7 @@ main.PlaylistView = function(model) {
main.PlaylistView.prototype.render = function() {
this.$el.find('.playlistId').text(this.model.id)
this.$el.find('.playlistDescription').text(this.model.description)
this.$el.find('.playlistLength').text(this.model.entries.length)
this.$el.find('.playlistCreated').text(format_datetime(this.model.created))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment