Download config and database from the settings

This commit is contained in:
JonnyWong16 2017-04-22 13:23:16 -07:00
commit 84bfe99017
3 changed files with 43 additions and 5 deletions

View file

@ -31,15 +31,15 @@ DOCUMENTATION :: END
% endif
<tr>
<td>Configuration File:</td>
<td>${plexpy.CONFIG_FILE}</td>
<td><a class="no-highlight" href="download_config" data-toggle="tooltip" data-placement="right" title="Download Configuration">${plexpy.CONFIG_FILE}</a></td>
</tr>
<tr>
<td>Database File:</td>
<td>${plexpy.DB_FILE}</td>
<td><a class="no-highlight" href="download_database" data-toggle="tooltip" data-placement="right" title="Download Database">${plexpy.DB_FILE}</a></td>
</tr>
<tr>
<td>Log File:</td>
<td><a class="no-highlight" href="logFile" target="_blank">${os.path.join(plexpy.CONFIG.LOG_DIR, logger.FILENAME)}</a></td>
<td><a class="no-highlight" href="download_log" data-toggle="tooltip" data-placement="right" title="Download Log">${os.path.join(plexpy.CONFIG.LOG_DIR, logger.FILENAME)}</a></td>
</tr>
<tr>
<td>Backup Directory:</td>
@ -128,5 +128,11 @@ DOCUMENTATION :: END
$('#support-modal').modal('hide');
});
});
$('body').tooltip({
selector: '[data-toggle="tooltip"]',
container: 'body'
});
});
</script>

View file

@ -615,7 +615,8 @@
<div id="pms_logs_folder_error" class="alert alert-danger settings-alert" role="alert"></div>
</div>
<p class="help-block">
Set the complete folder path where your Plex Server logs are, shortcuts are not recognized.
Optional: Set your Plex logs folder to use PlexPy as a log viewer. Plex logs are not needed for PlexPy to function.
A complete folder path is required, shortcuts are not recognized.
<a href="${anon_url('https://support.plex.tv/hc/en-us/articles/200250417-Plex-Media-Server-Log-Files')}" target="_blank">Click here</a> for help.
</p>
</div>
@ -960,7 +961,7 @@
<input type="text" class="form-control" id="git_path" name="git_path" value="${config['git_path']}" size="30">
</div>
</div>
<p class="help-block">The path to your git environment variable. Leave blank for default.</p>
<p class="help-block">Optional: The path to your git environment variable. Leave blank for default.</p>
</div>
% endif