diff --git a/data/interfaces/default/css/plexpy.css b/data/interfaces/default/css/plexpy.css index 2b0690e0..a1579fd3 100644 --- a/data/interfaces/default/css/plexpy.css +++ b/data/interfaces/default/css/plexpy.css @@ -1791,7 +1791,7 @@ a:hover .item-children-poster { height: 80px; width: 80px; } -.library-user-instance-box:hover { +a .library-user-instance-box:hover { -webkit-box-shadow: inset 0 0 0 2px #e9a049; -moz-box-shadow: inset 0 0 0 2px #e9a049; box-shadow: inset 0 0 0 2px #e9a049; diff --git a/data/interfaces/default/home_stats.html b/data/interfaces/default/home_stats.html index aa0304c8..0cb235e1 100644 --- a/data/interfaces/default/home_stats.html +++ b/data/interfaces/default/home_stats.html @@ -540,12 +540,10 @@ DOCUMENTATION :: END

% if top_stat['rows'][0]['user_id']: - % elif top_stat['rows'][0]['user']: - - % endif ${top_stat['rows'][0]['friendly_name']} - % if top_stat['rows'][0]['user_id'] or top_stat['rows'][0]['user']: + % else: + ${top_stat['rows'][0]['friendly_name']} % endif

% if top_stat['stat_type'] == 'total_plays': @@ -558,8 +556,6 @@ DOCUMENTATION :: END % if top_stat['rows'][0]['user_id']: - % elif top_stat['rows'][0]['user']: - % endif % if top_stat['rows'][0]['user_thumb'] != '':
@@ -570,7 +566,7 @@ DOCUMENTATION :: END
% endif - % if top_stat['rows'][0]['user_id'] or top_stat['rows'][0]['user']: + % if top_stat['rows'][0]['user_id']:
% endif % if len(top_stat['rows']) > 1: @@ -586,12 +582,10 @@ DOCUMENTATION :: END
% if top_stat['rows'][loop.index]['user_id']: - % elif top_stat['rows'][loop.index]['user']: - - % endif ${top_stat['rows'][loop.index]['friendly_name']} - % if top_stat['rows'][loop.index]['user_id'] or top_stat['rows'][loop.index]['user']: + % else: + ${top_stat['rows'][loop.index]['friendly_name']} % endif
@@ -606,8 +600,6 @@ DOCUMENTATION :: END % if top_stat['rows'][loop.index]['user_id']: - % elif top_stat['rows'][loop.index]['user']: - % endif % if top_stat['rows'][loop.index]['user_thumb'] != '':
@@ -618,7 +610,7 @@ DOCUMENTATION :: END
% endif - % if top_stat['rows'][loop.index]['user_id'] or top_stat['rows'][loop.index]['user']: + % if top_stat['rows'][loop.index]['user_id']:
% endif
@@ -711,11 +703,11 @@ DOCUMENTATION :: END
% if top_stat['rows'][0]['user_id']: - % else: - - % endif ${top_stat['rows'][0]['friendly_name']} + % else: + ${top_stat['rows'][0]['friendly_name']} + % endif

@@ -757,11 +749,11 @@ DOCUMENTATION :: END

% if top_stat['rows'][loop.index]['user_id']: - % else: - - % endif ${top_stat['rows'][loop.index]['friendly_name']} + % else: + ${top_stat['rows'][loop.index]['friendly_name']} + % endif

diff --git a/data/interfaces/default/library.html b/data/interfaces/default/library.html index 979ea318..791d5903 100644 --- a/data/interfaces/default/library.html +++ b/data/interfaces/default/library.html @@ -181,10 +181,12 @@ DOCUMENTATION :: END

+ % if _session['user_group'] == 'admin': + % endif
diff --git a/data/interfaces/default/library_user_stats.html b/data/interfaces/default/library_user_stats.html index c8bf832a..6120b5c3 100644 --- a/data/interfaces/default/library_user_stats.html +++ b/data/interfaces/default/library_user_stats.html @@ -10,9 +10,9 @@ Variable names: data [array] data[array_index] :: Usable parameters == Global keys == -user Returns the name of the user. +friendly_name Returns the friendly name of the user. user_id Returns the user id of the user. -thumb Returns the avatar of the user. +user_thumb Returns the avatar of the user. total_plays Returns the play count for the user. DOCUMENTATION :: END @@ -23,12 +23,19 @@ DOCUMENTATION :: END