From a4a44ec34f5baf0723c566908f92663164535711 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 23 Jun 2015 14:10:37 +0200 Subject: [PATCH] Set max width on media title in history tables Add watch history to show media info page --- README.md | 4 ++-- data/interfaces/default/css/plexwatch.css | 6 ++++++ data/interfaces/default/info.html | 18 ++++++++++++++++-- .../default/js/tables/history_table.js | 2 +- plexpy/plexwatch.py | 3 ++- plexpy/webserve.py | 3 +++ 6 files changed, 30 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1212e9ab..1a30748c 100644 --- a/README.md +++ b/README.md @@ -65,9 +65,9 @@ A python based web front-end for plexWatch. - top 10 viewed tv shows - top 10 viewed tv episodes -* content information pages **PARTIALLY IMPLEMENTED** +* content information pages - movies (includes watching history) - - tv shows (includes top 10 watched episodes) + - tv shows (includes watching history) - tv seasons - tv episodes (includes watching history) diff --git a/data/interfaces/default/css/plexwatch.css b/data/interfaces/default/css/plexwatch.css index c1e151f1..f9cef5cb 100644 --- a/data/interfaces/default/css/plexwatch.css +++ b/data/interfaces/default/css/plexwatch.css @@ -8149,4 +8149,10 @@ ol.test >li { background-color: #282828; margin-right: 20px; margin-bottom: 20px; +} + +.history-table-title { + text-overflow: ellipsis; + overflow: hidden; + max-width: 350px; } \ No newline at end of file diff --git a/data/interfaces/default/info.html b/data/interfaces/default/info.html index 6d92d34b..9883ad76 100644 --- a/data/interfaces/default/info.html +++ b/data/interfaces/default/info.html @@ -136,7 +136,7 @@
- % if metadata['type'] == 'movie' or metadata['type'] == 'episode': + % if metadata['type'] == 'movie' or metadata['type'] == 'episode' or metadata['type'] == 'show':

Watch history for ${metadata['title']}

@@ -221,7 +221,21 @@ history_table.column(5).visible(false); }); - %endif + % elif metadata['type'] == 'show': + + + % endif % if metadata['type'] == 'season':