Permalink
Browse files

Removes diff dropdown from /module and /release in cases where only 1…

… version of a dist has been released.
  • Loading branch information...
1 parent d28060b commit f84109e434b9be046e7ae555afff8fa726d749a1 @oalders oalders committed Nov 4, 2011
Showing with 4 additions and 0 deletions.
  1. +2 −0 root/module.html
  2. +2 −0 root/release.html
View
@@ -27,11 +27,13 @@
<hr>
<strong>Tools</strong>
<ul>
+ <% IF versions.size > 1 %>
<li>
<select name="release" onchange="document.location.href='/diff/file/?target=<% [module.author, module.release, module.path].join("/") %>&amp;source=' + this.value">
<option>Diff with version</option>
<% PROCESS version_options %>
</select></li>
+ <% END %>
<li>Search distribution:<br>
<form action="/search">
<input type="hidden" name="q" value="dist:<% release.distribution %>">
View
@@ -18,11 +18,13 @@
<hr>
<strong>Tools</strong>
<ul>
+ <% IF versions.size > 1 %>
<li>
<select name="release" onchange="document.location.href='/diff/release/' + this.value + '<% release.author %>/<% release.name %>'">
<option>Diff with version</option>
<% PROCESS version_options %>
</select></li>
+ <% END %>
<li>Search distribution:<br>
<form action="/search">
<input type="hidden" name="q" value="dist:<% release.distribution %>">

0 comments on commit f84109e

Please sign in to comment.