<% # The following is used when the browser doesn't have javascript enabled %>
<% classAttr = cycle("", "class=\"even\"") %>
<tr <%= classAttr %> id="view-flare-<%= flare.id %>" <%= "style=\"display: none;\"" if hidden %>>
	
	<td><%= link_to(h(flare.title), :action => 'show', :id => flare) %></td>
	<td><%=h flare.url %></td>
	<td><%=h distance_of_time_in_words_to_now flare.updated_at %> ago</td>
 	<td class="actions">
 	  <div>
 	  <%= loading_indicator_tag 'flare', "edit-#{flare.id}" %>
   	<%= link_to_remote "Edit", 
   	                    { :url => { :controller => 'Feeds', :action => 'edit', :id => flare }, 
   	                      :loading => "AjaxScaffold.editOnLoading(request,'flare', #{flare.id});",
   	                      :success => "AjaxScaffold.editOnSuccess(request,'flare', #{flare.id});",
   	                      :failure => "AjaxScaffold.editOnFailure(request,'flare', #{flare.id});",
   	                      :post => true },
   	                    { :href => url_for( :controller => 'Feeds', :action => 'edit', :id => flare ) } %>
   	<%= link_to_remote "Delete", 
   	                    { :url => { :controller => 'Feeds',:action => 'destroy', :id => flare }, 
   	                      :confirm => 'Are you sure?', 
   	                      :loading => "AjaxScaffold.deleteOnLoading('flare', #{flare.id});",
   	                      :success => "AjaxScaffold.deleteOnSuccess('flare', #{flare.id});",
   	                      :failure => "AjaxScaffold.deleteOnFailure('flare', #{flare.id});",
   	                      :post => true },
   	                    { :href => url_for(:controller => 'Feeds', :action => 'destroy', :id => flare) } %>
   	</div>
  </td>
</tr>
