Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjrice committed Sep 9, 2011
1 parent 110308a commit adac203
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions app/views/links/index.html.erb
Expand Up @@ -2,23 +2,23 @@
<%= render :partial => "form" %>
</div>

<div class="row">
<%- if @links.size > 0 -%>
<table>
<thead>
<th>Shortened Link</th>
<th>Views</th>
<th>Long Link</th>
</thead>
<tbody>
<%- @links.each do |link| -%>
<tr>
<td><%= url_for(link.key) %></td>
<td><%= link.views %></td>
<td><%= link.url %></td>
</tr>
<%- end -%>
</tbody>
</table>
<%- end -%>
</div>
<div class="row">
<table>
<thead>
<th>Shortened Link</th>
<th>Views</th>
<th>Long Link</th>
</thead>
<tbody>
<%- @links.each do |link| -%>
<tr>
<td><%= url_for(link.key) %></td>
<td><%= link.views %></td>
<td><%= link.url %></td>
</tr>
<%- end -%>
</tbody>
</table>
</div>
<%- end -%>

0 comments on commit adac203

Please sign in to comment.