gitdir

[root]/ views / index.erb

489B

raw
<h1><%= h @site_name %></h1>
<% if @repos.empty? %>
<p>No repositories found. Place bare git repos (<code>*.git</code>) in the repos directory.</p>
<% else %>
<table>
<thead><tr><th>Name</th><th>Description</th><th>Updated</th></tr></thead>
<tbody>
<%- @repos.each do |repo| -%>
<tr>
  <td><a href="/<%= h repo.name %>"><%= h repo.name %></a></td>
  <td><%= h repo.description %></td>
  <td><%= repo.last_modified.strftime('%Y-%m-%d') %></td>
</tr>
<%- end -%>
</tbody>
</table>
<% end %>