Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show selected branches first #865

Merged
merged 2 commits into from
Aug 10, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions gui/slick/views/config_general.mako
Original file line number Diff line number Diff line change
Expand Up @@ -744,9 +744,14 @@
<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 sickbeard.GIT_RESET_BRANCHES:
<option value="${branch}" selected="selected">${branch}</option>
% 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