Apipie/apipie-rails

View on GitHub
app/views/apipie/apipies/_languages.erb

Summary

Maintainability
Test Coverage
<% if @languages && @languages.size > 1 %>
<li class='pull-right'>
  &nbsp;[ <%= @languages.collect { |lang| link = link_to(lang, "#{doc_url}.#{lang}.html");
    lang==@language ? content_tag(:b, link) : link }.join(' | ').html_safe %> ]
</li>
<% end %>