arizonacollab/app/views/spaces/show.html.erb

18 lines
467 B
Plaintext
Raw Normal View History

2013-10-09 05:10:03 +00:00
<p id="notice"><%= notice %></p>
2013-10-09 10:34:27 +00:00
<%= render partial: "space", locals: {space: @space} %>
2013-10-09 05:10:03 +00:00
<%= link_to 'Edit', edit_space_path(@space) %> |
<%= link_to 'Back', spaces_path %>
2013-10-09 10:34:27 +00:00
<h3>Revision history</h3>
<dl>
<% @space.versions.each do |v| %>
<dt><b><%= v.event.capitalize %> <%= v.created_at %> <%= v.whodunnit if v.whodunnit %></b></dt>
<dd>
<% if v.reify %>
<%= render partial: "space", locals: {space: v.reify} %>
<% end %>
</dd>
<% end %>
</dl>