#import sickbeard
#import datetime
#from sickbeard.common import (Overview, statusStrings, ARCHIVED, FAILED, IGNORED, SKIPPED,
SNATCHED, SNATCHED_ANY, UNKNOWN, WANTED, DOWNLOADED)
##
#set global $title = 'Episode Overview'
#set global $header = 'Episode Overview'
#set global $sbPath = '..'
#set global $topmenu = 'manage'
##
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
#if $varExists('header')
#else
$title
#end if
##
#if not $whichStatus or ($whichStatus and not $ep_counts)
##
#if $whichStatus:
no episodes have status $statusStrings[$whichStatus].lower()
#end if
##
#else
#if $whichStatus in ($ARCHIVED, $IGNORED):
#set $row_class = 'good'
#elif $whichStatus == $SNATCHED:
#set $row_class = 'snatched'
#else
#set $row_class = $Overview.overviewStrings[$whichStatus]
#end if
#set $statusList = [$ARCHIVED, $IGNORED, $SKIPPED]
#if $DOWNLOADED == $whichStatus:
#set $statusList = [$ARCHIVED]
#elif $ARCHIVED == $whichStatus:
#set $statusList = [$SKIPPED, $DOWNLOADED, $ARCHIVED, $IGNORED]
#end if
#if $whichStatus in $statusList
$statusList.remove($whichStatus)
#end if
#if $whichStatus in $SNATCHED_ANY
$statusList.append($FAILED)
#end if
#end if
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')