2014-03-10 05:18:05 +00:00
|
|
|
#import sickbeard
|
|
|
|
#from sickbeard import db
|
|
|
|
#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")
|
2014-10-21 19:09:01 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
#if $varExists('header')
|
|
|
|
<h1 class="header">$header</h1>
|
|
|
|
#else
|
|
|
|
<h1 class="title">$title</h1>
|
|
|
|
#end if
|
|
|
|
|
2014-06-07 22:50:51 +00:00
|
|
|
##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
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-10-21 19:09:01 +00:00
|
|
|
<div id="config-content">
|
2014-09-30 22:20:37 +00:00
|
|
|
<table class="infoTable" cellspacing="1" border="0" cellpadding="0" width="100%">
|
2014-05-14 10:16:39 +00:00
|
|
|
<tr><td class="infoTableHeader">SR Version: </td><td class="infoTableCell">
|
|
|
|
#if $sickbeard.VERSION_NOTIFY
|
2014-07-29 00:11:16 +00:00
|
|
|
BRANCH: ($sickbeard.BRANCH) / COMMIT: ($sickbeard.CUR_COMMIT_HASH) <!-- – build.date //--><br />
|
2014-05-14 10:16:39 +00:00
|
|
|
#else
|
|
|
|
You don't have version checking turned on. Please turn on "Check for Update" in Config > General.<br />
|
|
|
|
#end if
|
2014-05-11 22:02:27 +00:00
|
|
|
<font color="red">You are using BETA software</font>
|
2014-03-10 05:18:05 +00:00
|
|
|
</td></tr>
|
2014-05-05 07:58:06 +00:00
|
|
|
<tr><td class="infoTableHeader">SR Config file: </td><td class="infoTableCell">$sickbeard.CONFIG_FILE</td></tr>
|
|
|
|
<tr><td class="infoTableHeader">SR Database file: </td><td class="infoTableCell">$db.dbFilename()</td></tr>
|
|
|
|
<tr><td class="infoTableHeader">SR Cache Dir: </td><td class="infoTableCell">$sickbeard.CACHE_DIR</td></tr>
|
|
|
|
<tr><td class="infoTableHeader">SR Arguments: </td><td class="infoTableCell">$sickbeard.MY_ARGS</td></tr>
|
|
|
|
<tr><td class="infoTableHeader">SR Web Root: </td><td class="infoTableCell">$sickbeard.WEB_ROOT</td></tr>
|
2014-03-10 05:18:05 +00:00
|
|
|
<tr><td class="infoTableHeader">Python Version: </td><td class="infoTableCell">$sys.version[:120]</td></tr>
|
2014-05-05 07:58:06 +00:00
|
|
|
<tr class="infoTableSeperator"><td class="infoTableHeader"><i class="icon16-sb"></i> Homepage </td><td><a href="http://www.sickrage.tv/" rel="noreferrer" onclick="window.open('${sickbeard.ANON_REDIRECT}' + this.href, '_blank'); return false;">http://www.sickrage.tv/</a></td></tr>
|
|
|
|
<tr><td class="infoTableHeader"><i class="icon16-web"></i> Forums </td><td><a href="http://sickrage.tv/forums/" rel="noreferrer" onclick="window.open('${sickbeard.ANON_REDIRECT}' + this.href, '_blank'); return false;">http://sickrage.tv/forums/</a></td></tr>
|
2014-10-16 11:55:33 +00:00
|
|
|
<tr><td class="infoTableHeader"><i class="icon16-github"></i> Source </td><td><a href="https://github.com/SickragePVR/SickRage/" rel="noreferrer" onclick="window.open('${sickbeard.ANON_REDIRECT}' + this.href, '_blank'); return false;">https://github.com/SickragePVR/SickRage/</a></td></tr>
|
2014-05-21 20:35:12 +00:00
|
|
|
<tr><td class="infoTableHeader"><i class="icon16-mirc"></i> Internet Relay Chat </td><td><a href="irc://irc.freenode.net/#sickrage" rel="noreferrer" onclick="window.open('${sickbeard.ANON_REDIRECT}' + this.href, '_blank'); return false;"><i>#sickrage</i> on <i>irc.freenode.net</i></a></td></tr>
|
2014-03-10 05:18:05 +00:00
|
|
|
</table>
|
2014-10-21 19:09:01 +00:00
|
|
|
</div>
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
#include $os.path.join($sickbeard.PROG_DIR,"gui/slick/interfaces/default/inc_bottom.tmpl")
|