Skip to content

Commit

Permalink
Show selected branches first
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandog committed Aug 10, 2016
1 parent 65983eb commit 8359353
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions gui/slick/views/config_general.mako
Original file line number Diff line number Diff line change
Expand Up @@ -744,9 +744,16 @@
<span class="component-title">Branches to reset</span>
<span class="component-desc">
<select id="git_reset_branches" name="git_reset_branches" multiple="multiple" style="min-width:200px;height:99px;">
% for branch in gh_branch:
<option value="${branch}" ${'selected="selected"' if branch in sickbeard.GIT_RESET_BRANCHES else ''}>${branch}</option>
% endfor
% for branch in gh_branch:
% if branch in sickbeard.GIT_RESET_BRANCHES:
<option value="${branch}" selected="selected">${branch}</option>
% endif
% endfor
% for branch in gh_branch:
% if branch not in sickbeard.GIT_RESET_BRANCHES:
<option value="${branch}">${branch}</option>
% endif
% endfor
</select>
</span>
<div class="clear-left">
Expand Down

0 comments on commit 8359353

Please sign in to comment.