Sha256: 3544ca6468de7285587c548fda202b01ed1f096daf65e3b8de93d8d340d24df0

Contents?: true

Size: 1.11 KB

Versions: 6

Compression:

Stored size: 1.11 KB

Contents

<%
 @title = _('Library Index')
 @description = _('Library Index')
%>
<p>
<%= manual_home_link() %>
&gt; <%= _("All Libraries") %>
</p>
<%
    headline_init
%>
<%= headline(_("Library Index")) %>
<%
    headline_push
    weight = {"Builtin" => "", "" => "\x7f\x7f"}
    entry_table = @entries.group_by{|lib| lib.category }.to_a
    entry_table.sort_by! do |pair|
      category = pair[0]
      pair.last.sort!
      pair[0] = "Other" if category == ""
      weight[category] || category
    end
    first = true
    entry_table.each do |category, libs|
%>
<% if first then first = false else %> / <% end %>
<a href="#<%= category %>"><%= h _(category) %></a>
<%
    end
    entry_table.each do |category, libs|
%>
<span id="<%= category %>"><%= headline(_(category)) %></span>
<table class="entries libraries">
<%
      libs.each do |lib|
        next if lib.is_sublibrary
        label = _('Builtin Library') if lib.id == '_builtin'
%>
<tr>
<td class="signature"><%= library_link(lib.name, label) %></td>
<td class="description"><%= compile_rd(lib.synopsis_source) %></td>
</tr>
<%
      end
%>
</table>
<%
    end
    headline_pop
%>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bitclust-core-1.2.3 data/bitclust/template.offline/library-index
bitclust-core-1.2.2 data/bitclust/template.offline/library-index
bitclust-core-1.2.1 data/bitclust/template.offline/library-index
bitclust-core-1.2.0 data/bitclust/template.offline/library-index
bitclust-core-1.1.1 data/bitclust/template.offline/library-index
bitclust-core-1.1.0 data/bitclust/template.offline/library-index