mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 13:23:24 -07:00
parent
98d02d0b89
commit
876741b40b
3 changed files with 44 additions and 8 deletions
|
@ -402,12 +402,15 @@ DOCUMENTATION :: END
|
|||
</div>
|
||||
</div>
|
||||
% if data['tagline']:
|
||||
<div class="summary-content-summary">
|
||||
<p><strong> ${data['tagline']} </strong></p>
|
||||
<div class="summary-content-text summary-content-tagline">
|
||||
<p>${data['tagline']}</p>
|
||||
</div>
|
||||
% endif
|
||||
<div class="summary-content-summary">
|
||||
<p> ${data['summary'] | br, n} </p>
|
||||
<div class="summary-content-text summary-content-summary">
|
||||
<p>${data['summary'] | br, n}</p>
|
||||
</div>
|
||||
<div class="summary-content-text summary-toggle">
|
||||
<a href="#" class="show-more">Read more <i class="fa fa-chevron-down"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -997,6 +1000,21 @@ DOCUMENTATION :: END
|
|||
return '<div class="channel-thumbnail" style="background-image: url(' + $(this).data('img') + ');" />';
|
||||
}
|
||||
});
|
||||
|
||||
$('.summary-content-summary').hasScrollBar() ? $('.summary-toggle').show() : $('.summary-toggle').hide();
|
||||
|
||||
$('.summary-toggle a').on('click', function() {
|
||||
var $this = $(this);
|
||||
var $content = $this.parent().prev('div.summary-content-summary');
|
||||
|
||||
if ($this.hasClass('show-more')) {
|
||||
$this.html('Read less <i class="fa fa-chevron-up"></i>').toggleClass('show-more').toggleClass('show-less');
|
||||
$content.animate({'height': $content[0].scrollHeight});
|
||||
} else {
|
||||
$this.html('Read more <i class="fa fa-chevron-down"></i>').toggleClass('show-more').toggleClass('show-less');
|
||||
$content.animate({'height': '60px'});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
% if _session['user_group'] == 'admin':
|
||||
<script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue