diff --git a/data/interfaces/default/configuration_table.html b/data/interfaces/default/configuration_table.html new file mode 100644 index 00000000..18545895 --- /dev/null +++ b/data/interfaces/default/configuration_table.html @@ -0,0 +1,110 @@ +<%doc> +USAGE DOCUMENTATION :: PLEASE LEAVE THIS AT THE TOP OF THIS FILE + +For Mako templating syntax documentation please visit: http://docs.makotemplates.org/en/latest/ + +Filename: configuration_table.html +Version: 0.1 + +DOCUMENTATION :: END + + +<%! + import os + import sys + import plexpy + from plexpy import common, logger + from plexpy.helpers import anon_url +%> + + + + % if plexpy.CURRENT_VERSION: + + + + + + + + + % endif + + + + + + + + + + + + + + + + + + + + + + + % if plexpy.CONFIG.GEOIP_DB: + + % else: + + % endif + + % if plexpy.ARGS: + + + + + % endif + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Git Branch:${plexpy.CONFIG.GIT_BRANCH}
Git Commit Hash:${plexpy.CURRENT_VERSION}
Configuration File:${plexpy.CONFIG_FILE}
Database File:${plexpy.DB_FILE}
Log File:${os.path.join(plexpy.CONFIG.LOG_DIR, logger.FILENAME)}
Backup Directory:${plexpy.CONFIG.BACKUP_DIR}
Cache Directory:${plexpy.CONFIG.CACHE_DIR}
GeoLite2 Database:${plexpy.CONFIG.GEOIP_DB} | Reinstall / UpdateClick here to install the GeoLite2 database.
Arguments:${plexpy.ARGS}
Platform:${common.PLATFORM} ${common.PLATFORM_VERSION}
Python Version:${sys.version}
Plex Forums:https://forums.plex.tv/discussion/169591/plexpy-another-plex-monitoring-program
Source:https://github.com/drzoidberg33/plexpy
Wiki:https://github.com/drzoidberg33/plexpy/wiki
Issues:https://github.com/drzoidberg33/plexpy/issues
Feature Requests:http://feathub.com/drzoidberg33/plexpy
Gitter Chat:https://gitter.im/drzoidberg33/plexpy
+ + \ No newline at end of file diff --git a/data/interfaces/default/css/plexpy.css b/data/interfaces/default/css/plexpy.css index be3d66c9..bba6fdf3 100644 --- a/data/interfaces/default/css/plexpy.css +++ b/data/interfaces/default/css/plexpy.css @@ -3004,4 +3004,7 @@ a:hover .overlay-refresh-image { } a:hover .overlay-refresh-image:hover { opacity: .9; +} +#ip_error a { + color: #e9a049; } \ No newline at end of file diff --git a/data/interfaces/default/js/script.js b/data/interfaces/default/js/script.js index 74be6f51..4ad59f45 100644 --- a/data/interfaces/default/js/script.js +++ b/data/interfaces/default/js/script.js @@ -54,6 +54,32 @@ function showMsg(msg, loader, timeout, ms, error) { } } +function confirmAjaxCall(url, msg, loader_msg, callback) { + $("#confirm-message").html(msg); + $('#confirm-modal').modal(); + $('#confirm-modal').one('click', '#confirm-button', function () { + if (loader_msg) { + showMsg(loader_msg, true, false) + } + $.ajax({ + url: url, + type: 'POST', + complete: function (xhr, status) { + result = $.parseJSON(xhr.responseText); + msg = result.message; + if (result.result == 'success') { + showMsg(' ' + msg, false, true, 5000) + } else { + showMsg(' ' + msg, false, true, 5000, true) + } + if (typeof callback === "function") { + callback(); + } + } + }); + }); +} + function doAjaxCall(url, elem, reload, form, callback) { // Set Message feedback = $("#ajaxMsg"); diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html index 4df58467..b6222be8 100644 --- a/data/interfaces/default/settings.html +++ b/data/interfaces/default/settings.html @@ -4,7 +4,7 @@ import sys import plexpy - from plexpy import common, logger, notifiers, versioncheck + from plexpy import common, notifiers, versioncheck from plexpy.helpers import anon_url available_notification_agents = sorted(notifiers.available_notification_agents(), key=lambda k: k['name']) @@ -62,86 +62,10 @@

PlexPy Configuration

- - - % if plexpy.CURRENT_VERSION: - - - - - - - - - % endif - - - - - - - - - - - - - - - - - - - - - - - % if config['geoip_db']: - - % else: - - % endif - - % if plexpy.ARGS: - - - - - % endif - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Git Branch:${plexpy.CONFIG.GIT_BRANCH}
Git Commit Hash:${plexpy.CURRENT_VERSION}
Configuration File:${plexpy.CONFIG_FILE}
Database File:${plexpy.DB_FILE}
Log File:${os.path.join(config['log_dir'], logger.FILENAME)}
Backup Directory:${config['backup_dir']}
Cache Directory:${config['cache_dir']}
GeoLite2 Database:${config['geoip_db']} | Reinstall / UpdateClick here to install the database.
Arguments:${plexpy.ARGS}
Platform:${common.PLATFORM} ${common.PLATFORM_VERSION}
Python Version:${sys.version}
Plex Forums:https://forums.plex.tv/discussion/169591/plexpy-another-plex-monitoring-program
Source:https://github.com/drzoidberg33/plexpy
Wiki:https://github.com/drzoidberg33/plexpy/wiki
Issues:https://github.com/drzoidberg33/plexpy/issues
Feature Requests:http://feathub.com/drzoidberg33/plexpy
Gitter Chat:https://gitter.im/drzoidberg33/plexpy
+
+
Loading configuration table...
+
+

PlexPy Scheduled Tasks

@@ -2134,6 +2058,31 @@