Browse Source

Add link to details in release list

pull/110/merge
Ruud 13 years ago
parent
commit
86dda9c30e
  1. 2
      couchpotato/core/plugins/movie/static/movie.css
  2. 11
      couchpotato/core/plugins/movie/static/movie.js
  3. BIN
      couchpotato/static/images/icon.info.png
  4. 1
      couchpotato/static/style/main.css

2
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;

11
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){

BIN
couchpotato/static/images/icon.info.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 778 B

1
couchpotato/static/style/main.css

@ -153,6 +153,7 @@ body > .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 {

Loading…
Cancel
Save