Some small improvement

This commit is contained in:
morpheus65535 2018-11-25 22:00:12 -05:00
parent 1fb0a4078f
commit bf09e94c5b
3 changed files with 28 additions and 28 deletions

View File

@ -2,7 +2,7 @@ import os
import sys
import getopt
config_dir = os.path.join(os.path.dirname(__file__), '../data/')
config_dir = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data')
no_update = False
try:

View File

@ -1463,8 +1463,8 @@ def system():
return template('system', __file__=__file__, bazarr_version=bazarr_version,
sonarr_version=sonarr_version.json()['version'], radarr_version=radarr_version.json()['version'],
operation_system=platform.platform(), python_version=platform.python_version(),
config_dir=config_dir, bazarr_dir=os.getcwd(),
operating_system=platform.platform(), python_version=platform.python_version(),
config_dir=config_dir, bazarr_dir=os.path.normcase(os.getcwd()),
base_url=base_url, task_list=task_list, row_count=row_count, max_page=max_page, page_size=page_size,
releases=releases, current_port=port)

View File

@ -126,7 +126,7 @@
<div class="ui grid">
<div class="middle aligned row">
<div class="right aligned four wide column">
<label>Version</label>
<label>Bazarr version</label>
</div>
<div class="five wide column">
<div class='field'>
@ -136,18 +136,6 @@
</div>
</div>
</div>
<div class="middle aligned row">
<div class="right aligned four wide column">
<label>Operation system</label>
</div>
<div class="five wide column">
<div class='field'>
<div class="ui fluid input">
{{operation_system}}
</div>
</div>
</div>
</div>
% from get_settings import get_general_settings
% if get_general_settings()[12]:
<div class="middle aligned row">
@ -177,6 +165,18 @@
</div>
</div>
% end
<div class="middle aligned row">
<div class="right aligned four wide column">
<label>Operating system</label>
</div>
<div class="five wide column">
<div class='field'>
<div class="ui fluid input">
{{operating_system}}
</div>
</div>
</div>
</div>
<div class="middle aligned row">
<div class="right aligned four wide column">
<label>Python version</label>
@ -189,18 +189,6 @@
</div>
</div>
</div>
<div class="middle aligned row">
<div class="right aligned four wide column">
<label>Bazarr config dir</label>
</div>
<div class="five wide column">
<div class='field'>
<div class="ui fluid input">
{{config_dir}}
</div>
</div>
</div>
</div>
<div class="middle aligned row">
<div class="right aligned four wide column">
<label>Bazarr directory</label>
@ -213,6 +201,18 @@
</div>
</div>
</div>
<div class="middle aligned row">
<div class="right aligned four wide column">
<label>Bazarr config directory</label>
</div>
<div class="five wide column">
<div class='field'>
<div class="ui fluid input">
{{config_dir}}
</div>
</div>
</div>
</div>
</div>
</div>
<div class="ui dividing header">More info</div>