From 86dda9c30ea071084de6566374ab0c454923b9d3 Mon Sep 17 00:00:00 2001 From: Ruud Date: Thu, 19 Apr 2012 21:18:26 +0200 Subject: [PATCH] Add link to details in release list --- couchpotato/core/plugins/movie/static/movie.css | 2 +- couchpotato/core/plugins/movie/static/movie.js | 11 ++++++++++- couchpotato/static/images/icon.info.png | Bin 0 -> 778 bytes couchpotato/static/style/main.css | 1 + 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 couchpotato/static/images/icon.info.png diff --git a/couchpotato/core/plugins/movie/static/movie.css b/couchpotato/core/plugins/movie/static/movie.css index 55dce2e3..9b82598e 100644 --- a/couchpotato/core/plugins/movie/static/movie.css +++ b/couchpotato/core/plugins/movie/static/movie.css @@ -282,7 +282,7 @@ width: 130px; } .movies .options .table .name { - width: 370px; + width: 350px; overflow: hidden; text-align: left; padding: 0 10px; diff --git a/couchpotato/core/plugins/movie/static/movie.js b/couchpotato/core/plugins/movie/static/movie.js index 83e6eb94..bbe526df 100644 --- a/couchpotato/core/plugins/movie/static/movie.js +++ b/couchpotato/core/plugins/movie/static/movie.js @@ -280,7 +280,12 @@ var ReleaseAction = new Class({ Array.each(self.movie.data.releases, function(release){ var status = Status.get(release.status_id), - quality = Quality.getProfile(release.quality_id) + quality = Quality.getProfile(release.quality_id), + info = release.info; + + try { + var details_url = info.filter(function(item){ return item.identifier == 'detail_url' }).pick().value; + } catch(e){} new Element('div', { 'class': 'item ' + status.identifier @@ -291,6 +296,10 @@ var ReleaseAction = new Class({ new Element('span.age', {'text': self.get(release, 'age')}), new Element('span.score', {'text': self.get(release, 'score')}), new Element('span.provider', {'text': self.get(release, 'provider')}), + details_url ? new Element('a.info.icon', { + 'href': details_url, + 'target': '_blank' + }) : null, new Element('a.download.icon', { 'events': { 'click': function(e){ diff --git a/couchpotato/static/images/icon.info.png b/couchpotato/static/images/icon.info.png new file mode 100644 index 0000000000000000000000000000000000000000..12cd1aef900803abba99b26920337ec01ad5c267 GIT binary patch literal 778 zcmV+l1NHogP)BVme|mWaqy4$_pJm?y9KM{-*hp?1+Ey3e-CEDooTa!B;e(Q>TSF?bj>5At13y1p zriN3w3x~5SfZj{@J4M{kp{?=M_Lh2bV+5LH)Q)5W!-ePA$RgE1@5f1cyHki0Y}JyVEYZF(LD$xXlt$7A5CgE@ zpV-&l%vf;=5kZ2-2gi@Y6J&=cuwt>!vJ^#(&n|LcZyUzi6Duj$$hJ1s*HD-#;k-w@ zpdrwAuoDG_N2bvb07G$Zk*?Hc)JLtW4yqOnic_$zO7NZ#l>Fm){;fE?b$IbOaX2fe z0la4g0Dfw2xk7Wi7NapVD8YMPCZu?A1QCK*67dgsvRKBLFtrM>?$%&_lD1882mzdO zWPdw5KWw6IT`m1b_8=lS5jt8D3=RDa=&jWzR-)S@56WMslZ~mKu1)-wpXB>rNBQ>N zU#K`#1B&v|_AQK;7I~B}OdGiUT9LX>f0xm6<;LeP!=vFjPsUQF*wCJ*dO)4YBypgdiuF!=i@6Zyi7F|q#K zz?tlSZULa@t1D?$e;f@b36&N!V2mjOHw|* .spinner, .mask{ .icon.refresh { background-image: url('../images/icon.refresh.png'); } .icon.rating { background-image: url('../images/icon.rating.png'); } .icon.files { background-image: url('../images/icon.files.png'); } +.icon.info { background-image: url('../images/icon.info.png'); } /*** Navigation ***/ .header {