Permalink
Browse files

Don't link to version number for latest versions

  • Loading branch information...
1 parent 9fe066d commit 808c43a48d21398bb91dff244d94c56163d3333b @lsegal lsegal committed Dec 11, 2011
Showing with 5 additions and 5 deletions.
  1. +1 −1 templates/featured_index.erb
  2. +1 −1 templates/gems_index.erb
  3. +2 −2 templates/scm_index.erb
  4. +1 −1 templates/stdlib_index.erb
@@ -16,7 +16,7 @@
<li class="r<%= @row = @row == 1 ? 2 : 1 %>">
<% library_versions = library_versions.dup %>
<% first_lib = library_versions.pop %>
- <a href="/docs/<%= first_lib %>/frames"><%= name %></a>
+ <a href="/docs/<%= first_lib.name %>/frames"><%= name %></a>
<% if first_lib && first_lib.version %>
<small>(<%= first_lib.version %><% if library_versions.size > 0 %>,
<%= library_versions.reverse[0..3].map {|lib| "<a href=\"/docs/#{lib}/frames\">#{lib.version}</a>" }.join(', ') %><% end %>)</small>
View
@@ -36,7 +36,7 @@
<li class="r<%= @row = @row == 1 ? 2 : 1 %>">
<% library_versions = library_versions.dup %>
<% first_lib = library_versions.pop %>
- <a href="#/<%= @adapter.router.docs_prefix %>/<%= first_lib %>/frames"><%= name %></a>
+ <a href="#/<%= @adapter.router.docs_prefix %>/<%= first_lib.name %>/frames"><%= name %></a>
<% if first_lib && first_lib.version %>
<small>(<%= first_lib.version %><% if library_versions.size > 0 %>,
<%= library_versions.reverse[0..3].map {|lib| "<a href=\"#/#{@adapter.router.docs_prefix}/#{lib}/frames\">#{lib.version}</a>" }.join(', ') %><% end %>)</small>
View
@@ -34,7 +34,7 @@
<% username, library_versions = *repos.first %>
<% if first_lib = library_versions.find {|l| l.name == master } %>
<% library_versions -= [first_lib] %>
- <a href="/<%= @adapter.router.docs_prefix %>/<%= first_lib %>/frames"><strong><%= username %>/<%= project %></strong></a>
+ <a href="/<%= @adapter.router.docs_prefix %>/<%= first_lib.name %>/frames"><strong><%= username %>/<%= project %></strong></a>
<% if first_lib.version %>
<small>(<%= first_lib.version %><% if library_versions.size > 0 %>,
<%= library_versions.reverse[0..2].map {|lib| "<a href=\"/#{@adapter.router.docs_prefix}/#{lib}/frames\">#{lib.version}</a>" }.join(', ') %><% end %>)</small>
@@ -54,7 +54,7 @@
<li class="alternate_fork">
<% library_versions = library_versions.dup %>
<% first_lib = library_versions.pop %>
- <a href="/<%= @adapter.router.docs_prefix %>/<%= first_lib %>/frames"><%= username %>/<%= project %></a>
+ <a href="/<%= @adapter.router.docs_prefix %>/<%= first_lib.name %>/frames"><%= username %>/<%= project %></a>
<% if first_lib.version %>
<small>(<%= first_lib.version %><% if library_versions.size > 0 %>,
<%= library_versions.reverse[0..3].map {|lib| "<a href=\"/#{@adapter.router.docs_prefix}/#{lib}/frames\">#{lib.version}</a>" }.join(', ') %><% end %>)</small>
@@ -16,7 +16,7 @@
<li class="r<%= @row = @row == 1 ? 2 : 1 %> <% if name == "core" %>core<% end%>">
<% library_versions = library_versions.dup %>
<% first_lib = library_versions.pop %>
- <a href="/stdlib/<%= first_lib %>/frames"><%= name %></a>
+ <a href="/stdlib/<%= first_lib.name %>/frames"><%= name %></a>
<% if first_lib && first_lib.version %>
<small>(<%= first_lib.version %><% if library_versions.size > 0 %>,
<%= library_versions.reverse[0..3].map {|lib| "<a href=\"/stdlib/#{lib}/frames\">#{lib.version}</a>" }.join(', ') %><% end %>)</small>

0 comments on commit 808c43a

Please sign in to comment.