<%= link_to dive.user.login, :controller => 'user', :action => 'show', :login => dive.user.login %> |
<% for column in Dive.content_columns.reject{|column| column.name=="note" }%>
<%=h dive.send(column.name) %> |
<% end %>
<%= link_to 'Show', :controller => 'dive', :action => 'show', :id => dive %> |
<% if logged_in? and current_user.can_edit dive %>
<%= link_to 'Edit', :controller => 'dive', :action => 'edit', :id => dive %> |
<%= link_to 'Destroy', { :controller => 'dive', :action => 'destroy', :id => dive }, :confirm => 'Are you sure?', :method => :post %> |
<% end %>
<% end %>