Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't link to version number for latest versions

  • Loading branch information...
commit 808c43a48d21398bb91dff244d94c56163d3333b 1 parent 9fe066d
Loren Segal authored
2  templates/featured_index.erb
View
@@ -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>
2  templates/gems_index.erb
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>
4 templates/scm_index.erb
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>
2  templates/stdlib_index.erb
View
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.