From 4830cc7d68d148f77237e19dfc6b2399875afa47 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 1 Jul 2015 22:44:30 +0200 Subject: [PATCH] Fix header on user IP modal Return more user data to the info screen. Some other backend changes --- data/interfaces/default/js/tables/user_ips.js | 2 +- data/interfaces/default/user.html | 45 ++++++++----------- data/interfaces/default/users.html | 2 +- plexpy/datatables.py | 2 + plexpy/plexwatch.py | 40 ++++++++++++++++- plexpy/webserve.py | 4 +- 6 files changed, 63 insertions(+), 32 deletions(-) diff --git a/data/interfaces/default/js/tables/user_ips.js b/data/interfaces/default/js/tables/user_ips.js index fe52a452..d7c574a1 100644 --- a/data/interfaces/default/js/tables/user_ips.js +++ b/data/interfaces/default/js/tables/user_ips.js @@ -94,7 +94,7 @@ $('#user_ip_table').on('click', 'td.modal-control', function () { type: 'GET', dataType: 'json', success: function(data) { - $('#ip_address').html(ip_address); + $('#modal_header_ip_address').html(ip_address); $('#country').html(data.country); $('#city').html(data.city); $('#region').html(data.regionName); diff --git a/data/interfaces/default/user.html b/data/interfaces/default/user.html index 1991b1e2..29f113f2 100644 --- a/data/interfaces/default/user.html +++ b/data/interfaces/default/user.html @@ -5,12 +5,18 @@ For Mako templating syntax documentation please visit: http://docs.makotemplates Filename: user.html Version: 0.1 -Variable names: user [string] +Variable names: data [list] -user :: Usable parameters +data :: Usable parameters -user Returns the name of the user. +user_id Returns the user id of the user. +username Returns the user's username. friendly_name Returns the friendly name of the user. +email Returns the user's email address. +thumb Returns the thumbnail for the user. +is_home_user Returns bool value for whether the user is part of a Plex Home. +is_allow_sync Returns bool value for whether the user has sync rights. +is_restricted Returns bool value for whether the user account is restricted. DOCUMENTATION :: END @@ -33,10 +39,10 @@ from plexpy import helpers