mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-05 02:43:37 +00:00
54 lines
2.9 KiB
Cheetah
54 lines
2.9 KiB
Cheetah
#import sickbeard
|
|
#from sickbeard import db
|
|
#from sickbeard.helpers import anon_url
|
|
#import os.path
|
|
|
|
#set global $title = 'Configuration'
|
|
#set global $header = 'Configuration'
|
|
|
|
#set global $sbPath = '..'
|
|
|
|
#set global $topmenu = 'config'
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
|
|
|
#if $varExists('header')
|
|
<h1 class='header'>$header</h1>
|
|
#else
|
|
<h1 class='title'>$title</h1>
|
|
#end if
|
|
|
|
##set cpu_usage = $psutil.cpu_percent()
|
|
##set ram = $psutil.phymem_usage()
|
|
##set ram_total = $ram.total / 2**20
|
|
##set ram_used = $ram.used / 2**20
|
|
##set ram_free = $ram.free / 2**20
|
|
##set ram_percent_used = $ram.percent
|
|
##set disk = $psutil.disk_usage('/')
|
|
##set disk_total = $disk.total / 2**30
|
|
##set disk_used = $disk.used / 2**30
|
|
##set disk_free = $disk.free / 2**30
|
|
##set disk_percent_used = $disk.percent
|
|
|
|
<div id="config-content">
|
|
<table class="infoTable" cellspacing="1" border="0" cellpadding="0" width="100%">
|
|
<tr><td class="infoTableHeader">Version: </td><td class="infoTableCell">
|
|
#if $sickbeard.VERSION_NOTIFY
|
|
BRANCH: ($sickbeard.BRANCH) / COMMIT: ($sickbeard.CUR_COMMIT_HASH) <!-- – build.date //--><br />
|
|
#else
|
|
You don't have version checking turned on, see "Check software updates" in Config > General.<br />
|
|
#end if
|
|
<em class="red-text">This is BETA software.</em>
|
|
</td></tr>
|
|
<tr><td class="infoTableHeader">Config file:</td><td class="infoTableCell">$sickbeard.CONFIG_FILE</td></tr>
|
|
<tr><td class="infoTableHeader">Database file:</td><td class="infoTableCell">$db.dbFilename()</td></tr>
|
|
<tr><td class="infoTableHeader">Cache Dir:</td><td class="infoTableCell">$sickbeard.CACHE_DIR</td></tr>
|
|
<tr><td class="infoTableHeader">Arguments:</td><td class="infoTableCell"><%= (sickbeard.MY_ARGS, 'None used')[0 == len(sickbeard.MY_ARGS)] %></td></tr>
|
|
<tr><td class="infoTableHeader">Web Root:</td><td class="infoTableCell">$sickbeard.WEB_ROOT</td></tr>
|
|
<tr><td class="infoTableHeader">Python Version:</td><td class="infoTableCell">$sys.version[:120]</td></tr>
|
|
<tr class="infoTableSeperator"><td class="infoTableHeader"><i class="icon16-sg"></i> Homepage</td><td class="infoTableCell"><a href="<%= anon_url('https://github.com/SickGear/SickGear/wiki') %>" rel="noreferrer" onclick="window.open(this.href, '_blank'); return false;">https://github.com/SickGear/SickGear/wiki</a></td></tr>
|
|
<tr><td class="infoTableHeader"><i class="icon16-github"></i> Source</td><td class="infoTableCell"><a href="<%= anon_url('https://github.com/SickGear/SickGear/') %>" rel="noreferrer" onclick="window.open(this.href, '_blank'); return false;">https://github.com/SickGear/SickGear/</a></td></tr>
|
|
<tr><td class="infoTableHeader"><i class="icon16-mirc"></i> Internet Relay Chat</td><td class="infoTableCell"><a href="irc://irc.freenode.net/#SickGear" rel="noreferrer"><i>#SickGear</i> on <i>irc.freenode.net</i></a></td></tr>
|
|
</table>
|
|
</div>
|
|
|
|
#include $os.path.join($sickbeard.PROG_DIR,'gui/slick/interfaces/default/inc_bottom.tmpl')
|