Sha256: 90ffcc7feb6b6ce0762efcd8786cc49c9572fd68fa0f995b4021ef5a238a3c64

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

<div id="listing">
  <h1 class="noborder title"><%= options[:title] %></h1>
  
  <% if @files && @files.size > 0 %>
    <h2>Files A-Z</h2>
    <ul id="files">
    <% n = 1 %>
    <% @files.each_with_index do |file, i| %>
      <li class="r<%= n %>"><%= link_file(file, File.basename(file).gsub(/\.[^.]+$/, '')) %></li>
      <% n = n == 2 ? 1 : 2 %>
    <% end %>
    </ul>
  <% end %>
  <div class="clear"></div>

  <h2>Topics A-Z</h2>
  <% i = 0 %>
  <table>
    <tr>
      <td valign='top' width="33%">
        <% @objects_by_letter.sort_by {|l,o| l.to_s }.each do |letter, objects| %>
          <% if (i += 1) % 8 == 0 %>
            </td><td valign='top' width="33%">
            <% i = 0 %>
          <% end %>
          <ul id="alpha_<%= letter %>" class="alpha">
            <li class="letter"><%= letter %></li>
            <ul>
              <% objects.each do |obj| %>
                <% unless obj.tags("topic").first.nil? %>
                  <li>
                    <%= linkify(obj, obj.tags("topic").first.text) %> 
                  </li>
                <% end %>
              <% end %>
            </ul>
          </ul>
        <% end %>
      </td>
    </tr>
  </table>

</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yard-rest-plugin-0.1.5 templates/rest/layout/html/index.erb