Skip to content

Commit

Permalink
added listing repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
slk187 committed Apr 8, 2013
1 parent 382c7a1 commit f0d0234
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions app/views/repositories/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<h1>Listing repositories</h1>

<table>
<tr>
<th>Name</th>
<th></th>
</tr>

<% @repositories.each do |f| %>
<tr>
<td><%= f.name %></td>
<td><%= link_to 'Show', f %></td>
<td><%= link_to 'Edit', edit_repository_path(f) %></td>
<td><%= link_to 'Destroy', f, confirm: 'Are you sure?', method: :delete %></td>
</tr>
<% end %>
</table>

<br />

<%= link_to 'New Post', new_repository_path %>

0 comments on commit f0d0234

Please sign in to comment.