Sha256: cb95396d63ec0a42325a2b3d028704e8a174a273035bb44ecff245cc834b4c27

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

<% if @gems.any? %>
  <a href="upload">Upload Another Gem</a>

  <div id="alpha_index"><%= ("a".."z").map{|i| @index_gems.include?(i) ? "<a href='#jump_#{i}'>#{i}</a>" : i }.join(" - ") %></div>

  <ul class="gemlist">

    <% @gems.each do |name, versions| %>
      <li <%= %{id="jump_#{name[0..0]}"} if @index_gems.delete(name[0..0]) %>>
        <h2><%= name %> (<%= versions.size == 1 ? versions.first : "#{versions.first} - #{versions.last}" %>)</h2>
        <% versions.each do |version| %>
          <form class="delete-form" method="post" action="/gems/<%= name %>-<%= version %>.gem">
            <code>gem install <%= name %> -v "<%= version %>"</code>
            <input type="hidden" name="_method" value="DELETE" />
            <button type="submit">delete</button>
          </form>
        <% end %>

        <div class="details">
          <% spec = spec_for(name, versions.last) %>
          <p>
            <%= spec.description %>
            <br/>
            <span class="author">– <a href='<%= spec.homepage %>'><%= spec.author %></a></span>
          </p>
        </div>

      </li>
    <% end %>
  </ul>
<% end %>

<a href="upload">Upload Another Gem</a>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
geminabox-0.2.14 views/index.erb