From b140354b6dfb002f638373a569674327e9368f98 Mon Sep 17 00:00:00 2001 From: Callum Loh Date: Thu, 14 Aug 2014 17:11:35 +1000 Subject: [PATCH] Fixes issue with search page from PR 713 --- .../interfaces/default/config_search.tmpl | 101 +++++++++--------- 1 file changed, 50 insertions(+), 51 deletions(-) diff --git a/gui/slick/interfaces/default/config_search.tmpl b/gui/slick/interfaces/default/config_search.tmpl index beeefd9d..ece0f61e 100644 --- a/gui/slick/interfaces/default/config_search.tmpl +++ b/gui/slick/interfaces/default/config_search.tmpl @@ -314,57 +314,56 @@ - <% - if config['nzbget_priority'] == -100: - prio_verylow = 'selected="selected"' - prio_low = '' - prio_normal = '' - prio_high = '' - prio_veryhigh = '' - prio_force = '' - elif config['nzbget_priority'] == -50: - prio_verylow = '' - prio_low = 'selected="selected"' - prio_normal = '' - prio_high = '' - prio_veryhigh = '' - prio_force = '' - elif config['nzbget_priority'] == 0: - prio_verylow = '' - prio_low = '' - prio_normal = 'selected="selected"' - prio_high = '' - prio_veryhigh = '' - prio_force = '' - elif config['nzbget_priority'] == 50: - prio_verylow = '' - prio_low = '' - prio_normal = '' - prio_high = 'selected="selected"' - prio_veryhigh = '' - prio_force = '' - elif config['nzbget_priority'] == 100: - prio_verylow = '' - prio_low = '' - prio_normal = '' - prio_high = '' - prio_veryhigh = 'selected="selected"' - prio_force = '' - elif config['nzbget_priority'] == 900: - prio_verylow = '' - prio_low = '' - prio_normal = '' - prio_high = '' - prio_veryhigh = '' - prio_force = 'selected="selected"' - else: - prio_verylow = '' - prio_low = '' - prio_normal = 'selected="selected"' - prio_high = '' - prio_veryhigh = '' - prio_force = '' - %> + #if $sickbeard.NZBGET_PRIORITY == -100: + #set $prio_verylow = 'selected="selected"' + #set $prio_low = '' + #set $prio_normal = '' + #set $prio_high = '' + #set $prio_veryhigh = '' + #set $prio_force = '' + #elif $sickbeard.NZBGET_PRIORITY == -50: + #set $prio_verylow = '' + #set $prio_low = 'selected="selected"' + #set $prio_normal = '' + #set $prio_high = '' + #set $prio_veryhigh = '' + #set $prio_force = '' + #elif $sickbeard.NZBGET_PRIORITY == 0: + #set $prio_verylow = '' + #set $prio_low = '' + #set $prio_normal = 'selected="selected"' + #set $prio_high = '' + #set $prio_veryhigh = '' + #set $prio_force = '' + #elif $sickbeard.NZBGET_PRIORITY == 50: + #set $prio_verylow = '' + #set $prio_low = '' + #set $prio_normal = '' + #set $prio_high = 'selected="selected"' + #set $prio_veryhigh = '' + #set $prio_force = '' + #elif $sickbeard.NZBGET_PRIORITY == 100: + #set $prio_verylow = '' + #set $prio_low = '' + #set $prio_normal = '' + #set $prio_high = '' + #set $prio_veryhigh = 'selected="selected"' + #set $prio_force = '' + #elif $sickbeard.NZBGET_PRIORITY == 900: + #set $prio_verylow = '' + #set $prio_low = '' + #set $prio_normal = '' + #set $prio_high = '' + #set $prio_veryhigh = '' + #set $prio_force = 'selected="selected"' + #else: + #set $prio_verylow = '' + #set $prio_low = '' + #set $prio_normal = 'selected="selected"' + #set $prio_high = '' + #set $prio_veryhigh = '' + #set $prio_force = '' + #end if