From 0e9c086b2fcc51afe133d7bd28cb25ce7bf96a81 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 28 Apr 2012 19:52:07 +0200 Subject: [PATCH] Show status of release. fixes #159 #165 --- couchpotato/core/plugins/movie/static/movie.css | 5 ++++- couchpotato/core/plugins/movie/static/movie.js | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/plugins/movie/static/movie.css b/couchpotato/core/plugins/movie/static/movie.css index 9b82598e..56521c26 100644 --- a/couchpotato/core/plugins/movie/static/movie.css +++ b/couchpotato/core/plugins/movie/static/movie.css @@ -279,7 +279,8 @@ border: 0; } .movies .options .table .provider { - width: 130px; + width: 120px; + text-overflow: ellipsis; } .movies .options .table .name { width: 350px; @@ -290,6 +291,8 @@ .movies .options .table.files .name { width: 605px; } .movies .options .table .type { width: 130px; } .movies .options .table .is_available { width: 90px; } + .movies .options .table .age, + .movies .options .table .size { width: 40px; } .movies .options .table a { width: 30px !important; diff --git a/couchpotato/core/plugins/movie/static/movie.js b/couchpotato/core/plugins/movie/static/movie.js index bbe526df..5544ed4e 100644 --- a/couchpotato/core/plugins/movie/static/movie.js +++ b/couchpotato/core/plugins/movie/static/movie.js @@ -270,8 +270,9 @@ var ReleaseAction = new Class({ // Header new Element('div.item.head').adopt( new Element('span.name', {'text': 'Release name'}), + new Element('span.status', {'text': 'Status'}), new Element('span.quality', {'text': 'Quality'}), - new Element('span.size', {'text': 'Size (MB)'}), + new Element('span.size', {'text': 'Size'}), new Element('span.age', {'text': 'Age'}), new Element('span.score', {'text': 'Score'}), new Element('span.provider', {'text': 'Provider'}) @@ -288,9 +289,10 @@ var ReleaseAction = new Class({ } catch(e){} new Element('div', { - 'class': 'item ' + status.identifier + 'class': 'item' }).adopt( new Element('span.name', {'text': self.get(release, 'name'), 'title': self.get(release, 'name')}), + new Element('span.status', {'text': status.identifier, 'class': 'release_status '+status.identifier}), new Element('span.quality', {'text': quality.get('label')}), new Element('span.size', {'text': (self.get(release, 'size') || 'unknown')}), new Element('span.age', {'text': self.get(release, 'age')}),