index.rhtml

teensyweb/app/views/repository/index.rhtml · 523 B

From the archive teensyweb.tar.gz

Download the archive   « Back to the archive contents

<div class="app">
  <div class="forum">
  <table>
  <tr><td> 
    <%= "<a href=\"/repository/index/#{@back}\">..</a>" %> 
  </td></tr>
    <% @files.each do |f| %>
      <tr>
      <td> 
        <% if f =~ /\// %> 
          <%= "<a href=\"/repository/index/#{@fpath.empty? ? "": @fpath+'/'}#{f[0...-1]}\">#{f}</a>" %> 
        <% else %>  
          <%= "<a href=\"/repository/show/#{@fpath.empty? ? "": @fpath+'/'}#{f}\">#{f}</a>" %> 
        <% end %> 
      </td>
      </tr>
    <% end %>
  </table>
  </div>  
</div>

Site Stats

Snippets: 1791
Codebases: 571