Add link to details in release list
This commit is contained in:
@@ -282,7 +282,7 @@
|
||||
width: 130px;
|
||||
}
|
||||
.movies .options .table .name {
|
||||
width: 370px;
|
||||
width: 350px;
|
||||
overflow: hidden;
|
||||
text-align: left;
|
||||
padding: 0 10px;
|
||||
|
||||
@@ -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){
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 778 B |
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user