From e6feaa0863e2e9a6f7603a684376b2877fd231ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 1 Oct 2019 14:56:53 -0400 Subject: [PATCH] Fixed UI for long subtitles path. Now use tooltip for full path and show only filename. --- views/movie.tpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/views/movie.tpl b/views/movie.tpl index 68b59e054..418b3fa1b 100644 --- a/views/movie.tpl +++ b/views/movie.tpl @@ -79,6 +79,7 @@ %import ast + %from os import path %from get_languages import * %from config import settings %from helper import path_replace_movie @@ -180,7 +181,11 @@ end %> - {{path_replace_movie(subtitles_file[1]) if subtitles_file[1] is not None else 'Video File Subtitles Track'}} + %if subtitles_file[1] is not None: + {{path.basename(path_replace_movie(subtitles_file[1]))}} + %else: + Video File Subtitles Track + %end
{{language_from_alpha2(subtitles_file[0].split(':')[0])}}{{' forced' if forced else ''}}
%if subtitles_file[1] is not None: