Skip to content

Commit

Permalink
auto-expand if there is no default package
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Mar 17, 2012
1 parent dcab23c commit 59a3ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/package/show.html.erb
Expand Up @@ -154,7 +154,7 @@
<li>
<a href="#" onclick=" toggle_dist('<%= distro[:dist_id] %>'); return false;"
class="distro-toggle" id="distro-toggle-<%= distro[:dist_id] %>"><%= distro[:name] %></a>
<ul class="pkg-options-details hidden" id="dist_<%= distro[:dist_id] %>" >
<ul class="pkg-options-details <%= "hidden" unless (@default_package.blank? && (distro[:project] == @baseproject ))%>" id="dist_<%= distro[:dist_id] %>" >

<% official = @packages.select{|s| s.project == distro[:project] || s.project == "#{distro[:project]}:NonFree" } %>
<% update = @packages.select{|s| s.project == "#{distro[:project]}:Update"} %>
Expand Down

0 comments on commit 59a3ffa

Please sign in to comment.