Added tooltip to airdate on posters view

pull/4/head
Mark McDowall 12 years ago
parent c3de0006ff
commit 32701d5e84

@ -12,13 +12,13 @@
</div> </div>
</div> </div>
<div class="center title">{{title}}</div> <!--<div class="center title">{{title}}</div>-->
<div class="center"> <div class="center">
<div class="labels"> <div class="labels">
{{#if isContinuing}} {{#if isContinuing}}
{{#if bestDateString}} {{#if bestDateString}}
<span class="label label-inverse">{{bestDateString}}</span> <span class="label label-inverse air-date" title="{{shortDate}}">{{bestDateString}}</span>
{{else}} {{else}}
<span class="label label-inverse">{{statusText}}</span> <span class="label label-inverse">{{statusText}}</span>
{{/if}} {{/if}}

@ -15,7 +15,8 @@ define([
ui: { ui: {
'progressbar': '.progress .bar' 'progressbar': '.progress .bar',
'airDate': '.air-date'
}, },
events: { events: {
@ -27,6 +28,10 @@ define([
this.qualityProfileCollection = options.qualityProfiles; this.qualityProfileCollection = options.qualityProfiles;
}, },
onRender: function () {
this.ui.airDate.tooltip();
},
editSeries: function () { editSeries: function () {
var view = new NzbDrone.Series.Edit.EditSeriesView({ model: this.model}); var view = new NzbDrone.Series.Edit.EditSeriesView({ model: this.model});

@ -58,6 +58,15 @@
} }
return 'Ended'; return 'Ended';
},
shortDate: function () {
var date = this.get('nextAiring');
if (!date) {
return '';
}
return Date.create(date).short();
} }
}, },

@ -50,10 +50,18 @@
opacity: 0.75; opacity: 0.75;
width: 138px; width: 138px;
:hover {
cursor: default;
}
.label { .label {
margin-top: 3px; margin-top: 3px;
display: block; display: block;
} }
.tooltip {
opacity: 1;
}
} }
.series-season { .series-season {
padding-bottom: 20px; padding-bottom: 20px;
@ -75,8 +83,8 @@
-webkit-transform-origin: 50% 50%; -webkit-transform-origin: 50% 50%;
position: absolute; position: absolute;
width: 300px; width: 300px;
top: 180px; top: 175px;
left: -120px; left: -122px;
text-align: center; text-align: center;
} }
} }

Loading…
Cancel
Save